/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors */
    --clr-yellow: #FFD700;
    --clr-yellow-light: #FFE44D;
    --clr-yellow-dark: #CCA000;
    
    --clr-blue: #0A192F; /* Deep Prestige Blue */
    --clr-blue-light: #1A365D;
    --clr-blue-dark: #050D1A;
    
    --clr-bg-light: #F9FAFB;
    --clr-bg-white: #FFFFFF;
    
    --clr-text-main: #111827;
    --clr-text-muted: #4B5563;
    
    /* Typography */
    --ff-heading: 'Playfair Display', serif;
    --ff-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-full: 9999px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--ff-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    line-height: 1.2;
    color: var(--clr-blue-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-family: var(--ff-heading);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--clr-yellow);
    color: var(--clr-blue-dark);
    box-shadow: var(--shadow-yellow);
}

.btn-primary:hover {
    background-color: var(--clr-yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background-color: var(--clr-blue);
    color: var(--clr-bg-white);
    box-shadow: var(--shadow-blue);
}

.btn-secondary:hover {
    background-color: var(--clr-blue-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-bg-white);
    color: var(--clr-bg-white);
}

.btn-outline:hover {
    background-color: var(--clr-bg-white);
    color: var(--clr-blue-dark);
}

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */
/* ==========================================================================
   HEADER & NAV (Lawrenceville Style)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    background-color: transparent;
    padding: 1rem 0;
}

.header.scrolled {
    background-color: var(--clr-blue-dark);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition-smooth);
    filter: brightness(0) invert(1); /* Make logo white initially */
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.header.scrolled .logo img {
    height: 50px;
    filter: none; /* Return to original color when scrolled */
}

.header.scrolled .logo-text {
    font-size: 1.5rem;
    color: white;
    text-shadow: none;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.search-btn:hover {
    color: var(--clr-yellow);
}

.menu-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    gap: 0.25rem;
    transition: var(--transition-smooth);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.menu-toggle-btn i {
    font-size: 1.5rem;
}

.menu-toggle-btn span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.menu-toggle-btn:hover {
    color: var(--clr-yellow);
}

.header.scrolled .search-btn,
.header.scrolled .menu-toggle-btn {
    text-shadow: none;
}

/* ==========================================================================
   OFF-CANVAS MENU
   ========================================================================== */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--clr-blue-dark);
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1), box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    box-shadow: none;
}

.offcanvas-menu.active {
    right: 0;
    box-shadow: 0 0 0 100vw rgba(10, 25, 47, 0.85);
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}

.close-menu-btn i {
    font-size: 2.5rem;
}

.close-menu-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.close-menu-btn:hover {
    color: var(--clr-yellow);
}

.offcanvas-nav ul {
    list-style: none;
    text-align: left;
}

.offcanvas-nav li {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.offcanvas-menu.active .offcanvas-nav li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for links */
.offcanvas-menu.active .offcanvas-nav li:nth-child(1) { transition-delay: 0.1s; }
.offcanvas-menu.active .offcanvas-nav li:nth-child(2) { transition-delay: 0.2s; }
.offcanvas-menu.active .offcanvas-nav li:nth-child(3) { transition-delay: 0.3s; }
.offcanvas-menu.active .offcanvas-nav li:nth-child(4) { transition-delay: 0.4s; }
.offcanvas-menu.active .offcanvas-nav li:nth-child(5) { transition-delay: 0.5s; }
.offcanvas-menu.active .offcanvas-nav li:nth-child(6) { transition-delay: 0.6s; }

.offcanvas-nav a {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.offcanvas-nav a:hover {
    color: var(--clr-yellow);
}

.offcanvas-socials {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.8s;
}

.offcanvas-menu.active .offcanvas-socials {
    opacity: 1;
}

.offcanvas-socials a {
    color: white;
    font-size: 2rem;
    transition: var(--transition-smooth);
}

.offcanvas-socials a:hover {
    color: var(--clr-yellow);
    transform: translateY(-5px);
}

/* ==========================================================================
   HERO PRESTIGE (Lawrenceville Style)
   ========================================================================== */
.hero-prestige {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-img.cinematic-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s infinite alternate linear;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.9));
    z-index: 1;
}

