:root {
    --primary-color: #BF602A;
    --primary-hover: #a34e1f;
    --tag-color: #FF5A1F;      /* naranja vibrante para chips/tags */
    --text-color: #070308;
    --text-muted: #5e5e5e;
    --bg-color: #ffffff;
    --bg-alt: #f5f5f5;
    --border-color: #e5e5e5;
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --header-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
 * SCROLL REVEAL
 */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ─── Global section tag base ────────────────────────────── */
.section-tag {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tag-color);
    margin-bottom: 20px;
}

.section-tag--light {
    color: rgba(255, 255, 255, 0.75);
}

/* ─── Global section h2 base ─────────────────────────────── */
.section-h2,
section h2,
.methodology-container h2,
.sticky-cards-header h2,
.programas-header-left h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* White h2 for dark-background sections */
.sticky-cards-header h2,
.elite-card-text h2,
.sticky-card .elite-card-text h2,
.large-card h2,
.hero-cta-area h2,
.methodology-top-left h2 {
    color: white;
}

@media (max-width: 768px) {
    .section-h2,
    section h2,
    .methodology-container h2,
    .sticky-cards-header h2,
    .programas-header-left h2 {
        font-size: 2.4rem;
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 
 * HEADER STYLES 
 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 24px 0;
    background: transparent;
    border-bottom: none;
    z-index: 1000;
    pointer-events: none; /* clicks pasan al hero */
}

/* Gradiente difuminado amplio que se extiende más allá del header */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 220px; /* más alto que el header para un fade suave */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.38) 0%,
        rgba(0,0,0,0.18) 35%,
        rgba(0,0,0,0.06) 65%,
        rgba(0,0,0,0) 100%
    );
    pointer-events: none;
    z-index: -1;
}

.site-header.scrolled {
    background: transparent;
}

/* ── Logo → glass pill al hacer scroll ── */
a.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, padding 0.3s ease, border-radius 0.3s ease;
}

.logo-home-icon {
    height: 30px;
    width: 0;
    flex-shrink: 0;
    color: white;
    opacity: 0;
    overflow: hidden;
    align-self: center;
    transition: opacity 0.3s ease, width 0.3s ease;
}

a.logo.logo-as-btn {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18),
                inset 0 1px 0 rgba(255,255,255,0.28);
    border-radius: 100px;
    padding: 8px 16px;
}

a.logo.logo-as-btn .logo-home-icon {
    opacity: 1;
    width: 30px;
}

a.logo.logo-as-btn .logo-svg {
    height: 28px;
    width: auto;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
    height: 56px;
    /* Grid de 3 columnas: logo | nav centrado | botón */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
    z-index: 1001;
    pointer-events: all;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}


/* ── Logo — sin contenedor, SVG flotante ── */
.logo {
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.logo-svg {
    width: 140px;
    height: 80px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

/* Navigation - pill centrado por grid (column 2 = auto) */
.main-nav {
    height: 44px;
    display: flex;
    align-items: center;
    position: relative; /* ancla el mega-menu */
    /* ── Light glass pill (sobre hero oscuro) ── */
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18),
                inset 0 1px 0 rgba(255,255,255,0.28);
    padding: 0 6px;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Safe-zone: zona invisible bajo el pill que cubre el gap hasta el mega-menu */
.main-nav::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -40px;
    right: -40px;
    height: 14px;
    background: transparent;
}


.nav-list {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 2px;
    padding: 0;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 18px;
    height: 36px;
    display: flex;
    align-items: center;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

/* Hover: sub-pill que ocupa el alto del nav y el ancho del texto */
.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18),
                inset 0 -1px 2px rgba(0,0,0,0.10);
}

/* Actions - Right side */
.header-actions {
    display: flex;
    align-items: center;
    justify-self: end;   /* ancla a la derecha del grid */
    z-index: 1001;
    padding-left: 0;
    border-left: none;
}

/* ── Botón "Reservar Cita" — light glass pill (mismo tono que nav) ── */
.header-actions .ef-btn-primary {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18),
                inset 0 1px 0 rgba(255,255,255,0.28);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 22px;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
}

