/**
 * CEBA — Pulido elegante para todas las páginas públicas
 */

/* Navegación suave — transición */
body.ceba-nav-loading main.main-content {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.ceba-nav-loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100001;
    background: linear-gradient(90deg, #8b0a1e, #C8102E, #C8102E, #C8102E);
    background-size: 200% 100%;
    animation: cebaNavBar 0.9s linear infinite;
}

@keyframes cebaNavBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Dock persistente — video no se mueve al cambiar página */
#cebaPersistentDock {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
}

#cebaPersistentDock .guia-video-pip {
    pointer-events: auto;
}

/* Hero video — reproductor inline en el marco (sin dock flotante) */
.hero-v2__video-frame .video-player-drive,
.hero-v2__video-frame #videoPlayer {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    z-index: 1;
}

.hero-v2__video-frame .video-player-drive iframe,
.hero-v2__video-frame #videoPlayer iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 16px;
    pointer-events: none !important;
    display: block !important;
    transform: none !important;
}

/* Dock oculto — mantiene el video reproduciéndose al cambiar de página (solo visible en Inicio) */
.ceba-hero-video-park,
.ceba-hero-video-park--hidden {
    position: fixed !important;
    left: -9999px !important;
    top: 0 !important;
    width: 320px !important;
    height: 180px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
    z-index: -1 !important;
    display: block !important;
}

.ceba-hero-video-park #videoPlayer,
.ceba-hero-video-park .video-player-drive {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Legacy float — desactivado */
.ceba-hero-video-park--float.is-visible {
    display: none !important;
}

/* Franja referencia — legible y elegante */
.mod-ref-strip {
    background: linear-gradient(180deg, #fdf6f7 0%, #fbf1f2 100%) !important;
    border-bottom: 1px solid #f1d3d8 !important;
    color: #475569 !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.84rem !important;
}

.mod-ref-strip strong {
    color: #C8102E !important;
    font-weight: 700;
}

/* Heroes modalidades — base (variantes de color en modalidades-pages.css) */
.mod-hero {
    padding: 2.25rem 0 2rem !important;
    border-bottom: 3px solid #C8102E;
}

.mod-hero--hub:not(.mod-hero--compact) {
    background: linear-gradient(145deg, #8b0a1e 0%, #C8102E 58%, #a50d24 100%) !important;
}

.mod-hero h1 {
    font-size: clamp(1.55rem, 3.5vw, 2.15rem) !important;
    color: #fff !important;
}

.mod-hero .mod-hero-lead {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.98rem !important;
}

.mod-hero-kpis li {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 0.72rem !important;
    padding: 0.32rem 0.65rem !important;
}

.mod-breadcrumb {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0.5rem 0 !important;
}

.mod-breadcrumb ol {
    list-style: none !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
    font-size: 0.82rem;
    color: #64748b;
}

.mod-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.mod-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.45rem;
    color: #94a3b8;
    font-weight: 600;
}

.mod-breadcrumb a {
    color: #C8102E;
    text-decoration: none;
    font-weight: 600;
}

.mod-breadcrumb a:hover {
    text-decoration: underline;
}

.mod-breadcrumb [aria-current='page'] {
    color: #0f172a;
    font-weight: 700;
}

/* Tarjetas modalidades — limpias */
.modalidad-card,
.modalidad-card-modern {
    border: 1px solid #f1d3d8 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(139, 10, 30, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.modalidad-card:hover,
.modalidad-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(200, 16, 46, 0.12) !important;
    border-color: #C8102E !important;
}

/* Tarjetas hub modalidades — estilos finos en modalidades-pages.css */

/* Secciones generales — ritmo visual */
.main-content > section {
    scroll-margin-top: 72px;
}

.page-header,
.nosotros-hero,
.contacto-hero {
    padding-top: 2.25rem !important;
    padding-bottom: 2rem !important;
}

/* Bloques informativos */
.info-box,
.alert-info-modern,
.nota-informativa {
    background: #fdf6f7 !important;
    border: 1px solid #f1d3d8 !important;
    border-left: 3px solid #C8102E !important;
    border-radius: 10px !important;
    color: #334155 !important;
}

/* Tablas comparativas */
.tabla-comparacion,
.tabla-eq {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(139, 10, 30, 0.06);
}

/* Formularios públicos */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    border-radius: 8px !important;
    border-color: #f1d3d8 !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #C8102E !important;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12) !important;
}

/* Logos oficiales — más compacto */
.logos-oficiales {
    padding: 1.75rem 0 !important;
    background: #f8fafc !important;
}

.logos-section-title {
    font-size: 0.95rem !important;
    color: #334155 !important;
}

@media (max-width: 768px) {
    .mod-hero {
        padding: 1.65rem 0 1.5rem !important;
    }

    .mod-ref-strip {
        font-size: 0.78rem !important;
        text-align: left !important;
        padding: 0.55rem 0.85rem !important;
    }

    .modalidades-intro h2 {
        font-size: 1.35rem !important;
    }
}

/* ═══════════════════════════════════════
   Programas educativos — cards compactas
   ═══════════════════════════════════════ */
.programas-educativos {
    padding: 2.75rem 0 !important;
}

.programas-educativos .section-header-center {
    margin-bottom: 1.75rem !important;
}

.programas-educativos .section-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
    margin-bottom: 0.35rem !important;
}