.hero-content-prestige {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title-prestige {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-title-prestige span {
    color: var(--clr-yellow);
    font-style: italic;
}

.hero-text-prestige {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-inline: auto;
}

.btn-outline-white {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-family: var(--ff-heading);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--clr-blue);
}

/* ==========================================================================
   DUO PANEL PRESTIGE
   ========================================================================== */
.duo-panel {
    background: var(--clr-bg-white);
    position: relative;
    z-index: 2;
}

.duo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .duo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.duo-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--clr-blue);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.duo-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.duo-visual {
    position: relative;
    height: 500px;
}

.duo-img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.duo-img-offset {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 10px solid var(--clr-bg-white);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    padding: var(--space-xl) 0;
    background-color: var(--clr-bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--clr-yellow);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--clr-text-muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--clr-bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--clr-blue);
    color: white;
}

.stat-item:hover .stat-label {
    color: rgba(255,255,255,0.8);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--clr-yellow);
    margin-bottom: 0.5rem;
}

.stat-num {
    display: block;
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   PAGE HERO (For internal pages)
   ========================================================================== */
.page-hero {
    padding: 220px 0 100px;
    background: url('assets/img/hero_school_building_1786973817296.jpg') center/cover;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    margin-top: 140px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.9));
}

.about-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: url('assets/img/hero_school_building_1786973817296.jpg') center/cover;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 160, 0.4);
    border-radius: inherit;
}

.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 80%;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.glass-card i {
    font-size: 3rem;
    color: var(--clr-yellow);
    opacity: 0.5;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.glass-card blockquote {
    font-size: 1.25rem;
    font-family: var(--ff-heading);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.glass-card cite {
    font-weight: 600;
    color: var(--clr-yellow);
}

/* ==========================================================================
   PILLARS SECTION
   ========================================================================== */
.pillars {
    padding: var(--space-xl) 0;
    background-color: var(--clr-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.25rem;
    margin-top: 1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--clr-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pillar-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.pillar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pillar-card:hover .pillar-img {
    transform: scale(1.1);
}

.pillar-icon {
    position: absolute;
    bottom: -25px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--clr-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--clr-blue-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 4px solid var(--clr-bg-white);
    z-index: 2;
}

.pillar-content {
    padding: 2.5rem 1.5rem 1.5rem;
}

.pillar-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pillar-content p {
    color: var(--clr-text-muted);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 5rem 0;
    background: var(--clr-blue-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: var(--clr-blue);
    transform: rotate(15deg);
    z-index: 0;
    opacity: 0.5;
}

.cta-container {
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.logo-footer {
    color: white;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
}

.social-links a:hover {
    background-color: var(--clr-yellow);
    color: var(--clr-blue-dark);
}

.footer h3 {
    color: white;
    font-family: var(--ff-heading);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--clr-yellow);
    padding-left: 5px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--clr-yellow);
    font-size: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-socials {
        display: none;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .nav {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--clr-blue);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        height: auto;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header.scrolled .nav {
        top: 70px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PAGE HERO (For internal pages)
   ========================================================================== */
.page-hero {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, var(--clr-blue-dark) 0%, var(--clr-blue) 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 1rem;
}

.page-title span {
    color: var(--clr-yellow);
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   TIMELINE (Historia)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: var(--clr-yellow);
    border-radius: 2px;
}

.timeline-item {
    box-sizing: border-box;
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--clr-yellow);
    color: var(--clr-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--ff-heading);
    font-size: 0.85rem;
    box-shadow: 0 0 0 4px white, var(--shadow-md);
    z-index: 2;
}

.glass-card-alt {
    background: var(--clr-bg-white);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.glass-card-alt:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.glass-card-alt h3 {
    margin-bottom: 0.5rem;
    color: var(--clr-blue);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
    box-sizing: border-box;
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
        margin-bottom: 4rem;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 40px;
    }
    
    .timeline-year {
        left: auto;
        right: -22px;
    }
    
    .timeline-item:nth-child(even) .timeline-year {
        right: auto;
        left: -22px;
    }
    
    /* Make the text shorter so the bubble looks like a circle with text outside it in wide screens */
    .timeline-year {
        width: 20px;
        height: 20px;
        color: transparent;
    }
    
    .timeline-year::after {
        content: attr(data-year);
        position: absolute;
        color: var(--clr-blue-dark);
        font-size: 1.5rem;
        font-family: var(--ff-heading);
        font-weight: 800;
        top: -5px;
    }
    
    .timeline-item:nth-child(odd) .timeline-year::after {
        right: 40px;
    }
    
    .timeline-item:nth-child(even) .timeline-year::after {
        left: 40px;
    }
}

/* ==========================================================================
   DOCUMENTS & BOLETINES GRID
   ========================================================================== */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.doc-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--clr-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-yellow);
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 51, 160, 0.1);
    color: var(--clr-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.doc-info {
    flex-grow: 1;
}

.doc-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.doc-meta {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.doc-action {
    font-size: 1.5rem;
    color: var(--clr-text-muted);
    transition: var(--transition-smooth);
}

.doc-card:hover .doc-action {
    color: var(--clr-yellow-dark);
}

/* ==========================================================================
   TEAM GRID
   ========================================================================== */
.team-section {
    margin-bottom: 4rem;
}

.team-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    display: inline-block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--clr-bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-blue-light);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--clr-bg-light);
    border: 4px solid var(--clr-bg-white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar i {
    font-size: 4rem;
    color: var(--clr-blue);
    opacity: 0.2;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.9rem;
    color: var(--clr-yellow-dark);
    font-weight: 600;
}

/* ==========================================================================
   IDEARIO STYLES
   ========================================================================== */
.ideario-section {
    margin-bottom: 4rem;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-grid .glass-card-alt {
    text-align: center;
    border-top: 4px solid var(--clr-yellow);
}

.mv-grid h2 {
    color: var(--clr-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ideario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ideario-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   MAGAZINE GRID DOCS (Experience Option)
   ========================================================================== */
.boletines-showcase {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.month-showcase {
    width: 100%;
}

.month-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--clr-blue-dark);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.month-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.15), transparent);
}

.mag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.mag-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.mag-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(241, 196, 15, 0.05));
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.6s ease;
}

.mag-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.12);
    border-color: rgba(241, 196, 15, 0.4);
}

.mag-card:hover::before {
    transform: scale(5);
}

.mag-week {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--clr-yellow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--clr-blue-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.mag-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--clr-blue-dark);
    margin-bottom: auto;
    line-height: 1.2;
}