.header-actions .ef-btn-primary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22),
                inset 0 1px 0 rgba(255,255,255,0.38);
}


.ef-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape like Nike */
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.ef-btn-primary {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 9px 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ef-btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(191, 96, 42, 0.3);
}

.ef-btn-primary span {
    position: relative;
    z-index: 2;
}

/*
 * MEGA MENU — Glass panel flotante
 */
.mega-menu {
    position: absolute;
    top: calc(100% + 10px); /* justo bajo el pill, sin gap */
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: max-content;
    max-width: min(1100px, 92vw);
    min-width: 320px;
    background: rgba(14, 10, 8, 0.88);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18),
                inset 0 1px 0 rgba(255,255,255,0.28);
    padding: 28px 36px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.18s ease, transform 0.18s ease,
                visibility 0s linear 0.18s;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease,
                visibility 0s linear 0s;
}

/* Bridge: cubre el gap entre pill y panel (ancho extra para items en los extremos) */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -200px;
    right: -200px;
    height: 16px;
    background: transparent;
}

.mega-menu-content {
    /* El panel gestiona su propio tamaño */
}

.mega-menu-grid {
    display: flex;
    gap: 0;
    justify-content: flex-start;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    min-width: 190px;  /* más ancho para 3-4 columnas */
    flex-shrink: 0;
    padding: 0 32px;
}

/* Separador vertical entre columnas */
.mega-menu-column + .mega-menu-column {
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

/* Primera columna sin padding izquierdo */
.mega-menu-column:first-child {
    padding-left: 0;
}

/* Última columna sin padding derecho */
.mega-menu-column:last-child {
    padding-right: 0;
}

.mega-menu-column h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.45);
}

.mega-menu-column h4 a {
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.15s ease;
}

.mega-menu-column h4 a:hover {
    color: var(--primary-color);
}

.mega-menu-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-menu-column li a {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.15s ease;
    display: block;
    padding: 3px 0;
}

.mega-menu-column li a:hover {
    color: #ffffff;
}

/* Featured image en E-Academy */
.mega-menu-featured {
    min-width: 180px;
    max-width: 220px;
}

.mega-menu-featured img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4/3;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}

.mega-menu-featured p {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}


/* 
 * BACKDROP
 */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 999;
}

.menu-backdrop.active {
    display: block;
}


/* 
 * PAGE CONTENT PLACEHOLDER
 */
.main-content {
    /* Remove top margin so the hero goes under the header */
    min-height: 200vh;
}



/* RESPONSIVE (Basic) */
@media (max-width: 1024px) {
    .nav-list {
        gap: 20px;
    }

    .mega-menu-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .site-header {
        display: none;
    }

    .menu-backdrop {
        display: none;
    }
}