.programas-educativos .section-subtitle {
    font-size: 0.9rem !important;
}

.programas-grid-mejorado {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1rem !important;
    margin-bottom: 1.75rem !important;
}

.programa-card-mejorado {
    border-radius: 12px !important;
    border: 1px solid #f1d3d8 !important;
    box-shadow: 0 2px 10px rgba(139, 10, 30, 0.06) !important;
}

.programa-card-mejorado:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 22px rgba(200, 16, 46, 0.12) !important;
}

.programa-logo-oficial {
    height: 88px !important;
    padding: 0.65rem 1rem !important;
    background: linear-gradient(180deg, #fdf6f7 0%, #fbf1f2 100%) !important;
}

.programa-logo-oficial::after {
    display: none !important;
}

.logo-img {
    max-width: 72px !important;
    max-height: 72px !important;
}

.logo-svg {
    width: 64px !important;
    height: 64px !important;
}

.logo-fallback {
    font-size: 2rem !important;
    border-radius: 12px !important;
    max-height: 64px !important;
}

.programa-content {
    padding: 0.85rem 1rem 0.65rem !important;
}

.programa-content h4 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.25 !important;
}

.programa-descripcion {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.55rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.programa-beneficios {
    gap: 0.3rem !important;
    margin-bottom: 0 !important;
}

.beneficio-tag {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.68rem !important;
    border-radius: 999px !important;
    background: #fbecee !important;
    border-color: #f1d3d8 !important;
    color: #C8102E !important;
}

.beneficio-tag i {
    font-size: 0.58rem !important;
}

.btn-programa-mejorado {
    padding: 0.5rem 0.75rem !important;
    margin: 0.65rem 0.85rem 0.85rem !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: #C8102E !important;
}

.btn-programa-mejorado:hover {
    background: #8b0a1e !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.2) !important;
}

.btn-programa-mejorado i {
    font-size: 0.72rem !important;
}

.programas-footer-mejorado .footer-destacado-mejorado {
    padding: 1.25rem 1.5rem !important;
    border-radius: 12px !important;
    gap: 1rem !important;
}

@media (min-width: 992px) {
    .programas-grid-mejorado {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .programas-educativos {
        padding: 2rem 0 !important;
    }

    .programas-grid-mejorado {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    .programa-logo-oficial {
        height: 72px !important;
        padding: 0.5rem !important;
    }

    .logo-img {
        max-width: 56px !important;
        max-height: 56px !important;
    }

    .programa-content {
        padding: 0.65rem 0.75rem 0.5rem !important;
    }

    .programa-content h4 {
        font-size: 0.82rem !important;
    }

    .programa-descripcion {
        font-size: 0.72rem !important;
        -webkit-line-clamp: 2;
    }

    .btn-programa-mejorado {
        margin: 0.5rem 0.65rem 0.65rem !important;
        padding: 0.45rem 0.55rem !important;
        font-size: 0.72rem !important;
    }
}

@media (max-width: 420px) {
    .programas-grid-mejorado {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════
   HERO V2 — diseño desde cero
   ═══════════════════════════════════════ */
.hero-v2 {
    position: relative;
    padding: 1.15rem 0 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.hero-v2 + .comparacion-ebr-ceba {
    padding-top: 2rem;
}

/* CTA index — menos hueco si el contenido tarda en animar */
.cta-section-clean {
    padding: 3.5rem 0 !important;
}

/* Animaciones — visible sin JS; efecto al navegar con ceba-nav */
body:not(.ceba-aos-ready) [data-aos],
body:not(.ceba-aos-ready) .reveal {
    opacity: 1 !important;
    transform: none !important;
}

body.ceba-aos-ready [data-aos]:not(.aos-animate) {
    opacity: 0;
}

body.ceba-aos-ready .reveal:not(.active) {
    opacity: 0;
    transform: translateY(50px);
}

[data-aos="fade-down"].aos-animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* ═══════════════════════════════════════
   Nosotros — compacto y sin huecos
   ═══════════════════════════════════════ */
.nosotros-hero {
    padding: 2.25rem 0 2rem !important;
}

.quienes-somos {
    padding: 2.75rem 0 !important;
}

.quienes-grid {
    gap: 2rem !important;
}

.datos-oficiales,
.mision-vision-nueva,
.nosotros-equipo,
.valores-nueva {
    padding: 2.75rem 0 !important;
}

.nosotros-cta {
    padding: 2.5rem 0 !important;
}

@media (max-width: 768px) {
    .nosotros-hero {
        padding: 1.75rem 0 1.5rem !important;
    }

    .quienes-somos,
    .datos-oficiales,
    .mision-vision-nueva,
    .nosotros-equipo,
    .valores-nueva {
        padding: 2rem 0 !important;
    }

    .quienes-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .quienes-visual {
        order: -1;
    }
}

.hero-v2 .container {
    position: relative;
    z-index: 1;
}

.hero-v2__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.78fr);
    gap: 1.5rem 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-v2__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    color: #0f172a;
}

.hero-v2__eyebrow {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.hero-v2__title {
    margin: 0;
    font-size: clamp(1.35rem, 3.8vw, 2.55rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    max-width: none;
    background: linear-gradient(90deg, #8b0a1e 0%, #C8102E 40%, #9a7412 72%, #C8102E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-v2__lead {
    margin: 0.15rem 0 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: #475569;
}

.hero-v2__lead strong {
    font-weight: 800;
    color: #C8102E;
}

.hero-v2__virtual-line {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    font-weight: 700;
    color: #3d0b14;
}

.hero-v2__virtual-line i {
    color: #C8102E;
}

.hero-v2__virtual-line strong {
    color: #C8102E;
    font-weight: 900;
}

.hero-v2__headline {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    color: #64748b;
    max-width: 34rem;
}

.hero-v2__headline strong {
    font-weight: 800;
    color: #C8102E;
}

.hero-v2__minedu {
    font-weight: 800;
    color: #C8102E;
}

.hero-v2__promo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    margin: 0.15rem 0 0.05rem;
    padding: 0.55rem 1.1rem;
    border-radius: 14px;
    text-decoration: none;
    background: #fffbeb;
    border: 1.5px solid #fde047;
}

.hero-v2__promo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a16207;
}

.hero-v2__promo strong {
    font-size: clamp(1.55rem, 3.2vw, 1.95rem);
    font-weight: 900;
    color: #C8102E;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-v2__promo-cta {
    font-size: 0.82rem;
    font-weight: 800;
    color: #C8102E;
}

.hero-v2__promo:hover {
    border-color: #facc15;
    background: #fef9c3;
}

.hero-v2__trust {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    max-width: none;
    margin: 0.1rem auto 0;
    padding: 0;
    list-style: none;
}

.hero-v2__trust li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.5rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.hero-v2__trust-ico {
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #C8102E;
    color: #fde047;
    font-size: 0.95rem;
}

.hero-v2__trust-txt {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.hero-v2__trust-txt strong {
    font-size: 0.78rem;
    font-weight: 800;
    color: #3d0b14;
    line-height: 1.2;
}

.hero-v2__trust-txt small {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

.hero-v2__meta {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.hero-v2__meta strong {
    color: #C8102E;
    font-weight: 800;
}

.hero-v2__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.hero-v2__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.hero-v2__btn:hover {
    transform: translateY(-1px);
}

.hero-v2__btn--primary {
    background: #C8102E;
    color: #fff;
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.22);
}

.hero-v2__btn--primary:hover {
    background: #a00d25;
    color: #fff;
}

.hero-v2__btn--wa {
    background: #25d366;
    color: #fff;
}

.hero-v2__btn--wa:hover {
    background: #1ebe57;
    color: #fff;
}

/* —— Video + controles abajo —— */
.hero-v2__media {
    min-width: 0;
    width: 100%;
    max-width: 440px;
    justify-self: center;
}

.hero-v2__video-wrap {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hero-v2__video-frame.video-wrapper {
    position: relative;
    min-height: 0 !important;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1) !important;
    border: 1px solid #e2e8f0;
    background: #0f172a;
}

/* Quitar capa blanca/gris legacy del reproductor */
.hero-v2__video-frame.video-wrapper::before {
    display: none !important;
    content: none !important;
}

.hero-v2__video-wrap.video-institucional-container {
    margin-bottom: 0 !important;
}

.hero-v2__video-frame .video-player-drive {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    z-index: 1;
}

.hero-v2__video-frame .video-player-drive iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

.hero-v2__video-frame .video-player-drive.loading::before {
    background: #0f172a !important;
    animation: none !important;
}

.hero-v2__video-frame .video-player-drive.loading::after {
    color: rgba(255, 255, 255, 0.55);
    font-size: 2rem;
}

.hero-v2__video-frame .video-player-drive,
.hero-v2__video-frame .video-player-drive iframe {
    pointer-events: none !important;
    cursor: default !important;
}

.hero-v2__video-shield {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
    cursor: default;
}

.hero-v2__video-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    z-index: 5;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.hero-v2__video-bar {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap;
    gap: 0.45rem !important;
    margin: 0 !important;
    padding: 0.6rem 0.75rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-v2__video-bar .video-nav-btn,
.hero-v2__video-bar .video-play-pause-btn,
.hero-v2__video-bar .video-fullscreen-btn,
.hero-v2__video-bar .video-mute-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.15);
}

.hero-v2__video-bar .video-mute-btn {
    width: auto !important;
    min-width: 38px;
    padding: 0 0.65rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    border: none;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #C9A227, #b45309) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.72rem !important;
    cursor: pointer;
    animation: hero-v2-pulse-sound 2s ease-in-out infinite;
}

.hero-v2__video-bar .video-mute-btn:not(.is-muted) {
    background: linear-gradient(135deg, #C8102E, #a00d25) !important;
    animation: none;
}

.hero-v2__video-bar .video-mute-label {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

@keyframes hero-v2-pulse-sound {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(201, 162, 39, 0); }
}

.hero-v2__video-bar .video-play-pause-btn {
    background: linear-gradient(135deg, #C8102E, #a50d1a) !important;
    width: 42px !important;
    height: 42px !important;
}

.hero-v2__video-bar .video-indicators {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 960px) {
    .hero-v2__layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 520px;
    }

    .hero-v2__media {
        order: -1;
        max-width: 100%;
    }

    .hero-v2__content {
        align-items: center;
        text-align: center;
    }

    .hero-v2__title {
        max-width: none;
        white-space: nowrap;
        font-size: clamp(1.05rem, 5.2vw, 1.85rem);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-v2__trust-txt small {
        display: none;
    }

    .hero-v2__trust-ico {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 0.82rem;
    }

    .hero-v2__mods,
    .hero-v2__actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-v2 {
        padding: 1.1rem 0 1.25rem;
    }

    .hero-v2__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-v2__btn {
        justify-content: center;
        width: 100%;
    }
}

/* ═══════════════════════════════════════
   Hero legacy (otras páginas)
   ═══════════════════════════════════════ */
.hero-elegante.hero-elegante--premium:not(.hero-unified) {
    padding: 1rem 0 1.75rem !important;
    background: #f8fafc !important;
}

.hero-elegante--premium .hero-shapes {
    opacity: 0.35;
}

.hero-premium-banner {
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 28px rgba(139, 10, 30, 0.18);
    border-bottom: 3px solid #C8102E;
}

.hero-compact-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    position: relative;
    z-index: 1;
}

.hero-logo-frame {
    width: 76px;
    height: 76px;
    padding: 0.45rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.hero-compact-text {
    flex: 1;
    min-width: 0;
}

.hero-sub {
    margin: 0 0 0.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.hero-elegante--premium .hero-elegante-title {
    margin: 0 0 0.35rem !important;
    text-align: left !important;
}

.hero-elegante--premium .hero-elegante-title,
.hero-elegante--premium .title-highlight {
    font-size: clamp(1.1rem, 2.5vw, 1.55rem) !important;
    line-height: 1.2 !important;
}

.hero-value-line {
    margin: 0 0 0.5rem;
    font-size: clamp(0.88rem, 2vw, 1.05rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}

.hero-value-line strong {
    color: #fde68a;
    font-weight: 800;
}

.hero-value-virtual {
    display: inline-block;
    background: #C8102E;
    color: #fff;
    font-weight: 800;
    font-size: 0.82em;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    margin-left: 0.15rem;
    vertical-align: middle;
}

.hero-compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.65rem;
}

.hero-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.hero-meta-tag i {
    font-size: 0.6rem;
    color: #C9A227;
}

.hero-head-cta {
    gap: 0.45rem;
}

.btn-hero-cta {
    padding: 0.48rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.hero-elegante--premium .hero-elegante-grid {
    gap: 1rem !important;
}

.hero-elegante--premium .hero-bottom-actions {
    margin-top: 0.85rem;
    gap: 0.5rem;
}

.hero-elegante--premium .hero-bottom-actions .btn-elegante-primary,
.hero-elegante--premium .hero-bottom-actions .btn-elegante-secondary {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

/* Navbar — logo limpio, sin card */
.header .logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header .logo-main {
    display: flex;
    align-items: center;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    line-height: 0;
}

.header .logo-ceba {
    height: 52px !important;
    width: auto !important;
    max-width: 180px;
    object-fit: contain !important;
    object-position: left center;
    filter: none !important;
    display: block;
}

.header .logo-main:hover .logo-ceba {
    transform: scale(1.02) !important;
}

.header .navbar {
    align-items: center;
}

.header .nav-container {
    align-items: center;
}

.hero-premium-banner {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #8b0a1e 0%, #C8102E 55%, #a50d24 100%);
    overflow: hidden;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-logo-frame {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-elegante--premium .hero-elegante-title,
.hero-elegante--premium .title-highlight {
    font-weight: 800 !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}

.hero-head-cta {
    display: flex;
    flex-wrap: wrap;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: transform 0.15s ease;
    font-weight: 700;
}

.btn-hero-cta:hover {
    transform: translateY(-1px);
}

.btn-hero-cta--primary {
    background: #fff;
    color: #C8102E;
}

.btn-hero-cta--wa {
    background: #128C7E;
    color: #fff;
}

@media (max-width: 768px) {
    .hero-premium-banner {
        padding: 0.85rem 0.9rem;
        margin-bottom: 0.85rem;
    }

    .hero-compact-row {
        flex-direction: column;
        text-align: center;
        gap: 0.65rem;
    }

    .hero-logo-frame {
        width: 64px;
        height: 64px;
    }

    .hero-elegante--premium .hero-elegante-title {
        text-align: center !important;
    }

    .hero-value-line {
        font-size: 0.82rem;
    }

    .hero-compact-meta,
    .hero-head-cta {
        justify-content: center;
    }

    .btn-hero-cta {
        flex: 1 1 45%;
        justify-content: center;
        min-width: 120px;
    }

    .header .logo-ceba {
        height: 42px !important;
        max-width: 150px;
    }
}

.hero-v2__title--seo {
    text-transform: none;
    max-width: 22ch;
    letter-spacing: -0.03em;
}

.hero-v2__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.hero-v2__video-frame #videoPlayer,
.hero-v2__video-frame iframe {
    position: relative;
    z-index: 2;
}

.hero-v2__video-frame:has(iframe) .hero-v2__poster {
    opacity: 0;
}

.home-seo-intent {
    padding: 2.4rem 0 2.8rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.home-seo-intent h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    color: #8b0a1e;
}

.home-seo-intent p {
    max-width: 58rem;
    color: #334155;
    line-height: 1.55;
}

.home-seo-intent__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    margin: 1rem 0 1.4rem;
    padding: 0;
    list-style: none;
}

.home-seo-intent__links a {
    font-weight: 700;
    color: #C8102E;
}

.home-seo-intent__faqs details {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.55rem;
    background: #fff;
}

.home-seo-intent__faqs summary {
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
}

.home-seo-intent__faqs p {
    margin: 0.55rem 0 0.15rem;
}

.seo-landing-hero {
    padding: 2.6rem 0 2rem;
    background: linear-gradient(135deg, #8b0a1e 0%, #C8102E 55%, #0f172a 100%);
    color: #fff;
}

.seo-landing-hero h1 {
    margin: 0.35rem 0 0.8rem;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.seo-landing-hero__eyebrow {
    margin: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    opacity: 0.85;
}

.seo-landing-hero__lead {
    max-width: 46rem;
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.95;
}

.seo-landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.3rem 0 0.85rem;
}

.seo-landing-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.seo-landing-btn--primary {
    background: #f5c518;
    color: #0f172a;
}

.seo-landing-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.45);
}

.seo-landing-btn--wa {
    background: #25d366;
    color: #062b12;
}

.seo-landing-hero__note {
    margin: 0;
    opacity: 0.82;
    font-size: 0.92rem;
}

.seo-landing-main {
    padding: 2.2rem 0 3rem;
    color: #0f172a;
    background: #fff;
}

.seo-landing-main h2 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.25rem;
    color: #8b0a1e;
}

.seo-landing-main p,
.seo-landing-main li {
    line-height: 1.65;
    color: #334155;
}

.seo-landing-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
}

.seo-landing-points {
    padding-left: 1.15rem;
    line-height: 1.6;
}

.seo-landing-main details {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 0;
}

.seo-landing-main summary {
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 860px) {
    .seo-landing-grid {
        grid-template-columns: 1fr;
    }
}