.mag-action {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--clr-blue);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mag-action i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.mag-card:hover .mag-action {
    color: var(--clr-blue-dark);
}

.mag-card:hover .mag-action i {
    transform: translateX(8px);
}

.mag-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 8rem;
    color: rgba(44, 62, 80, 0.04);
    z-index: -1;
    transform: rotate(-15deg);
    transition: all 0.5s ease;
}

.mag-card:hover .mag-bg-icon {
    transform: rotate(0deg) scale(1.1);
    color: rgba(44, 62, 80, 0.08);
}

/* ==========================================================================
   NOTICIAS & GALERIA SWIPER
   ========================================================================== */
.noticia-card {
    background: var(--clr-bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.noticia-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.noticia-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
    line-height: 1.3;
}

.noticia-card p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-link {
    color: var(--clr-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.btn-link:hover {
    color: var(--clr-yellow-dark);
}

.galeria-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.galeria-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper custom colors */
.swiper-pagination-bullet-active {
    background-color: var(--clr-blue) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--clr-blue) !important;
}






/* ==========================================================================
   INSTITUTIONAL DOCS (Option C - Thematic Cards)
   ========================================================================== */
.institutional-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.inst-doc-card {
    background: var(--clr-bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.inst-doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--clr-blue);
    transition: all 0.3s ease;
}

.inst-doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.08);
    border-color: rgba(44, 62, 80, 0.1);
}

.inst-doc-card:hover::before {
    background: var(--clr-yellow);
}

.inst-doc-icon {
    font-size: 3.5rem;
    color: var(--clr-blue);
    margin-bottom: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: rgba(44, 62, 80, 0.04);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inst-doc-card:hover .inst-doc-icon {
    background: var(--clr-yellow);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    border-radius: 50%;
}

.inst-doc-content {
    flex: 1;
    margin-bottom: 2rem;
}

.inst-doc-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--clr-blue-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.inst-doc-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.inst-doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    color: var(--clr-blue-dark);
}