/* ── Mobile Bottom Bar + Menu ── */
.mobile-bottom-bar,
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        z-index: 2000;
        align-items: center;
        gap: 8px;
        padding: 6px 6px 6px 16px;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 100px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .mobile-bottom-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        padding-right: 8px;
    }

    .mobile-bottom-logo .logo-home-icon {
        width: 24px;
        height: 24px;
        color: white;
        opacity: 1;
    }

    .mobile-bottom-logo-img {
        height: 18px;
        width: auto;
    }

    /* Hamburger */
    .mobile-hamburger {
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: rgba(255, 255, 255, 0.12);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        padding: 0;
        transition: background 0.2s ease;
    }

    .mobile-hamburger:hover {
        background: rgba(255, 255, 255, 0.20);
    }

    .mobile-hamburger span {
        display: block;
        width: 18px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile Menu */
    .mobile-menu {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1999;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu-inner {
        width: 100%;
        padding: 60px 28px 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100%;
    }

    .mobile-menu-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 18px 0;
        font-family: var(--font-heading);
        font-size: 1.5rem;
        font-weight: 600;
        color: white;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .mobile-menu-heading::after {
        content: '+';
        font-size: 1.2rem;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.5);
        transition: transform 0.3s ease;
    }

    .mobile-menu-heading:only-child::after {
        content: none;
    }

    .mobile-menu-heading.active::after {
        content: '−';
    }

    .mobile-menu-sub {
        display: none;
        flex-direction: column;
        gap: 2px;
        padding: 0 0 16px 0;
    }

    .mobile-menu-sub.open {
        display: flex;
    }

    .mobile-menu-sub a {
        padding: 10px 0;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .mobile-menu-sub a:hover {
        color: white;
    }

    .mobile-menu-cta {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 40px;
    }

    .mobile-menu-cta .ef-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 16px 24px;
        border-radius: 40px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        text-align: center;
    }

    .mobile-menu-cta .ef-btn-primary {
        background: var(--primary-color);
        color: white;
    }

    .mobile-menu-cta .ef-btn-whatsapp {
        background: #25D366;
        color: white;
        gap: 8px;
    }

    .mobile-menu-cta .ef-btn-white {
        background: rgba(255, 255, 255, 0.10);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* 
 * METHODOLOGY INTRO SECTION
 */
.methodology-intro-section {
    padding: 120px 0 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.methodology-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.methodology-top-left {
    max-width: 800px;
}


.methodology-bottom-right {
    align-self: flex-end;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.methodology-bottom-right p {
    font-size: 1.05rem;
    /* Ampliado como pediste */
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 992px) {
    .methodology-top-left h2 {
        font-size: 2.5rem;
    }

    .methodology-bottom-right {
        align-self: flex-start;
        max-width: 100%;
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .methodology-intro-section {
        padding: 80px 0 40px;
    }

    .methodology-container {
        padding: 0 20px;
    }

    .methodology-top-left h2 {
        font-size: 2rem;
    }

    .methodology-bottom-right {
        margin-top: 0;
    }
}

/*
 * SPECIALTIES GRID SECTION
 */
.specialties-grid-section {
    padding: 60px 0 100px 0;
    background-color: var(--primary-color);
}

.grid-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 30px;
}

.grid-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Base large card */
.large-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    padding: 80px 40px;
    min-height: 750px;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.large-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* geometric grid from reference */
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h80v80H0V0zm40 0v80M0 40h80M0 0l80 80M80 0L0 80' stroke='rgba(255,255,255,0.2)' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    z-index: 0;
    pointer-events: none;
}

.large-card h2,
.large-card p {
    position: relative;
    z-index: 1;
}

.large-card h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 30px;
    max-width: 70%;
    color: white;
}

.large-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* The 2x2 grid */
.grid-cards-wrapper {
    flex: 1;
    /* Restored to half the space exactly */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.small-card {
    justify-content: flex-start;
    padding: 30px;
}

.small-card h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    color: #3a1a06;
    /* naranja muy oscuro, cálido, casi negro */
    margin-bottom: 20px;
    line-height: 1.3;
}

.small-card p {
    font-size: 1.1rem;
    color: #9e9e9e;
    /* gris clarito neutro */
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.ef-btn-outline {
    align-self: stretch;
    /* Make it full width of its container */
    text-align: center;
    padding: 12px 20px;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ef-btn-outline:hover {
    background: #f0844a;
    /* naranja más claro al hacer hover */
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .specialties-grid-section {
        padding: 40px 0 60px;
    }

    .grid-container {
        padding: 0 20px;
        gap: 16px;
    }

    .grid-cards-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .grid-cards-wrapper::-webkit-scrollbar {
        display: none;
    }

    .grid-cards-wrapper .small-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .large-card {
        min-height: 320px;
        border-radius: 16px;
    }

    .large-card h2 {
        font-size: 2.2rem;
    }

    .elite-card h3 {
        font-size: 1.15rem;
    }
}

/*
 * TÉCNICAS SECTION
 */
.tecnicas-section {
    padding: 100px 0;
    background-color: #f7f7f7;
}

.tecnicas-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Header: two-column layout */
.tecnicas-header {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.tecnicas-header-left {
    flex: 1;
}


.tecnicas-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.tecnicas-header-right p {
    font-size: 1.05rem;
    /* igual que .methodology-bottom-right p */
    line-height: 1.7;
    color: var(--text-muted);
}

.tecnicas-header-right a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.tecnicas-header-right a:hover {
    text-decoration: underline;
}

/* 4 cards row */
/* Enable subgrid for row alignment across cards */
.tecnicas-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto 1fr;
    /* h3, p, ul */
    gap: 24px;
    align-items: start;
}

.tecnica-card {
    background: white;
    border-radius: 16px;
    padding: 36px 30px;
    display: grid;
    grid-template-rows: subgrid;
    /* hereda las filas del padre para nivelar */
    grid-row: span 3;
    /* h3, p, ul */
    gap: 0;
}

.tecnica-card h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    color: #3a1a06;
    line-height: 1.2;
    margin-bottom: 16px;
}

.tecnica-card>p {
    font-size: 1.1rem;
    color: #9e9e9e;
    line-height: 1.6;
    padding-bottom: 16px;
    margin-bottom: 8px;
    align-self: start;
}

.tecnica-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.tecnica-card ul li {
    border-top: 1px solid #ebebeb;
}

.tecnica-card ul li a {
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    padding: 14px 8px;
    border-radius: 8px;
    margin: 0 -8px;
    transition: background 0.25s ease, color 0.25s ease;
}

.tecnica-card ul li a:hover {
    background: #f7f7f7;
}

/* arrow icon */
.tecnica-card ul li a::after {
    content: '';
    display: block;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg fill='none' height='96' viewBox='0 0 96 96' width='96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-rule='evenodd' fill='%23F27A1A' fill-rule='evenodd' transform='rotate(180 48 48)'%3E%3Cpath d='m59.8001 35.6987c.8264.8235.8287 2.1611.0052 2.9875l-20.8144 20.8865c-.8235.8264-2.1611.8287-2.9875.0052-.8264-.8236-.8287-2.1611-.0051-2.9875l20.8143-20.8866c.8235-.8264 2.1611-.8287 2.9875-.0051z'/%3E%3Cpath d='m37.4641 40.3309c1.1667-.002 2.1141.9422 2.1161 2.1089l.0234 13.5253 13.5253-.0234c1.1668-.0021 2.1142.9421 2.1162 2.1088s-.9421 2.1141-2.1088 2.1161l-15.1842.0263c-1.4172.0025-2.5681-1.1444-2.5706-2.5617l-.0263-15.1841c-.002-1.1667.9422-2.1142 2.1089-2.1162z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

/* Responsive */
@media (max-width: 1024px) {
    .tecnicas-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tecnicas-section {
        padding: 60px 0;
    }

    .tecnicas-container {
        padding: 0 20px;
    }

    .tecnicas-header {
        flex-direction: column;
        gap: 20px;
    }

    .tecnicas-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tecnicas-cards::-webkit-scrollbar {
        display: none;
    }

    .tecnica-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        grid-row: unset;
    }
}

/*
 * TEAM SECTION — Grid Zentro Style
 */
.team-section-wrapper {
    padding: 80px 40px;
    background-color: white;
    max-width: 1600px;
    margin: 0 auto;
}

.team-layout {
    display: flex;
    gap: 60px;
    align-items: start;
}

/* Left info column */
.team-info {
    flex: 0 0 28%;
    position: sticky;
    top: 120px;
}

.team-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.team-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-cta:hover {
    color: var(--primary-color);
}

.team-cta svg {
    width: 45px;
    height: 45px;
}

/* Right grid column */
.team-grid-wrapper {
    flex: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.team-page {
    display: none;
}

.team-page.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    animation: teamFadeIn 0.4s ease;
}

@keyframes teamFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Team member card */
a.team-member {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-member {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

/* Overlay with name + role */
.team-member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-member-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.team-member-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-member:hover .team-member-role {
    opacity: 1;
    transform: translateY(0);
}

/* Pagination nav */
.team-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.team-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: white;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.team-nav-btn:hover:not(:disabled) {
    background: var(--bg-alt);
    border-color: var(--text-muted);
}

.team-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.team-nav-indicator {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-layout {
        flex-direction: column;
        gap: 40px;
    }

    .team-info {
        flex: none;
        position: static;
        max-width: 600px;
    }

    .team-heading {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .team-section-wrapper {
        padding: 60px 20px;
    }

    .team-page.active {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Colapsar páginas vacías en mobile */
    .team-page.active:empty,
    .team-page.active:not(:has(.team-member:not([style*="display: none"]))) {
        display: none;
    }

    .team-heading {
        font-size: 2rem;
    }

    .team-member-role {
        opacity: 1;
        transform: none;
    }
}

/*
 * PROGRAMAS SLIDER SECTION
 */
.programas-section {
    padding: 100px 0 0;
    background-color: white;
    overflow: hidden;
}

.programas-header {
    display: flex;
    gap: 80px;
    align-items: flex-end;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px 60px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 60px;
}

.programas-header-left {
    flex: 1;
}

.programas-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-end;
}

.programas-header-right>p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: right;
    max-width: 480px;
}

/* Nav buttons */
.programas-nav {
    display: flex;
    gap: 12px;
}

.prog-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #d0d0d0;
    background: white;
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.prog-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Mobile slider nav — reutiliza prog-btn */
.slider-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
}

/* Slider rail */
.programas-rail-wrapper {
    overflow: hidden;
    padding-bottom: 80px;
}

.programas-rail {
    display: flex;
    gap: 24px;
    /* Align first slide with header title: same left offset as max-width:1600px centered container */
    padding-left: max(40px, calc((100vw - 1600px) / 2 + 40px));
    padding-right: 40px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each slide card */
.prog-slide {
    flex: 0 0 calc(33.333% - 16px);
    /* show 2+ cards at a time with a peek */
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #f7f7f7;
}

.prog-slide-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.prog-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.prog-slide:hover .prog-slide-image img {
    transform: scale(1.04);
}

.prog-slide-label {
    position: absolute;
    bottom: 20px;
    left: 24px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.prog-slide-content {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prog-slide-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.prog-slide-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.prog-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.15s ease;
}

.prog-link:hover {
    gap: 8px;
}

/* ── Programas Responsive ── */
@media (max-width: 1024px) {
    .programas-header {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }

    .programas-header-right {
        align-items: flex-start;
    }

    .programas-header-right > p {
        text-align: left;
    }

    .prog-slide {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .programas-section {
        padding: 60px 0 0;
    }

    .programas-header {
        padding: 0 20px 40px;
        gap: 24px;
        margin-bottom: 40px;
    }

    .programas-header-left h2 {
        font-size: 2.4rem;
    }

    .prog-slide {
        flex: 0 0 85%;
    }

    .prog-slide-image {
        height: 240px;
    }

    .programas-rail {
        padding-left: 20px;
        padding-right: 20px;
    }

    .programas-rail-wrapper {
        padding-bottom: 50px;
    }

    .prog-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .programas-nav,
    .team-nav {
        display: none;
    }
}

/*
 * SERVICIOS — Sticky stacking cards (narvar.com effect)
 */
.sticky-cards-section {
    background-color: #0e0e0e;
    padding-top: 100px;
}

/* Title block */
.sticky-cards-header {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px 80px;
    text-align: center;
}

.sticky-cards-eyebrow {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tag-color);
    margin-bottom: 20px;
}

.sticky-cards-header h2 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    color: white;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.sticky-cards-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Stack container */
.sticky-cards-stack {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* No gap — sticky effect stacks them */
    padding-bottom: 120px;
}

/* Each sticky card */
.sticky-card {
    position: sticky;
    top: 15vh;
    /* Offset so they stack below header */
    z-index: calc(var(--card-index) * 1);
    display: flex;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1a1a;
    min-height: 300px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform-origin: top center;
}

/* Orange accent: partial top border that fades to transparent */
.sticky-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    /* only covers the left portion of the top edge */
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    border-radius: 20px 0 0 0;
    z-index: 10;
    pointer-events: none;
}

.sticky-card-reverse {
    flex-direction: row-reverse;
}

/* For reversed cards, accent is on the right side */
.sticky-card-reverse::before {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, var(--primary-color) 0%, transparent 100%);
    border-radius: 0 20px 0 0;
}

.elite-card {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1a1a;
    min-height: 280px;
}

.elite-card-text {
    flex: 1;
    padding: 50px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    color: white;
}

.elite-card-tag {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
    width: fit-content;
}

.elite-card-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: white;
}

.elite-card-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 420px;
}

/* Button: orange pill with opacity */
.elite-card-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    background: rgba(191, 96, 42, 0.2);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(191, 96, 42, 0.5);
    margin-top: 8px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: fit-content;
}

.elite-card-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.elite-card-media {
    flex: 1;
    overflow: hidden;
    max-width: 50%;
}

.elite-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.elite-card:hover .elite-card-media img {
    transform: scale(1.04);
}

/*
 * EQUIPOS — Centro de Referencia logos strip
 */
.equipos-section {
    padding: 80px 0;
    background-color: white;
}

.equipos-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.equipos-header {
    flex-shrink: 0;
}

.equipos-header h2 {
    color: var(--text-color);
}

.equipos-logos {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.equipos-logos img {
    height: 150px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.equipos-logos img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .elite-card {
        flex-direction: column;
    }

    .elite-card-media {
        max-width: 100%;
        height: 240px;
    }

    .equipos-container {
        flex-direction: column;
        gap: 40px;
    }

    .equipos-logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-items: center;
        width: 100%;
    }

    .equipos-logos img {
        height: auto;
        width: 100%;
        max-height: 160px;
    }
}

/*
 * ÉLITE TV TEASER (homepage)
 */
.elite-tv-section {
    padding: 100px 0;
    background: #0d0d0d;
    color: #fff;
}

.elite-tv-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 120px);
}

