/* VARIABLES & RESET */
:root {
    --primary-color: #004481;
    /* Brighter Corporate Navy */
    --secondary-color: #FFB703;
    /* Vivid Amber/Gold */
    --accent-color: #0288D1;
    /* Cyan/Blue accent */
    --text-dark: #222;
    --text-light: #fff;
    --bg-light: #f4f6f9;
    --bg-dark: #0a1f35;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --radius-card: 20px;
    --radius-btn: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--secondary-color) !important;
}

.section-title {
    margin-bottom: 50px;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* Active underline for titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* HEADER */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.brand-logo {
    height: 60px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 68, 129, 0.85), rgba(2, 136, 209, 0.7)), url('../img/gallery/Fam Trip Oiba/IMG_8783.jpg');
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    color: #fff;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 300;
}

.btn {
    padding: 15px 40px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 183, 3, 0.4);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #FFCA28;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 183, 3, 0.5);
}



/* GRID SYSTEMS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* CARDS */
.card {
    background: #fff;
    padding: 50px;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission-card h3::before {
    content: '🚀';
}

.vision-card h3::before {
    content: '👁️';
}

.service-item {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius-card);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid transparent;
}

.service-item:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
}

.service-item .icon {
    font-size: 4rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.service-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* GALLERY */
.album-section {
    margin-bottom: 70px;
}

.album-title {
    border-left: 6px solid var(--secondary-color);
    padding-left: 20px;
    margin-bottom: 25px;
    color: #fff;
    font-size: 1.8rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 0 10px 10px 0;
}

.gallery-track-container {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    min-width: 320px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.gallery-item:hover {
    opacity: 1;
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.nav-btn:hover {
    background: var(--secondary-color);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* FOOTER */
.main-footer {
    background: #050508;
    color: #aaa;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    height: 50px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-contact h4 {
    color: #fff;
    margin-bottom: 15px;
}

.copyright {
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SOCIAL MEDIA */
.footer-social h4 {
    color: #fff;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 183, 3, 0.3);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* SANTANDER SECTION */
.santander-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    background: #fff;
    padding: 60px;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 40px rgba(0, 4, 15, 0.08);
}

.santander-logo-area {
    flex: 1;
    display: flex;
    justify-content: center;
}

.santander-logo {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.santander-content {
    flex: 1.5;
}

.santander-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.santander-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .santander-section {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 30px;
    }

    .santander-content h2 {
        font-size: 2rem;
    }
}

/* SOSTENIBILIDAD SECTION */
.align-center {
    align-items: center;
}

.highlight-box {
    border-left: 5px solid var(--secondary-color);
    padding-left: 25px;
    background: linear-gradient(to right, rgba(255, 183, 3, 0.05), transparent);
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

.highlight-box p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.video-container {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid #fff;
    position: relative;
    padding-top: 100%;
    /* 9:16 Aspect Ratio (Vertical) */
    background: #fff;
    max-width: 350px;
    /* Limit width to prevent excessive height on desktop */
    margin: 0 auto;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .sostenibilidad-video {
        order: -1;
        /* Video on top on mobile */
        margin-bottom: 30px;
    }

    .video-container {
        max-width: 300px;
        /* Smaller on mobile to fit viewport better */
    }

    .highlight-box {
        border-left: none;
        border-top: 5px solid var(--secondary-color);
        padding-left: 20px;
        padding-top: 25px;
        border-radius: 0 0 10px 10px;
    }
}