.inst-doc-meta {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.inst-doc-footer i.ph-download-simple {
    font-size: 1.2rem;
    background: rgba(44, 62, 80, 0.04);
    padding: 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.inst-doc-card:hover .inst-doc-footer i.ph-download-simple {
    background: var(--clr-blue);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   PROTOCOLOS LIST
   ========================================================================== */
.protocolos-section {
    max-width: 1200px;
    margin: 4rem auto 0;
}

.protocolos-details {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    overflow: hidden;
}

.protocolos-details summary {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: white;
    background: var(--clr-blue-dark);
    padding: 1.5rem 2rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s;
}

.protocolos-details summary:hover {
    background: var(--clr-blue);
}

.protocolos-details summary::-webkit-details-marker {
    display: none;
}

.protocolos-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fdfdfd;
}

.prot-row {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    color: var(--clr-blue-dark);
    gap: 1rem;
}

.prot-row:hover {
    transform: translateX(5px);
    border-color: var(--clr-yellow);
    box-shadow: 0 4px 12px rgba(44,62,80,0.05);
}

.prot-icon {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-top: 2px;
}

.prot-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.prot-action {
    color: var(--clr-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.prot-row:hover .prot-action {
    opacity: 1;
    transform: translateX(0);
    color: var(--clr-yellow);
}

/* ==========================================================================
   IDEARIO JOURNEY (Option A)
   ========================================================================== */
.ideario-journey {
    padding-top: 4rem;
    padding-bottom: 6rem;
    background-color: var(--clr-bg-white);
}

.section-header {
    margin-bottom: 4rem;
}
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--clr-blue-dark);
    margin-bottom: 1rem;
}
.section-header p {
    color: #666;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}
.text-center { text-align: center; }

/* MISIÓN Y VISIÓN */
.ideario-core-section {
    margin-bottom: 6rem;
}
.core-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.core-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 4rem 3.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}
.core-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(44, 62, 80, 0.08);
}
.core-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--clr-yellow);
    border-radius: 50%;
    opacity: 0.08;
    transition: transform 0.6s ease;
}
.core-card:hover::before {
    transform: scale(2.5);
    opacity: 0.12;
}
.core-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-blue);
    margin-bottom: 1rem;
}
.core-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    color: var(--clr-blue-dark);
    margin-bottom: 1.5rem;
}
.core-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    position: relative;
    z-index: 1;
}

/* SELLOS INSTITUCIONALES */
.ideario-sellos-section {
    background: var(--clr-blue-dark);
    padding: 6rem 0;
    color: white;
    margin-bottom: 6rem;
}
.ideario-sellos-section .section-header h2 {
    color: white;
}
.ideario-sellos-section .section-header p {
    color: rgba(255,255,255,0.7);
}
.sellos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.sello-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.sello-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--clr-yellow);
}
.sello-emoji {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    display: inline-block;
    transition: transform 0.3s;
}
.sello-card:hover .sello-emoji {
    transform: scale(1.1) rotate(5deg);
}
.sello-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--clr-yellow);
}
.sello-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

/* VALORES ZIGZAG */
.valores-zigzag {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
.valor-row {
    display: flex;
    align-items: center;
    gap: 5rem;
}
.valor-row.reverse {
    flex-direction: row-reverse;
}
.valor-text {
    flex: 1;
}
.valor-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--clr-blue-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.valor-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--clr-yellow);
}
.valor-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}
.valor-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 30px;
    padding: 5rem;
    aspect-ratio: 1 / 1;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
}
.valor-visual i {
    font-size: 10rem;
    color: var(--clr-blue);
    opacity: 0.8;
    filter: drop-shadow(0 10px 15px rgba(44,62,80,0.1));
}

@media screen and (max-width: 992px) {
    .core-grid { grid-template-columns: 1fr; }
    .valor-row, .valor-row.reverse { flex-direction: column; gap: 3rem; text-align: center; }
    .valor-text h3::after { left: 50%; transform: translateX(-50%); }
    .valor-visual { aspect-ratio: auto; padding: 4rem; width: 100%; max-width: 100%; }
}

/* ==========================================================================
   TEAM PRESTIGE OVERRIDE
   ========================================================================== */
.team-card {
    background: linear-gradient(to bottom, #ffffff, #fcfcfc);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}
.team-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--clr-yellow);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}
.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(44,62,80,0.08);
}
.team-card:hover::after {
    transform: scaleX(1);
}
.team-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: visible;
    position: relative;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}