.elite-tv-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.elite-tv-header-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 8px;
}

.elite-tv-header-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.elite-tv-header .ef-btn-tv {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.elite-tv-header .ef-btn-tv:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.elite-tv-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.elite-tv-scroll::-webkit-scrollbar {
    height: 6px;
}

.elite-tv-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.elite-tv-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.elite-tv-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #1a1a1a;
    text-decoration: none;
    display: block;
}

.elite-tv-card:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.elite-tv-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.elite-tv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.elite-tv-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.elite-tv-card:hover .elite-tv-card-play {
    opacity: 1;
}

.elite-tv-card-play svg {
    width: 44px;
    height: 44px;
    fill: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.elite-tv-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.elite-tv-card-body {
    padding: 14px 16px;
}

.elite-tv-card-body h3 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
}

.elite-tv-card-body span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .elite-tv-section {
        padding: 60px 0;
    }

    .elite-tv-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .elite-tv-card {
        flex: 0 0 220px;
    }
}

/*
 * LATEST BLOGS SECTION
 */
.latest-blogs-section {
    padding: 100px 0;
    background-color: white;
}

.blogs-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.blogs-header h2 {
    color: var(--text-color);
}

.ef-btn-blog-outline {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid #eaeaea;
    background: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ef-btn-blog-outline:hover {
    background: #f7f7f7;
    border-color: #d0d0d0;
}

/* 4 Column Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.9;
}

/* Hover overlay setup */
.blog-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ef-btn-blog-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.ef-btn-blog-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-card:hover .blog-image-overlay {
    opacity: 1;
}

.blog-card:hover .ef-btn-blog-overlay {
    transform: translateY(0);
}

.blog-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
}

.blog-content h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-content h3 a:hover {
    text-decoration: underline;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-tag {
    color: var(--text-color);
    font-weight: 500;
}

.blog-author-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.blog-author-link:hover {
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr;
    }

    .blogs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/*
 * CALL TO ACTION (Dark Section before footer)
 */
.cta-wrapper {
    padding: 60px 20px 20px;
    background-color: white;
}

.cta-section {
    position: relative;
    color: white;
    padding: 120px 60px;
    border-radius: 24px;
    max-width: 1600px;
    margin: 0 auto;
    text-align: left;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.cta-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 28px 32px;
    max-width: 520px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cta-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-top: 4px;
    margin-bottom: 16px;
}

.cta-info {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    list-style: none;
    margin-bottom: 12px;
    padding: 16px 0;
}

.cta-info:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 0;
}

.cta-info:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-info + .cta-buttons {
    margin-top: 28px;
}

.cta-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    white-space: nowrap;
}

.cta-info li svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.cta-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.cta-buttons .ef-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-buttons .ef-btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.cta-buttons .ef-btn-whatsapp:hover {
    background-color: #1fb855;
    transform: translateY(-2px);
}

.cta-buttons .ef-btn-white {
    background-color: white;
    color: #000;
}

.cta-buttons .ef-btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.cta-buttons .ef-btn-dark-outline {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-buttons .ef-btn-dark-outline:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-info {
        flex-direction: column;
        gap: 10px;
    }

    .cta-info li {
        white-space: normal;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .ef-btn {
        justify-content: center;
    }
}

/*
 * CUSTOM FOOTER (Antigravity Style)
 */
.site-footer {
    background-color: transparent;
    padding: 60px 40px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Top Row (Title + Links) */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

.footer-left-title {
    flex: 1;
    max-width: 400px;
}

.footer-left-title p {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Right Links Grid */
.footer-links-grid {
    display: flex;
    gap: 80px;
    /* Space between columns */
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col ul li a {
    color: var(--text-color);
    /* Texto gris para enlaces */
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s ease;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

/* Massive Center Logo */
.footer-massive-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
    width: 100%;
}

.footer-massive-logo img {
    width: 100%;
    max-width: 600px;
    /* Reducido según lo solicitado */
    height: auto;
    display: block;
    /* Filtrar a oscuro si es necesario, asumiendo que el svg ya es dark/visbile */
}

/* Bottom Section */
.footer-bottom-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 40px;
    transition: all 0.3s ease;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaeaea;
    padding-top: 24px;
}

.footer-social-bottom {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
    /* Para ayudar a centrar el elemento del medio */
    justify-content: flex-start;
}

.footer-social-bottom a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-bottom a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-social-bottom a svg {
    width: 18px;
    height: 18px;
}

.footer-legal {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
    justify-content: center;
    /* Centrar links legales */
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-made-by {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    text-align: right;
    /* Alinear a la derecha */
}

.footer-made-by a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-made-by a:hover {
    color: var(--primary-color);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-top-row {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-grid {
        gap: 24px;
        width: 100%;
        justify-content: space-between;
    }

    .footer-col:first-child {
        text-align: left;
    }

    .footer-col:last-child {
        text-align: right;
    }

    .footer-bottom-wrapper {
        margin-top: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer-social-bottom,
    .footer-legal,
    .footer-made-by {
        flex: auto;
        justify-content: center;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 16px;
    }
}


/* ══════════════════════════════════════════════════════════════
   HERO V2 — nuevo diseño 2026
   ══════════════════════════════════════════════════════════════ */
.hero-v2 {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    color: white;
}

.hv2-bg {
    position: absolute;
    inset: 0;
    /* background asignado aleatoriamente por main.js */
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}

.hv2-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        108deg,
        rgba(7, 3, 8, 0.88) 0%,
        rgba(7, 3, 8, 0.62) 52%,
        rgba(7, 3, 8, 0.22) 100%
    );
    z-index: 1;
}

.hv2-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 48px;
    padding-top: var(--header-height);
    gap: 40px;
}

/* ── Izquierda ───────────────────────────────────────────── */
.hv2-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 580px;
    flex: 1;
}

.hv2-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: white;
    width: fit-content;
}

.hv2-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

.hv2-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: white;
    margin: 0;
}