.team-avatar::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%;
    border: 2px dashed var(--clr-blue);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 1;
}
.team-card:hover .team-avatar::before {
    opacity: 1;
    transform: rotate(90deg);
}
.team-card:hover .team-avatar img {
    transform: scale(1.05);
}
.team-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--clr-blue-dark);
    margin-bottom: 0.6rem;
}
.team-role {
    font-size: 0.95rem;
    color: var(--clr-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(44,62,80,0.05);
    border-radius: 20px;
}

/* ==========================================================================
   HISTORIA - TIMELINE (ZIG-ZAG)
   ========================================================================== */
.history-timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem 0;
}
.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(44, 62, 80, 0.1);
    transform: translateX(-50%);
    border-radius: 4px;
}
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-content {
    width: 45%;
    background: var(--clr-bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.timeline-year {
    position: absolute;
    top: -20px;
    background: var(--clr-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(44,62,80,0.2);
}
/* Right side alignments */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-item:nth-child(odd) .timeline-year {
    right: 20px;
}
.timeline-item:nth-child(even) .timeline-year {
    left: 20px;
}
/* The dot on the center line */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--clr-yellow);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-dot {
    background: var(--clr-blue);
    transform: translate(-50%, -50%) scale(1.3);
}
/* Text styles inside timeline */
.timeline-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.timeline-content p:last-child {
    margin-bottom: 0;
}
/* Responsive */
@media (max-width: 768px) {
    .history-timeline::before {
        left: 30px;
    }
    .timeline-item, .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-end;
    }
    .timeline-content {
        width: calc(100% - 70px);
    }
    .timeline-dot {
        left: 30px;
        top: 30px;
    }
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: 20px;
        right: auto;
    }
}

/* ==========================================================================
   HISTORIA - EDITORIAL (OPCION B)
   ========================================================================== */
.editorial-block {
    position: relative;
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}
.editorial-block:last-child {
    border-bottom: none;
}
.editorial-block:nth-child(even) {
    background: var(--clr-bg-white);
}
.editorial-block:nth-child(odd) {
    background: var(--clr-bg-gray);
}
.editorial-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 800;
    color: var(--clr-blue);
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    font-family: 'Playfair Display', serif;
    white-space: nowrap;
}
.editorial-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.editorial-block:nth-child(even) .editorial-content {
    text-align: right;
}
.editorial-block:nth-child(odd) .editorial-content {
    text-align: left;
}
.editorial-year-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--clr-blue-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.editorial-block:nth-child(odd) .editorial-year-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--clr-yellow);
}
.editorial-block:nth-child(even) .editorial-year-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--clr-yellow);
}
.editorial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}
.editorial-text p {
    margin-bottom: 1.5rem;
}
.editorial-text p:last-child {
    margin-bottom: 0;
}
.editorial-quote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--clr-blue);
    border-left: 4px solid var(--clr-yellow);
    padding-left: 1.5rem;
    margin: 2rem 0;
}
.editorial-block:nth-child(even) .editorial-quote {
    border-left: none;
    border-right: 4px solid var(--clr-yellow);
    padding-left: 0;
    padding-right: 1.5rem;
}