.hv2-subtitle {
    font-size: 1.2rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    max-width: 420px;
    margin: 0;
}

.hv2-cta {
    background: var(--primary-color);
    color: white;
    width: fit-content;
    border: none;
}

.hv2-cta:hover {
    background: var(--primary-hover);
    color: white;
}

/* Galería de miniaturas — botón pill */
.hv2-gallery {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.hv2-gallery:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.32);
}

.hv2-gallery img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.28);
}

.hv2-gallery-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: 6px;
}

.hv2-gallery-label {
    font-size: 1em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.hv2-gallery-sub {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.48);
}

/* Tagline inferior */
.hv2-tagline {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.hv2-tagline-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hv2-tagline-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

/* ── Tarjeta flotante derecha — Liquid Glass ─────────────── */
.hv2-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 32px;
    width: 400px;
    flex-shrink: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.18);
    display: flex;
    flex-direction: column;
}

.hv2-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    display: block;
    margin-bottom: 14px;
}

.hv2-card-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 22px;
}

.hv2-card-title strong {
    font-weight: 800;
    color: #ffffff;
}

.hv2-card-btn {
    display: block;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    text-align: center;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.2s ease, color 0.2s ease;
}

.hv2-card-btn:hover {
    background: var(--primary-color);
    color: white;
}

.hv2-card-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 18px;
}

.hv2-avatars {
    display: flex;
    flex-shrink: 0;
}

.hv2-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    margin-right: -14px;
}

.hv2-proof-text {
    font-size: 1rem;
    color: #ffffff;
    padding-left: 14px;
    text-decoration: none;
}

.hv2-proof-muted {
    color: rgba(255, 255, 255, 0.5);
}

.hv2-card-stats {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
}

.hv2-stats-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.hv2-card-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hv2-card-stats ul li {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    padding-left: 18px;
    position: relative;
}

.hv2-card-stats ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ── Hero V2 Responsive ── */
@media (max-width: 1024px) {
    .hv2-layout {
        padding: 0 28px;
        padding-top: var(--header-height);
        gap: 28px;
    }

    .hv2-card {
        width: 340px;
        padding: 24px;
    }

    .hv2-card-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero-v2 {
        height: auto;
        min-height: 100vh;
    }

    .hv2-layout {
        flex-direction: column;
        justify-content: flex-start;
        padding: 0 20px;
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 100px;
        gap: 32px;
    }

    .hv2-left {
        max-width: 100%;
        gap: 20px;
    }

    .hv2-title {
        font-size: 2.6rem;
    }

    .hv2-subtitle {
        font-size: 1.05rem;
    }

    .hv2-gallery {
        align-self: flex-start;
    }

    .hv2-card {
        width: 100%;
        padding: 24px;
    }

    .hv2-card-title {
        font-size: 1.3rem;
    }

    .hv2-avatar {
        width: 40px;
        height: 40px;
    }
}