/* ==========================================================================
   CONTACTO PRESTIGE
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 3rem auto;
}
.contact-card {
    background: var(--clr-bg-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: var(--clr-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44,62,80,0.08);
}
.contact-card:hover::before {
    transform: scaleX(1);
}
.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(44, 62, 80, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}
.contact-card:hover .contact-icon-wrapper {
    background: var(--clr-blue);
    transform: rotateY(180deg);
}
.contact-icon-wrapper i {
    font-size: 40px;
    color: var(--clr-blue);
    transition: all 0.4s ease;
}
.contact-card:hover .contact-icon-wrapper i {
    color: var(--clr-yellow);
}
.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--clr-blue-dark);
    margin-bottom: 0.5rem;
}
.contact-card span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
}
.contact-card:hover span {
    color: var(--clr-blue);
}

/* Colores específicos para hover */
.contact-card.ig:hover::before { background: #e1306c; }
.contact-card.ig:hover .contact-icon-wrapper { background: #e1306c; }
.contact-card.ig:hover .contact-icon-wrapper i { color: white; }

.contact-card.fb:hover::before { background: #1877f2; }
.contact-card.fb:hover .contact-icon-wrapper { background: #1877f2; }
.contact-card.fb:hover .contact-icon-wrapper i { color: white; }

.contact-card.wa:hover::before { background: #25d366; }
.contact-card.wa:hover .contact-icon-wrapper { background: #25d366; }
.contact-card.wa:hover .contact-icon-wrapper i { color: white; }

.offcanvas-menu.active .offcanvas-nav li:nth-child(7) { transition-delay: 0.7s; }
.offcanvas-menu.active .offcanvas-nav li:nth-child(8) { transition-delay: 0.8s; }

/* ==========================================================================
   CONTACTO BENTO BOX (OPCION A)
   ========================================================================== */
.bento-container {
    max-width: 1100px;
    margin: 0 auto 4rem;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 250px 250px 180px;
    gap: 1.5rem;
}
.bento-item {
    background: var(--clr-bg-white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Grid Areas */
.bento-map {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0; /* Map takes full space */
}
.bento-address {
    grid-column: span 1;
    grid-row: span 1;
    background: var(--clr-blue-dark);
    color: white;
}
.bento-direct {
    grid-column: span 1;
    grid-row: span 1;
    background: var(--clr-yellow);
    color: var(--clr-blue-dark);
}
.bento-email {
    grid-column: span 1;
    grid-row: span 1;
}
.bento-social {
    grid-column: span 2;
    grid-row: span 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

/* Typography inside Bento */
.bento-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.bento-address h3 { color: white; }
.bento-direct h3 { color: var(--clr-blue-dark); }
.bento-email h3 { color: var(--clr-blue-dark); }
.bento-social h3 { color: var(--clr-blue-dark); margin: 0; }

.bento-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.bento-address p { color: rgba(255,255,255,0.8); }
.bento-direct p { font-weight: 600; font-size: 1.3rem; }

/* Icons */
.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.bento-address .bento-icon { color: var(--clr-yellow); }
.bento-direct .bento-icon { color: var(--clr-blue-dark); }
.bento-email .bento-icon { color: var(--clr-blue); }

/* Social Links inside Bento */
.bento-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}
.bento-social-link i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--clr-blue);
    transition: all 0.3s ease;
}
.bento-social-link:hover.ig i { color: #e1306c; transform: scale(1.1); }
.bento-social-link:hover.fb i { color: #1877f2; transform: scale(1.1); }
.bento-social-link:hover span { color: var(--clr-blue-dark); }

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-map {
        grid-column: span 1;
        grid-row: span 1;
        height: 350px;
    }
    .bento-address, .bento-direct, .bento-email, .bento-social {
        grid-column: span 1;
        grid-row: span 1;
        padding: 2.5rem;
    }
    .bento-social {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* ==========================================================================
   EQUIPO - AGENCIA (OPCION B)
   ========================================================================== */
.team-grid.agency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.team-card.agency-style {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4; /* Retrato vertical */
    background: var(--clr-blue-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    padding: 0;
    border: none;
}
.team-card.agency-style::before {
    display: none; /* Quitar la barra azul de hover que teniamos antes */
}
.team-card.agency-style:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 2;
}
.team-avatar-agency {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
}
.team-avatar-agency img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.75;
    transition: all 0.5s ease;
}
.team-card.agency-style:hover .team-avatar-agency img {
    opacity: 1;
    transform: scale(1.05);
}
.team-info-agency {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(15, 32, 63, 0.95) 0%, rgba(15, 32, 63, 0.8) 50%, transparent 100%);
    text-align: left;
    transition: transform 0.4s ease;
}
.team-info-agency h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}
.team-info-agency .team-role {
    color: var(--clr-yellow);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   EQUIPO - DIRECTORIO (OPCION A)
   ========================================================================== */
.team-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}
.team-list-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: default;
}
.team-list-item:last-child {
    border-bottom: none;
}
.team-list-item:hover {
    background: rgba(44, 62, 80, 0.03);
    border-radius: 10px;
    transform: translateX(5px);
}
.team-list-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.team-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-list-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.team-list-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-blue-dark);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.team-list-role {
    font-size: 0.95rem;
    color: var(--clr-blue);
    background: rgba(243, 156, 18, 0.15); /* Yellow with low opacity */
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
}

@media (max-width: 650px) {
    .team-list-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