/* ═══════════════════════════════════════════════════════
 * SERVICIOS CARDS SECTION — 2×2 full-bleed image grid
 * ═══════════════════════════════════════════════════════ */
.servicios-cards-section {
    width: 100%;
    padding: 8px;
    background: var(--bg-color);
}

.servicios-cards-header {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 40px 40px;
}

@media (max-width: 768px) {
    .servicios-cards-header {
        padding: 60px 20px 24px;
    }
}

.servicios-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 1600px;
    margin: 0 auto;
}

.servicios-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background: #111;
}

.servicios-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.servicios-card:nth-child(1) .servicios-card-img,
.servicios-card:nth-child(4) .servicios-card-img {
    object-position: left center;
}

.servicios-card:hover .servicios-card-img {
    transform: scale(1.05);
}

/* Gradient overlay — dark at bottom, transparent at top */
.servicios-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0, 0, 0, 0.25) 60%,
        rgba(0, 0, 0, 0.78) 100%
    );
    pointer-events: none;
}

.servicios-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.servicios-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.servicios-card-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0;
}

.servicios-card-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.servicios-card-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.servicios-card-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

/* ── Servicios Cards Responsive ── */
@media (max-width: 768px) {
    .servicios-cards-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 8px;
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .servicios-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .servicios-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    .servicios-card {
        aspect-ratio: 4 / 3;
    }

    .servicios-card-title {
        font-size: 1.6rem;
    }

    .servicios-card-content {
        padding: 20px;
    }

    .servicios-card-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}