/* ====================================================================
   HUB.CSS v2 — Rediseño tipográfico y visual
   Tipografía: Avant Garde (headings) + Quicksand (body)
   Se carga DESPUÉS de styles.min.css
   ==================================================================== */

/* ---- FONT DECLARATIONS ----
   Subir los archivos .woff2 a /fonts/ y se activan automáticamente.
   Mientras tanto, Century Gothic (sistema) actúa como fallback.
   ------------------------------------------------------------ */
@font-face {
    font-family: 'Avant Garde';
    src: url('../fonts/avantgarde-bk-bt-2/AVGARDN_2.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avant Garde';
    src: url('../fonts/avantgarde-bk-bt-2/AVGARDD_2.TTF') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avant Garde';
    src: url('../fonts/avantgarde-bk-bt-2/AVGARDDO_2.TTF') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* ---- CUSTOM PROPERTIES ---- */
:root {
    --font-heading: 'Avant Garde', 'Century Gothic', 'Josefin Sans', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted-hub: #8a8a9a;
    --bg-light: #fafbfd;
    --bg-white: #ffffff;
    --border-light: #ececf0;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.08);
    --radius-card: 16px;
    --radius-btn: 8px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- GLOBAL TYPOGRAPHY OVERRIDES ---- */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

h1, h2 { font-weight: 300; }
h3 { font-weight: 400; }
h4 { font-weight: 400; }

/* ---- VARIABLES POR VERTICAL ---- */
.vertical-centros { --vertical-color: #1B6FB0; --vertical-light: #e8f2fa; --vertical-name: 'Centros'; }
.vertical-fp { --vertical-color: #4f0093; --vertical-light: #f3e8ff; --vertical-name: 'FP'; }
.vertical-homeschooling { --vertical-color: #00c1b5; --vertical-light: #e6faf5; --vertical-name: 'Homeschooling'; }
.vertical-familias { --vertical-color: #f4db60; --vertical-light: #fff8e0; --vertical-name: 'Familias'; }
.vertical-cursos { --vertical-color: #54b7c6; --vertical-light: #e0fafb; --vertical-name: 'Cursos'; }

/* ==================================================================
   STACKED PAPER (G2) — sello origami Kobalto
   Uso: wrapper <div class="kb-stacked kb-stacked-{color}"> alrededor de la card.
   El wrapper NO debe tener transform/opacity/filter (crearían stacking context
   y romperían el apilado). Cualquier transform (reveal, hover) debe ir en el
   hijo (la propia card).
   ================================================================== */
.kb-stacked {
    position: relative;
    height: 100%;
    flex: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.kb-stacked::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    right: 4px;
    bottom: -6px;
    background: var(--kb-stacked-color, #D4A843);
    border-radius: 16px;
    transform: rotate(1.5deg);
    transform-origin: center bottom;
    opacity: 0.92;
    z-index: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.kb-stacked > * {
    position: relative;
    z-index: 1;
    height: 100%;
    box-sizing: border-box;
}
.kb-stacked:hover {
    transform: translateY(-4px);
}
.kb-stacked:hover::before {
    transform: rotate(2.5deg) translate(-3px, -2px);
}
/* Anular el hover propio de la card cuando está dentro de kb-stacked */
.kb-stacked > *:hover {
    transform: none !important;
    box-shadow: none !important;
}
.kb-stacked-azul    { --kb-stacked-color: #1B6FB0; }
.kb-stacked-morado  { --kb-stacked-color: #4f0093; }
.kb-stacked-verde   { --kb-stacked-color: #00c1b5; }
.kb-stacked-dorado  { --kb-stacked-color: #D4A843; }
.kb-stacked-rosa    { --kb-stacked-color: #FF6B9D; }
.kb-stacked-cursos  { --kb-stacked-color: #54b7c6; }
.kb-stacked-turquesa{ --kb-stacked-color: #00c1b5; }

/* ==================================================================
   C7 — MULTI-STRIPE (sello transversal Kobalto)
   Barra superior con los 5 colores de las verticales.
   Uso: <div class="kb-c7"> contenido </div>
   ================================================================== */
.kb-c7 {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.kb-c7::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        #1B6FB0 0 20%,
        #4f0093 20% 40%,
        #00c1b5 40% 60%,
        #D4A843 60% 80%,
        #54b7c6 80% 100%);
    z-index: 2;
}

/* ==================================================================
   NAVBAR DROPDOWN
   ================================================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown > a .fa-chevron-down {
    font-size: 0.6em;
    transition: transform 0.3s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(4, 36, 84, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 0;
    min-width: 270px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover > a .fa-chevron-down,
.nav-dropdown.open > a .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.nav-dropdown-menu a .dropdown-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dropdown-color.color-centros { background: #1B6FB0; }
.dropdown-color.color-fp { background: #4f0093; }
.dropdown-color.color-homeschooling { background: #00c1b5; }
.dropdown-color.color-familias { background: #f4db60; }
.dropdown-color.color-cursos { background: #54b7c6; }

/* Botón X para cerrar el menú mobile (inyectado por JS en .nav-links) */
.nav-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

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

/* Mobile: Dropdown como acordeón */
@media (max-width: 992px) {
    /* El div .nav-dropdown no se estiraba al 100% del panel en flex
       column (quedaba al ancho de su contenido), dejando sus hijos
       centrados en lugar de alineados con los demás items del menú. */
    .nav-dropdown {
        width: 100%;
    }

    /* Chevron al borde derecho para que todas las etiquetas top-level
       (Plataformas, El Método, Documentación, Biblioteca, Blog)
       queden alineadas por la izquierda, independientemente de la
       longitud del texto. */
    .nav-dropdown > a {
        justify-content: space-between;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 8px;
        box-shadow: none;
        min-width: unset;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 350px;
        padding: 8px 0;
        transform: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        max-height: 0;
        padding: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown.open:hover .nav-dropdown-menu {
        max-height: 350px;
        padding: 8px 0;
    }

    .nav-dropdown-menu a {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* ==================================================================
   HUB: HERO
   ================================================================== */
.hub-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    overflow: hidden;
}

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

/* ---- HERO SLIDER ---- */
.hero-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
}

.hero-slide {
    display: none;
    animation: heroFadeIn 0.6s ease;
}

.hero-slide.active {
    display: block;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    backdrop-filter: blur(8px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
    background: var(--dorado, #f4db60);
    transform: scale(1.2);
}

/* Slide badges y stats */
.hero-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.badge-centros {
    background: rgba(27, 111, 176, 0.2);
    border: 1px solid rgba(27, 111, 176, 0.4);
    color: #5bb5ff;
}

.badge-fp {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c8a0ff;
}

.hero-slide-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.hero-slide-stat {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.3;
}

.hero-slide-stat span {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dorado, #f4db60);
    margin-bottom: 4px;
}

.btn-hero-centros {
    background: #1B6FB0 !important;
    border-color: #1B6FB0 !important;
}

.btn-hero-centros:hover {
    background: #1a5f9a !important;
}

.btn-hero-fp {
    background: #4f0093 !important;
    border-color: #4f0093 !important;
}

.btn-hero-fp:hover {
    background: #9333ea !important;
}

.hero-slide-deadline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 20px;
}

.hero-slide-deadline i {
    color: var(--dorado, #f4db60);
    margin-right: 4px;
}

.hub-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hub-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hub-hero-content h1 .gold {
    color: #FFC700;
    font-weight: 600;
}

.hub-hero-content p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.7;
    font-weight: 400;
}

.hub-hero-badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.hub-hero-badge i {
    color: var(--dorado, #f4db60);
    font-size: 0.9rem;
}

/* ==================================================================
   HUB: SECTION HEADER (reutilizable)
   ================================================================== */
.hub-section-header {
    text-align: center;
    margin-bottom: 24px;
}

.hub-section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: normal;
    text-transform: none;
}

.hub-section-header h2 .gold {
    color: #FFC700;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hub-section-header p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* En secciones oscuras */
.hub-section-header.dark-section .section-label,
.dark-section .hub-section-header .section-label {
    color: #fff;
}

.hub-section-header.dark-section h2,
.dark-section .hub-section-header h2 {
    color: #fff;
    text-transform: none;
    letter-spacing: normal;
}

.hub-section-header.dark-section p,
.dark-section .hub-section-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* ==================================================================
   HUB: PLATAFORMAS GRID
   ================================================================== */
/* ---- PROPÓSITO ---- */
.hub-proposito-section {
    padding: 80px 24px;
    background: var(--bg-white, #fff);
}

.hub-proposito {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hub-proposito .section-label {
    color: var(--text-dark, #1a1a2e);
}

.proposito-titulo {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 16px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: normal;
}

.hub-proposito > p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.7;
    margin-bottom: 40px;
}

.proposito-pilares {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.proposito-pilar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background: var(--bg-light, #fafbfd);
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Colores de pilares ahora via bar-left-* classes */
.pilar-azul { }
.pilar-morado { }
.pilar-turquesa { }

.proposito-pilar:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.proposito-pilar i {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.pilar-azul i { color: #1B6FB0; }
.pilar-morado i { color: #4f0093; }
.pilar-turquesa i { color: #00c1b5; }

.proposito-pilar strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-dark, #1a1a2e);
    font-weight: 600;
}

.proposito-pilar span {
    font-size: 0.9rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.5;
}

/* CTA de cierre */
.proposito-cta {
    margin-top: 40px;
    text-align: center;
}

.proposito-cierre {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--azul-corporativo, #002868);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: normal;
}

@media (max-width: 768px) {
    .hub-proposito-section {
        padding: 48px 20px;
    }

    .proposito-titulo {
        font-size: 1.6rem;
    }

    .hub-proposito > p {
        font-size: 1.05rem;
    }

    .proposito-pilares {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .proposito-pilar {
        padding: 24px 20px;
    }
}

/* ---- ASISTENTES DE IA ---- */
.hub-asistentes-section {
    padding: 100px 40px;
    background: var(--bg-light, #fafbfd);
}

.hub-asistentes-section .hub-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.hub-asistentes-section .section-label {
    color: var(--text-dark, #1a1a2e);
}

.hub-asistentes-section .hub-section-header h2 {
    color: var(--text-dark, #1a1a2e);
}

.hub-asistentes-section .hub-section-header p {
    color: var(--text-body, #4a4a5a);
}

.asistentes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.asistente-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.asistente-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.asistente-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.asistente-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 12px;
}

.asistente-card p {
    font-size: 0.92rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.6;
}

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

    .asistentes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .asistente-card {
        padding: 28px 24px;
    }

    .hub-asistentes-section .asistente-card h3 {
        text-align: center !important;
    }
}

/* ---- CALLOUT BIBLIOTECA (solo mobile) ---- */
.hub-callout-biblioteca { display: none; }

@media (max-width: 768px) {
    .hub-callout-biblioteca {
        display: block;
        padding: 70px 24px;
        background: linear-gradient(160deg, #002868 0%, #001a45 60%, #0d0d1a 100%);
        color: #fff;
        text-align: center;
    }
    .hub-callout-biblioteca-eyebrow {
        display: inline-block;
        font-family: var(--font-body);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: var(--dorado, #D4A843);
        margin-bottom: 22px;
    }
    .hub-callout-biblioteca-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 20px;
        border-radius: 50%;
        background: rgba(212, 168, 67, 0.15);
        color: var(--dorado, #D4A843);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
    }
    .hub-callout-biblioteca h3 {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        font-weight: 300;
        color: #fff;
        line-height: 1.25;
        margin-bottom: 14px;
        text-transform: none;
        letter-spacing: normal;
    }
    .hub-callout-biblioteca p {
        font-family: var(--font-body);
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.6;
        max-width: 460px;
        margin: 0 auto 26px;
    }
    .hub-callout-biblioteca-cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 11px 22px;
        background: var(--dorado, #D4A843);
        color: var(--azul-corporativo, #002868);
        font-family: var(--font-body);
        font-weight: 700;
        font-size: 0.85rem;
        text-decoration: none;
        border-radius: var(--radius-btn, 8px);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .hub-callout-biblioteca-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(212, 168, 67, 0.35);
    }
}

/* ---- CONTENIDO A LA CARTA ---- */
.hub-contenido-carta-section {
    padding: 100px 40px;
    background: var(--bg-light, #fafbfd);
}

.hub-contenido-carta-section .section-label {
    color: var(--text-dark, #1a1a2e);
}

.hub-contenido-carta-section .hub-section-header h2 {
    color: var(--text-dark, #1a1a2e);
}

.hub-contenido-carta-section .hub-section-header p {
    color: var(--text-body, #4a4a5a);
}

/* Carrusel de capturas */
.contenido-carousel-wrapper {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.contenido-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light, #ececf0);
    background: #0d0d1a;
}

.contenido-carousel-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contenido-carousel-track.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.contenido-carousel-track img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0,0,0,0.15);
}

.contenido-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contenido-carousel-count {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.contenido-carousel-nav .carousel-arrow {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.contenido-carousel-nav .carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Opciones */
.contenido-carta-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto 48px;
}

.contenido-carta-opcion {
    flex: 1;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contenido-carta-opcion:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.contenido-carta-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.contenido-carta-opcion h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: normal;
}

.contenido-carta-opcion p {
    font-size: 0.92rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.6;
}

.contenido-ejemplos {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contenido-ejemplos li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-body, #4a4a5a);
}

.contenido-ejemplos li i {
    color: #FFC700;
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

.contenido-carta-separador {
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.contenido-carta-separador span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-muted-hub, #8a8a9a);
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hub-contenido-carta-section {
        padding: 60px 20px;
    }

    .contenido-carousel-track {
        grid-template-columns: 1fr;
    }

    .contenido-carousel-track img {
        max-height: 240px;
    }

    .contenido-carousel-track img:last-child {
        display: none;
    }

    .contenido-carta-grid {
        flex-direction: column;
        gap: 24px;
    }

    .contenido-carta-separador {
        justify-content: center;
        padding: 8px 0;
    }

    .contenido-carta-opcion {
        padding: 28px 24px;
    }
}

/* ---- DOBLE CAPA DE IA ---- */
.hub-doble-ia-section {
    padding: 64px 24px;
    background: var(--bg-light, #fafbfd);
}

.hub-doble-ia {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 20px;
    overflow: hidden;
}

.doble-ia-capa {
    flex: 1;
    padding: 40px 36px;
    text-align: center;
}

.doble-ia-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: #f4db60;
}

.doble-ia-capa h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 10px;
}

.doble-ia-capa p {
    font-size: 0.92rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.65;
}

.doble-ia-separador {
    display: flex;
    align-items: center;
    padding: 0;
}

.doble-ia-separador span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4db60;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hub-doble-ia-section {
        padding: 48px 20px;
    }

    .hub-doble-ia {
        flex-direction: column;
    }

    .doble-ia-capa {
        padding: 32px 24px;
    }

    .doble-ia-separador {
        justify-content: center;
        padding: 0;
    }
}

.plataformas-section {
    padding: 100px 40px;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
}

/* ==================================================================
   HONEYCOMB PLATFORM GRID
   ================================================================== */
@property --hex-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.hex-hive {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.hex-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hex-row + .hex-row {
    margin-top: -48px;
}

.hex-cell {
    position: relative;
    width: 185px;
    height: 214px;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.hex-cell:hover {
    transform: scale(1.1);
    z-index: 2;
    filter: drop-shadow(0 0 18px var(--hc));
}

/* Animated glowing border */
.hex-cell::before {
    content: '';
    position: absolute;
    inset: -2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: conic-gradient(
        from var(--hex-angle),
        var(--hc) 0%,
        transparent 20%,
        var(--hc) 40%,
        transparent 60%,
        var(--hc) 80%,
        transparent 100%
    );
    opacity: 0.7;
    animation: hex-spin 6s linear infinite;
    transition: opacity 0.35s;
}

.hex-cell:hover::before {
    opacity: 1;
}

/* Inner face */
.hex-face {
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(160deg, #0f2240 0%, #0a1628 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    gap: 6px;
    transition: background 0.3s;
}

.hex-face:hover {
    background: linear-gradient(160deg, #163050 0%, #0f2240 100%);
}

.hex-face i.hex-icon {
    font-size: 1.8rem;
    color: var(--hc);
    margin-bottom: 2px;
    transition: transform 0.3s;
}

.hex-cell:hover .hex-icon {
    transform: scale(1.15);
}

.hex-name {
    font-family: var(--font-heading, 'Josefin Sans', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.hex-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.hex-badge {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-weight: 700;
    letter-spacing: 0.04em;
    z-index: 3;
    white-space: nowrap;
}

/* Center logo hex */
.hex-logo .hex-face {
    background: linear-gradient(160deg, #042454 0%, #001a3a 100%);
}

.hex-logo .hex-face img {
    width: 90px;
    height: auto;
    opacity: 0.9;
}

.hex-logo:hover .hex-face img {
    opacity: 1;
}

/* Disabled hex */
.hex-disabled {
    opacity: 0.55;
}

.hex-disabled:hover {
    transform: none;
    filter: none;
    cursor: default;
}

.hex-disabled::before {
    animation: none;
    opacity: 0.3;
}

@keyframes hex-spin {
    to { --hex-angle: 360deg; }
}

/* Responsive honeycomb — en móvil: rejilla vertical 2 columnas, sin celda logo */
@media (max-width: 768px) {
    /* Ocultar celda central (logo K) para liberar espacio */
    .hex-logo { display: none !important; }

    /* Anular el solapamiento tipo panal: cada fila en su propio renglón */
    .hex-row + .hex-row {
        margin-top: 16px;
    }
    .hex-row {
        flex-wrap: wrap;
        gap: 14px;
    }

    /* Celdas responsivas: 2 por fila, manteniendo proporción hexagonal (1 : 1.155) */
    .hex-cell {
        width: min(42vw, 170px);
        height: calc(min(42vw, 170px) * 1.155);
    }

    .hex-face i.hex-icon {
        font-size: 1.5rem;
    }
    .hex-name {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .hex-row + .hex-row {
        margin-top: 12px;
    }
    .hex-row {
        gap: 10px;
    }
    .hex-cell {
        width: min(44vw, 150px);
        height: calc(min(44vw, 150px) * 1.155);
    }
    .hex-face i.hex-icon {
        font-size: 1.2rem;
    }
    .hex-name {
        font-size: 0.72rem;
    }
    .hex-sub {
        font-size: 0.62rem;
    }
}

/* ---- Labels de fila ---- */
.plataformas-row-label {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin: 40px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plataformas-row-label:first-of-type {
    margin-top: 0;
}

.plataformas-row-label i {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Grid de plataformas (nuevo) ---- */
.plataformas-grid {
    display: grid;
    gap: 24px;
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

.plataformas-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

#plataformas .plataformas-row-3 {
    grid-template-columns: repeat(6, 1fr);
}

#plataformas .plataformas-row-3 > .plataforma-card-new {
    grid-column: span 2;
}

#plataformas .plataformas-row-3 > .plataforma-card-new:nth-child(4) {
    grid-column: 2 / span 2;
}

#plataformas .plataformas-row-3 > .plataforma-card-new:nth-child(5) {
    grid-column: 4 / span 2;
}

.plataformas-grid.plataformas-row-2 {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.plataformas-row-2 .plataforma-card-new {
    width: 100%;
    max-width: 340px;
}

/* ---- Card de plataforma (sin flip) ---- */
.plataforma-card-new {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 36px 28px 28px;
    background: #0c1a35;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plataforma-card-new::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 12px;
    right: 12px;
    height: 4px;
    background: var(--plat-color);
    border-radius: 3px;
    z-index: 1;
}

.plataforma-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: var(--plat-color);
}

.plat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--plat-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 16px;
}

.plataforma-card-new h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.plat-card-portales {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    width: fit-content;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    flex-grow: 1;
}

.plat-card-portales.portales-2col {
    width: 100%;
    grid-template-columns: 1fr 1fr;
}

.plat-card-portales li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.plat-card-portales li i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    width: 16px;
    text-align: center;
}

.plat-card-cta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--plat-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.3s;
}

.plataforma-card-new:hover .plat-card-cta {
    gap: 10px;
}

.plataforma-card-new[style*="4f0093"] .plat-card-cta {
    color: #c8a0ff;
}

/* Badge flotante */
.plat-card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background: #FFC700;
    color: #002868;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 199, 0, 0.4);
    z-index: 2;
}

.plat-card-badge i {
    font-size: 0.7rem;
}

/* Tarjetas disabled */
.plat-card-disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.plat-card-cta-disabled {
    opacity: 0.5;
    color: rgba(255,255,255,0.4) !important;
}

/* Navbar link disabled */
.nav-link-disabled {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.35);
    cursor: default;
    pointer-events: none;
    font-size: 0.9rem;
}

.nav-badge-soon {
    padding: 2px 8px;
    background: rgba(255, 199, 0, 0.15);
    border: 1px solid rgba(255, 199, 0, 0.25);
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #FFC700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

@media (max-width: 992px) {
    .plataformas-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    #plataformas .plataformas-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    #plataformas .plataformas-row-3 > .plataforma-card-new,
    #plataformas .plataformas-row-3 > .plataforma-card-new:nth-child(4),
    #plataformas .plataformas-row-3 > .plataforma-card-new:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .plataformas-grid.plataformas-row-3,
    .plataformas-grid.plataformas-row-2 {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 0 5% 16px;
        width: 100%;
        max-width: 100%;
        scrollbar-width: none;
    }
    .plataformas-grid.plataformas-row-3::-webkit-scrollbar,
    .plataformas-grid.plataformas-row-2::-webkit-scrollbar {
        display: none;
    }
    .plataformas-grid.plataformas-row-3 > .plataforma-card-new,
    .plataformas-grid.plataformas-row-2 > .plataforma-card-new,
    .plataformas-grid.plataformas-row-2 > .plat-card-disabled {
        min-width: 80% !important;
        max-width: 80% !important;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .plataformas-grid {
        width: 100%;
        gap: 16px;
    }

    .plataforma-card-new {
        padding: 28px 24px 24px;
    }

    /* Ocultar lista de roles en mobile */
    .plat-card-portales {
        display: none !important;
    }

    .plat-card-portales.portales-2col {
        display: none !important;
    }

    .plataformas-section {
        padding: 70px 20px;
    }

    .plataformas-row-label {
        font-size: 0.7rem;
    }
}

.plataforma-flip {
    perspective: 800px;
    width: 100%;
    height: 340px;
    text-decoration: none;
    cursor: pointer;
}

.plataforma-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.plataforma-flip:hover .plataforma-flip-inner {
    transform: rotateY(180deg);
}

.plataforma-flip-front,
.plataforma-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.plataforma-flip-front {
    background: #fff;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.plataforma-flip-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.4s;
}

.plataforma-flip:hover .plataforma-flip-front::before {
    opacity: 0.5;
}

.plataforma-flip-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.plataforma-flip[style*="1B6FB0"] .plataforma-flip-front::before { background-image: url('../images/plat-centros.webp'); }
.plataforma-flip[style*="4f0093"] .plataforma-flip-front::before { background-image: url('../images/plat-fp.webp'); }
.plataforma-flip[style*="00c1b5"] .plataforma-flip-front::before { background-image: url('../images/plat-homeschooling.webp'); }
.plataforma-flip[style*="f4db60"] .plataforma-flip-front::before { background-image: url('../images/plat-apoyo.webp'); }
.plataforma-flip[style*="54b7c6"] .plataforma-flip-front::before { background-image: url('../images/plat-cursos.webp'); }

.plataforma-flip-front i {
    font-size: 4rem;
    color: var(--plat-color);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 16px #fff) drop-shadow(0 0 32px #fff) drop-shadow(0 0 48px rgba(255, 255, 255, 0.8));
}

.plataforma-flip-front .plataforma-flip-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    position: relative;
    z-index: 2;
    text-shadow: 0 0 16px #fff, 0 0 32px #fff, 0 0 48px rgba(255, 255, 255, 0.8);
}

.plataforma-flip-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
    transition: color 0.3s;
    z-index: 2;
}

.plataforma-flip:hover .plataforma-flip-hint {
    color: var(--plat-color);
}

.plataforma-flip-back {
    background: var(--plat-color);
    transform: rotateY(180deg);
    padding: 24px 20px;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.plataforma-flip-back .plataforma-flip-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.plataforma-portales {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plataforma-portales li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.plataforma-portales li i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    width: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .plataformas-grid-flip .plataformas-row-3 {
        grid-template-columns: 1fr;
    }

    .plataformas-grid-flip .plataformas-row-2 {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .plataformas-grid-flip {
        width: 85%;
        gap: 16px;
    }

    .plataforma-flip {
        height: 280px;
    }
}

.plataformas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 48px auto 0;
}

.plataforma-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 36px 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.plataforma-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 12px;
    right: 12px;
    height: 4px;
    background: var(--card-color, #ccc);
    border-radius: 3px;
    z-index: 1;
}

.plataforma-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--card-color, #ccc);
}

.plataforma-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 20px;
    background: var(--card-color, #ccc);
}

.plataforma-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.plataforma-card .plataforma-tagline {
    font-size: 0.92rem;
    color: var(--text-body);
    margin-bottom: 20px;
    font-weight: 400;
}

.plataforma-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.plataforma-card ul li {
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.plataforma-card ul li i {
    color: var(--card-color, #ccc);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.plataforma-card .btn-plataforma {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    color: #fff;
    background: var(--card-color, #ccc);
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

.plataforma-card .btn-plataforma:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Colores por card */
.plataforma-card.card-centros { --card-color: #1B6FB0; }
.plataforma-card.card-fp { --card-color: #4f0093; }
.plataforma-card.card-homeschooling { --card-color: #00c1b5; }
.plataforma-card.card-familias { --card-color: #f4db60; }
.plataforma-card.card-cursos { --card-color: #54b7c6; }

.plataforma-card.card-familias .btn-plataforma {
    color: var(--text-dark);
}

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

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

/* ==================================================================
   HUB: MÉTODO KOBALTO
   ================================================================== */
.hub-metodo-section {
    padding: 110px 24px 120px;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    color: #fff;
    text-align: center;
}

.hub-metodo-content {
    max-width: 1060px;
    margin: 0 auto;
}

/* Frase diferenciadora */
.metodo-diferenciador {
    max-width: 700px;
    margin: 0 auto 56px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    position: relative;
    padding: 0 16px;
    font-weight: 400;
}

.metodo-diferenciador strong {
    color: #fff;
    font-weight: 600;
}

/* Grid de pilares del método */
.metodo-pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto 64px;
    text-align: left;
}

.metodo-pilar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    transition: var(--transition-smooth);
}

.metodo-pilar:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 199, 0, 0.2);
    transform: translateY(-2px);
}

.metodo-pilar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 199, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--dorado, #f4db60);
    margin-bottom: 20px;
}

.metodo-pilar h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #fff;
}

.metodo-pilar p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Doble capa de IA */
.metodo-capas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 auto;
    text-align: left;
}

.metodo-capa {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.metodo-capa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--dorado, #f4db60);
    border-radius: 4px 0 0 4px;
}

.metodo-capa h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metodo-capa h3 i {
    color: var(--dorado, #f4db60);
}

.metodo-capa p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
}

/* Separador visual */
.metodo-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 56px auto;
    max-width: 500px;
}

.metodo-separator::before,
.metodo-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.metodo-separator span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .metodo-pilares-grid {
        grid-template-columns: 1fr;
    }
    .metodo-capas {
        grid-template-columns: 1fr;
    }
    .metodo-diferenciador {
        font-size: 1.05rem;
    }
}

/* ==================================================================
   HUB: CONVOCATORIAS
   ================================================================== */
.hub-convocatorias-section {
    padding: 100px 24px;
    background: var(--bg-light);
}

.convocatorias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 960px;
    margin: 48px auto 0;
}

.convocatoria-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.convocatoria-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.convocatoria-card-header {
    padding: 28px 28px 22px;
    color: #fff;
    position: relative;
}

.convocatoria-card.card-centros .convocatoria-card-header {
    background: linear-gradient(135deg, #0f1f3d 0%, #1B3A6B 100%);
}

.convocatoria-card.card-fp .convocatoria-card-header {
    background: linear-gradient(135deg, #071a2e 0%, #0D3B3B 100%);
}

.convocatoria-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.card-centros .convocatoria-badge {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #60A5FA;
}

.card-fp .convocatoria-badge {
    background: rgba(13, 148, 136, 0.2);
    border: 1px solid rgba(13, 148, 136, 0.4);
    color: #5EEAD4;
}

.convocatoria-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.convocatoria-card-header h3 span {
    color: var(--dorado, #f4db60);
}

.convocatoria-card-header .convocatoria-target {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.convocatoria-card-body {
    padding: 24px 28px 28px;
}

.convocatoria-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.convocatoria-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: 10px;
}

.convocatoria-stat-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.card-centros .convocatoria-stat-num { color: #2563EB; }
.card-fp .convocatoria-stat-num { color: #0D9488; }

.convocatoria-stat-text {
    font-size: 0.75rem;
    color: var(--text-body);
    line-height: 1.3;
    font-weight: 500;
}

.convocatoria-deadline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.card-centros .convocatoria-deadline {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.card-fp .convocatoria-deadline {
    background: #F0FDFA;
    border: 1px solid #CCFBF1;
}

.convocatoria-deadline-label {
    font-size: 0.78rem;
    color: var(--text-body);
    font-weight: 500;
}

.convocatoria-deadline-date {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.card-centros .convocatoria-deadline-date { color: #2563EB; }
.card-fp .convocatoria-deadline-date { color: #0D9488; }

.convocatoria-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    color: #fff;
    width: 100%;
}

.card-centros .convocatoria-cta { background: #2563EB; }
.card-fp .convocatoria-cta { background: #0D9488; }

.convocatoria-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.convocatoria-note {
    font-size: 0.78rem;
    color: var(--text-muted-hub);
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
}

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

/* ==================================================================
   HUB: CONVOCATORIA HERO (secciones individuales espectaculares)
   ================================================================== */
.convocatoria-hero {
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.convocatoria-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 199, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.convocatoria-hero.hero-centros {
    background: var(--bg-light);
}

.convocatoria-hero.hero-fp {
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    color: #fff;
}

.convocatoria-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.convocatoria-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero-centros .convocatoria-hero-badge {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #2563EB;
}

.hero-fp .convocatoria-hero-badge {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.convocatoria-hero h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    font-weight: 300;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-centros .convocatoria-hero h2 {
    color: var(--text-dark);
}

.convocatoria-hero h2 span {
    color: var(--dorado, #f4db60);
}

.convocatoria-hero > .convocatoria-hero-content > p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 40px;
}

.hero-centros .convocatoria-hero-content > p {
    color: var(--text-body);
}

.hero-fp .convocatoria-hero-content > p {
    color: rgba(255, 255, 255, 0.7);
}

.convocatoria-hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.convocatoria-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 28px;
    border-radius: 16px;
    min-width: 120px;
}

.hero-centros .convocatoria-hero-stat {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.hero-fp .convocatoria-hero-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.convocatoria-hero-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-centros .convocatoria-hero-stat .stat-number {
    color: #2563EB;
}

.hero-fp .convocatoria-hero-stat .stat-number {
    color: #c084fc;
}

.convocatoria-hero-stat .stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.hero-centros .convocatoria-hero-stat .stat-label {
    color: var(--text-body);
}

.hero-fp .convocatoria-hero-stat .stat-label {
    color: rgba(255, 255, 255, 0.6);
}

.convocatoria-hero-deadline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 12px;
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.hero-centros .convocatoria-hero-deadline {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: var(--text-dark);
}

.hero-fp .convocatoria-hero-deadline {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #fff;
}

.convocatoria-hero-deadline i {
    font-size: 1rem;
}

.hero-centros .convocatoria-hero-deadline i {
    color: #2563EB;
}

.hero-fp .convocatoria-hero-deadline i {
    color: #c084fc;
}

.convocatoria-hero-deadline strong {
    font-weight: 700;
}

.hero-centros .convocatoria-hero-deadline strong {
    color: #2563EB;
}

.hero-fp .convocatoria-hero-deadline strong {
    color: #c084fc;
}

.convocatoria-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    color: #fff;
    transition: var(--transition-smooth);
}

.hero-centros .convocatoria-hero-cta {
    background: #2563EB;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.hero-fp .convocatoria-hero-cta {
    background: #4f0093;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.convocatoria-hero-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.convocatoria-hero-note {
    font-size: 0.82rem;
    margin-top: 16px;
    font-weight: 500;
}

.hero-centros .convocatoria-hero-note {
    color: var(--text-muted-hub);
}

.hero-fp .convocatoria-hero-note {
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
    .convocatoria-hero {
        padding: 70px 20px;
    }

    .convocatoria-hero h2 {
        font-size: 1.6rem;
    }

    .convocatoria-hero-stats {
        gap: 10px;
    }

    .convocatoria-hero-stat {
        padding: 14px 18px;
        min-width: 90px;
    }

    .convocatoria-hero-stat .stat-number {
        font-size: 1.6rem;
    }

    .convocatoria-hero-cta {
        padding: 14px 32px;
        font-size: 0.95rem;
    }
}

/* Badge flujo tutores (Descubre -> Refuerza -> Certifica) */
.tutores-flow-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(255, 199, 0, 0.08);
    border: 1px solid rgba(255, 199, 0, 0.18);
    border-radius: 50px;
}

.tutores-flow-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.tutores-flow-step i.step-icon {
    color: var(--dorado, #f4db60);
    font-size: 0.75rem;
}

.tutores-flow-arrow {
    margin: 0 10px;
    color: var(--dorado, #f4db60);
    font-size: 0.65rem;
}

@media (max-width: 600px) {
    .tutores-flow-badge {
        padding: 8px 12px;
        gap: 0;
    }

    .tutores-flow-step {
        font-size: 0.7rem;
    }

    .tutores-flow-arrow {
        margin: 0 6px;
    }
}

/* ---- VERTICAL: CONVOCATORIA BANNER ---- */
.convocatoria-banner {
    padding: 56px 24px;
    background: linear-gradient(135deg, #0f1f3d 0%, #1B3A6B 100%);
    color: #fff;
    text-align: center;
}

.convocatoria-banner.banner-fp {
    background: linear-gradient(135deg, #071a2e 0%, #0D3B3B 100%);
}

.convocatoria-banner-content {
    max-width: 700px;
    margin: 0 auto;
}

.convocatoria-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #F59E0B;
}

.convocatoria-banner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.convocatoria-banner h2 span {
    color: var(--dorado, #f4db60);
}

.convocatoria-banner p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    line-height: 1.65;
    font-weight: 400;
}

.convocatoria-banner-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.convocatoria-banner-stat {
    text-align: center;
}

.convocatoria-banner-stat .stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dorado, #f4db60);
    display: block;
}

.convocatoria-banner-stat .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.convocatoria-banner-deadline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
}

.convocatoria-banner-deadline strong {
    color: var(--dorado, #f4db60);
    font-size: 1.1rem;
}

.convocatoria-banner .btn-primary {
    background: var(--dorado, #f4db60);
    color: var(--text-dark);
    margin-top: 8px;
}

/* ==================================================================
   HUB: TUTORES OVERVIEW
   ================================================================== */
.hub-tutores-section {
    padding: 100px 24px;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    color: #fff;
}

.hub-tutores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1060px;
    margin: 48px auto 0;
}

.hub-tutor-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 24px;
    min-width: 260px;
    flex: 1 1 280px;
    max-width: 320px;
    transition: var(--transition-smooth);
}

.hub-tutor-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 199, 0, 0.2);
}

.hub-tutor-card img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.hub-tutor-card .tutor-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
}

.hub-tutor-card .tutor-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-top: 2px;
}

/* ==================================================================
   HUB: MODELO ECONÓMICO
   ================================================================== */
.hub-modelo-section {
    padding: 100px 24px;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    color: #fff;
}

.hub-modelo-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hub-modelo-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.hub-modelo-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px 32px;
    text-align: center;
    min-width: 190px;
}

.hub-modelo-box.highlight {
    border-color: var(--dorado, #f4db60);
    background: rgba(255, 199, 0, 0.08);
    box-shadow: 0 4px 20px rgba(255, 199, 0, 0.1);
}

.hub-modelo-box h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.hub-modelo-box h4 i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.5);
}

.hub-modelo-box.highlight h4 i {
    color: var(--dorado, #f4db60);
}

.hub-modelo-box p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-weight: 400;
}

.hub-modelo-arrow {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==================================================================
   HUB: CLIENTES (reemplaza Validación)
   ================================================================== */
.hub-clientes-section {
    padding: 80px 24px;
    background: var(--bg-white);
    text-align: center;
}

.hub-clientes-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 900px;
    margin: 48px auto 0;
    flex-wrap: wrap;
}

.hub-cliente-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
}

.hub-cliente-logo img {
    max-height: 48px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.45;
    transition: var(--transition-smooth);
}

.hub-cliente-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Placeholder cuando no hay logos */
.hub-clientes-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 36px;
    background: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: 12px;
    color: var(--text-muted-hub);
    font-size: 0.95rem;
    font-weight: 500;
}

.hub-clientes-placeholder i {
    color: var(--dorado, #f4db60);
    font-size: 1.1rem;
}

/* ==================================================================
   HUB: CTAs POR AUDIENCIA
   ================================================================== */
.hub-audiencias-section {
    padding: 100px 24px;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    color: #fff;
}

.hub-audiencias-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 1060px;
    margin: 48px auto 0;
}

.hub-audiencia-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: #fff;
    display: block;
}

.hub-audiencia-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.hub-audiencia-card.aud-centros:hover { border-color: #1B6FB0; }
.hub-audiencia-card.aud-fp:hover { border-color: #4f0093; }
.hub-audiencia-card.aud-homeschooling:hover { border-color: #00c1b5; }
.hub-audiencia-card.aud-familias:hover { border-color: #f4db60; }
.hub-audiencia-card.aud-cursos:hover { border-color: #54b7c6; }

.hub-audiencia-card i {
    font-size: 1.8rem;
    margin-bottom: 14px;
    display: block;
}

.hub-audiencia-card.aud-centros i { color: #1B6FB0; }
.hub-audiencia-card.aud-fp i { color: #4f0093; }
.hub-audiencia-card.aud-homeschooling i { color: #00c1b5; }
.hub-audiencia-card.aud-familias i { color: #f4db60; }
.hub-audiencia-card.aud-cursos i { color: #54b7c6; }

.hub-audiencia-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.hub-audiencia-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 400;
}

/* ==================================================================
   HUB: BLOG RECIENTES
   ================================================================== */
.hub-blog-section {
    padding: 100px 24px;
    background: var(--bg-white);
}

.hub-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1060px;
    margin: 48px auto 0;
}

/* ---- BLOG CARDS ---- */
.blog-card-wrapper {
    position: relative;
}

.blog-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.cat-actualidad {
    background: rgba(0, 40, 104, 0.08);
    color: var(--azul-corporativo, #002868);
}

.cat-metodologias {
    background: rgba(244, 219, 96, 0.15);
    color: #b8960a;
}

.blog-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #ececf0);
    border-radius: var(--radius-card, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-image {
    overflow: hidden;
    height: 180px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-card-content {
    padding: 20px 24px 24px;
}

.blog-card-content h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-dark, #1a1a2e);
    line-height: 1.4;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.blog-card-cta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFC700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.blog-card:hover .blog-card-cta {
    gap: 10px;
}

/* ── Blog page: hero, filters, grid ── */

.blog-hero {
    background: linear-gradient(135deg, #042454 0%, #0a0a1a 100%);
    padding: 140px 24px 60px;
    text-align: center;
}

.blog-hero-content h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.blog-hero-content p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
}

.blog-filters {
    background: var(--bg-light, #fafbfd);
    padding: 24px 5%;
    text-align: center;
    border-bottom: 1px solid var(--border-light, #ececf0);
}

.blog-filters-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.blog-filter {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-light, #ececf0);
    background: var(--bg-white, #fff);
    color: var(--text-body, #555);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-filter:hover {
    border-color: var(--dorado, #D4A843);
    color: var(--dorado, #D4A843);
}

.blog-filter.active {
    background: var(--dorado, #D4A843);
    color: var(--azul-corporativo, #042454);
    border-color: var(--dorado, #D4A843);
    font-weight: 700;
}

.blog-section {
    padding: 60px 5%;
    background: var(--bg-light, #fafbfd);
}

.blog-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.blog-card-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted-hub, #8a8a9a);
    margin-bottom: 8px;
}

.blog-card-date i {
    margin-right: 4px;
}

.blog-card-wrapper.hidden {
    display: none;
}

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

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

    .blog-card-image {
        height: 160px;
    }

    .blog-hero {
        padding: 120px 20px 40px;
    }

    .blog-filter {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

/* ==================================================================
   VERTICAL LANDINGS: HERO GENÉRICO
   ================================================================== */
.vertical-hero {
    position: relative;
    padding: 140px 24px 100px;
    text-align: center;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    color: #fff;
    overflow: hidden;
}

.vertical-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--vertical-color, #1B6FB0) 0%, transparent 60%);
    opacity: 0.07;
    pointer-events: none;
}

.vertical-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.vertical-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vertical-hero p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    line-height: 1.7;
    font-weight: 400;
}

.vertical-hero .btn-primary {
    background: var(--vertical-color, #1B6FB0);
    color: #fff;
}

.vertical-hero .btn-primary:hover {
    filter: brightness(1.1);
}

/* Badge en hero */
.vertical-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.vertical-hero-badge i {
    color: var(--dorado, #f4db60);
}

/* ==================================================================
   VERTICAL: FEATURES GRID
   ================================================================== */
.vertical-features {
    padding: 100px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1060px;
    margin: 48px auto 0;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.feature-card i.feature-icon {
    font-size: 1.5rem;
    color: var(--vertical-color, #1B6FB0);
    margin-bottom: 18px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    font-weight: 400;
}

/* ==================================================================
   VERTICAL: PORTAL TABS
   ================================================================== */
.portals-section {
    padding: 100px 24px;
}

.portals-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.portal-tab {
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-body);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-tab:hover {
    border-color: var(--vertical-color, #1B6FB0);
    color: var(--vertical-color, #1B6FB0);
}

.portal-tab.active {
    background: var(--vertical-color, #1B6FB0);
    border-color: var(--vertical-color, #1B6FB0);
    color: #fff;
}

.portal-content {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.portal-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.portal-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portal-feature {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 14px;
    border: 1px solid var(--border-light);
}

.portal-feature i {
    font-size: 1.3rem;
    color: var(--vertical-color, #1B6FB0);
    margin-top: 2px;
    flex-shrink: 0;
}

.portal-feature strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.portal-feature p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0;
    font-weight: 400;
}

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

/* ==================================================================
   VERTICAL: MODOS APRENDIZAJE (FP)
   ================================================================== */
.modos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 48px auto 0;
}

.modo-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modo-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 12px;
    right: 12px;
    height: 4px;
    background: var(--vertical-color, #4f0093);
    border-radius: 3px;
    z-index: 1;
}

.modo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.modo-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modo-card h3 i {
    color: var(--vertical-color, #4f0093);
}

.modo-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    font-weight: 400;
}

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

/* ==================================================================
   VERTICAL: PRECIOS (Homeschooling)
   ================================================================== */
.vertical-precios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 48px auto 0;
}

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

/* ==================================================================
   VERTICAL: CONTACTO B2B
   ================================================================== */
.contacto-b2b {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    color: #fff;
}

.contacto-b2b-content {
    max-width: 620px;
    margin: 0 auto;
}

.contacto-b2b h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contacto-b2b p {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
}

.contacto-b2b .btn-primary {
    background: var(--vertical-color, #f4db60);
    color: #fff;
}

.vertical-familias .contacto-b2b .btn-primary {
    color: var(--text-dark);
}

/* ==================================================================
   FOOTER: PLATAFORMAS ROW
   ================================================================== */
.footer-plataformas {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.footer-plataformas a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.25s;
    font-weight: 500;
}

.footer-plataformas a:hover {
    color: #fff;
}

/* ==================================================================
   SECCIÓN CONTACTO / DEMO
   ================================================================== */
.hub-contacto-section {
    padding: 100px 24px;
    background: linear-gradient(160deg, #002868 0%, #001a45 60%, #0d0d1a 100%);
}

.contacto-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #FFC700;
    background: rgba(255, 255, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: #002868;
    color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-legal {
    display: flex;
    align-items: center;
}

.form-legal label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.form-legal a {
    color: #FFC700;
    text-decoration: underline;
}

.form-legal input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FFC700;
    flex-shrink: 0;
}

.btn-submit {
    align-self: flex-start;
    padding: 14px 36px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.form-mensaje {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 10px;
    display: none;
}

.form-mensaje.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.form-mensaje.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .hub-contacto-section {
        padding: 70px 20px;
    }

    .btn-submit {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.footer-plataformas a .footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==================================================================
   RESPONSIVE GLOBAL
   ================================================================== */
@media (max-width: 992px) {
    .hub-hero-content h1 {
        font-size: 2.75rem;
    }

    .vertical-hero h1 {
        font-size: 2.5rem;
    }

    .hub-section-header h2 {
        font-size: 2.1rem;
    }

    .hub-audiencias-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hub-hero {
        min-height: 65vh;
        padding: 110px 20px 80px;
    }

    .hub-hero-content h1 {
        font-size: 2.2rem;
    }

    .hub-hero-content p {
        font-size: 1.05rem;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }

    .hero-dots { bottom: 20px; }

    .hero-slide-stats {
        gap: 20px;
    }

    .hero-slide-stat span {
        font-size: 1.6rem;
    }

    .hub-section-header h2 {
        font-size: 1.85rem;
    }

    .hub-section-header p {
        font-size: 1rem;
    }

    .plataformas-section,
    .hub-tutores-section,
    .hub-blog-section,
    .vertical-features,
    .portals-section {
        padding: 70px 20px;
    }

    .vertical-hero {
        padding: 110px 20px 70px;
    }

    .vertical-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .hub-hero-content h1 {
        font-size: 1.9rem;
    }

    .hub-section-header h2 {
        font-size: 1.65rem;
    }

    .vertical-hero h1 {
        font-size: 1.8rem;
    }

    .hub-audiencias-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hub-audiencia-card {
        padding: 24px 14px;
    }

    .portals-tabs {
        gap: 6px;
    }

    .portal-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .plataformas-grid {
        gap: 16px;
    }

    .hub-clientes-grid {
        gap: 24px;
    }

    .hub-cliente-logo img {
        max-height: 36px;
    }
}

/* ==================================================================
   VERTICAL-FAMILIAS: Override accent dorado
   ================================================================== */
.vertical-familias .vertical-hero .btn-primary {
    background: var(--dorado, #f4db60);
    color: var(--text-dark);
}

/* Familias: tipografía alineada al hub */
.vertical-familias .section-header h2,
.vertical-familias .section-header h2 {
    font-family: var(--font-heading);
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-dark);
    font-weight: 300;
}

.vertical-familias .section-header h2 span,
.vertical-familias .section-header h2 .gold {
    color: #FFC700;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vertical-familias .section-label {
    text-transform: none;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
}

.vertical-familias .section-header p {
    color: var(--text-body);
}

.vertical-familias .hero h1 {
    font-family: var(--font-heading);
    text-transform: none;
    letter-spacing: normal;
}

.vertical-familias .hero h1 .gold {
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==================================================================
   ANIMATIONS & KEYFRAMES
   ================================================================== */
@keyframes floatSubtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==================================================================
   SCROLL REVEAL SYSTEM
   ================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ==================================================================
   HUB HERO — Títulos y alineación
   ================================================================== */
.hero-title-sub {
    display: block;
    font-size: 1em;
    color: #fff;
    font-weight: 300;
}

.hero h1 .hero-title-main.gold {
    display: block;
    font-size: 0.58em;
    color: #FFC700;
    font-weight: 600;
}

/* Alineación izquierda: párrafo y CTAs */
.hero-with-slider .hero-content p {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

/* Animaciones escalonadas del hero */
.hero-content h1 .hero-title-sub {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content h1 .hero-title-main {
    animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-content .hero-description {
    animation: fadeInUp 0.8s ease 0.65s both;
}

.hero-content .hero-cta {
    animation: fadeInUp 0.8s ease 0.85s both;
}

/* ---- SCROLL INDICATOR ---- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    animation: scrollBounce 2s ease-in-out infinite 1.5s;
    cursor: pointer;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ---- BADGES BAR ---- */
.hub-hero-badges-bar {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 16px 40px;
    background: rgba(255, 199, 0, 0.1);
    border-top: 1px solid rgba(255, 199, 0, 0.25);
    border-bottom: 1px solid rgba(255, 199, 0, 0.25);
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.8s ease 1.1s both;
}

.hub-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.hub-badge-item i {
    color: var(--dorado, #f4db60);
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .hub-hero-badges-bar {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* ==================================================================
   UTILITY CLASSES (reemplazar inline styles)
   ================================================================== */
.btn-hero {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--dorado, #f4db60);
    margin-bottom: 1rem;
}

/* El hub gestiona sus propios iconos en el HTML */
.section-label::before {
    content: none;
}

/* ==================================================================
   EYEBROW EB6 — tres barras (vibe logo K de Kobalto)
   Uso: añadir `.kb-eyebrow-left`, `.kb-eyebrow-right` o `.kb-eyebrow-both`
   a la .section-label (sin iconos internos <i>). Alternar L/R entre secciones.
   ================================================================== */
.kb-eyebrow-left,
.kb-eyebrow-right,
.kb-eyebrow-both {
    gap: 14px;
    letter-spacing: 0.18em;
}
.kb-eyebrow-left::before,
.kb-eyebrow-right::after,
.kb-eyebrow-both::before,
.kb-eyebrow-both::after {
    content: '';
    width: 24px;
    height: 14px;
    flex-shrink: 0;
    background:
        linear-gradient(to right,
            var(--dorado, #D4A843) 0 6px,
            transparent 6px 9px,
            var(--dorado, #D4A843) 9px 15px,
            transparent 15px 18px,
            var(--dorado, #D4A843) 18px 24px);
}

.metodo-cta-wrapper {
    text-align: center;
    margin-top: 48px;
}

.btn-secondary-light {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.hub-modelo-note {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    margin-top: 20px;
    font-weight: 400;
}

.hub-blog-cta {
    text-align: center;
    margin-top: 32px;
}

.hub-blog-cta .btn-secondary {
    background: var(--dorado, #D4A843);
    color: var(--azul-corporativo, #042454);
    border-color: var(--dorado, #D4A843);
}

.hub-blog-cta .btn-secondary:hover {
    background: var(--azul-corporativo, #042454);
    color: var(--dorado, #D4A843);
    border-color: var(--azul-corporativo, #042454);
}

/* Footer dot colors */
.footer-dot.dot-centros { background: #1B6FB0; }
.footer-dot.dot-fp { background: #4f0093; }
.footer-dot.dot-homeschooling { background: #00c1b5; }
.footer-dot.dot-familias { background: #f4db60; }
.footer-dot.dot-cursos { background: #54b7c6; }

/* ==================================================================
   HOVER ENHANCEMENTS
   ================================================================== */

/* Hero badges float animation */
.hub-hero-badge {
    animation: floatSubtle 3s ease-in-out infinite;
}

.hub-hero-badge:nth-child(2) {
    animation-delay: 0.5s;
}

.hub-hero-badge:nth-child(3) {
    animation-delay: 1s;
}

/* Plataforma card shimmer on hover */
.plataforma-card {
    position: relative;
    overflow: hidden;
}

.plataforma-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.08) 55%, transparent 60%);
    transform: translateX(-100%);
    transition: none;
    pointer-events: none;
    z-index: 1;
}

.plataforma-card:hover::after {
    animation: shimmer 0.8s ease forwards;
}

/* Tutor card hover accent */
.hub-tutor-card {
    border-left: 3px solid transparent;
}

.hub-tutor-card:hover {
    border-left-color: var(--dorado, #f4db60);
    box-shadow: none;
}

/* Blog card image zoom on hover */
.blog-card-image {
    overflow: hidden;
}

.blog-card-image img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ==================================================================
   HERRAMIENTAS ESTRELLA
   ================================================================== */
.hub-herramientas-section {
    padding: 100px 24px;
    background: var(--bg-white);
}

.herramientas-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.herramienta-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    border: 2px solid var(--border-light);
    background: transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.herramienta-tab:hover {
    color: var(--text-dark);
}

/* Colores por tab */
.tab-azul:hover { border-color: #1B6FB0; }
.tab-morado:hover { border-color: #4f0093; }
.tab-turquesa:hover { border-color: #00c1b5; }
.tab-verde:hover { border-color: #22c55e; }
.tab-coral:hover { border-color: #FF6B9D; }

.tab-azul.active { background: #1B6FB0; border-color: #1B6FB0; color: #fff; }
.tab-morado.active { background: #4f0093; border-color: #4f0093; color: #fff; }
.tab-turquesa.active { background: #00c1b5; border-color: #00c1b5; color: #fff; }
.tab-verde.active { background: #22c55e; border-color: #22c55e; color: #fff; }
.tab-coral.active { background: #FF6B9D; border-color: #FF6B9D; color: #fff; }

.herramienta-tab i {
    font-size: 0.9rem;
}

/* Dato cuantitativo */
.herramienta-dato {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFC700;
    background: rgba(255, 199, 0, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.herramienta-dato i {
    font-size: 0.75rem;
}

/* Transición fade entre paneles */
.herramienta-panel {
    display: none;
    max-width: 1060px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.herramienta-panel.active {
    display: grid;
    grid-template-columns: 55% 1fr;
    opacity: 1;
    animation: toolFadeIn 0.4s ease;
    gap: 48px;
    align-items: center;
    animation: slideInUp 0.45s ease;
}

.herramienta-visual {
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.herramienta-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.herramienta-visual .demo-carousel {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.herramienta-visual .carousel-container {
    position: relative;
    max-width: 100%;
    width: 100%;
}

.carousel-container {
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    will-change: opacity;
    backface-visibility: hidden;
}

.carousel-slide img {
    display: block;
    width: 100%;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light, #ececf0);
    background: var(--bg-white, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-body, #555);
    transition: all 0.3s;
}

.carousel-arrow:hover {
    border-color: var(--dorado, #D4A843);
    color: var(--dorado, #D4A843);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light, #ececf0);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--dorado, #D4A843);
}

.herramienta-visual .carousel-slide {
    width: 100%;
    border-radius: 0;
}

.herramienta-visual .carousel-slide.active {
    opacity: 1;
}

.herramienta-visual .carousel-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
    background: transparent;
}

.herramienta-visual .carousel-container {
    box-shadow: none;
}

.herramienta-visual .demo-captura {
    box-shadow: none;
}

.herramienta-visual .carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-body);
    transition: var(--transition-smooth);
}

.herramienta-visual .carousel-arrow:hover {
    border-color: var(--dorado, #f4db60);
    color: var(--dorado, #f4db60);
}

.herramienta-visual .carousel-dots {
    display: flex;
    gap: 8px;
}

.herramienta-visual .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: background 0.3s;
}

.herramienta-visual .carousel-dot.active {
    background: var(--dorado, #f4db60);
}

.herramienta-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: normal;
}

.herramienta-content h3 .gold {
    color: #FFC700;
    font-weight: 600;
}

.herramienta-content > p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 24px;
    line-height: 1.7;
    font-weight: 400;
}

.herramienta-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.herramienta-features li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.5;
}

.herramienta-features li:last-child {
    border-bottom: none;
}

.herramienta-features li > i {
    color: var(--dorado, #f4db60);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.herramienta-features li strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.herramienta-features li span {
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--text-body);
}

/* Herramientas responsive */
@media (max-width: 992px) {
    .herramienta-panel.active {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hub-herramientas-section {
        padding: 70px 20px;
    }

    .herramienta-panel.active {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .herramienta-content h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 600px) {
    .herramientas-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .herramienta-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Metodo pasos (remove need for inline style) */
.metodo-pasos {
    max-width: 800px;
    margin: 48px auto 0;
}

/* ==================================================================
   HUB: BENEFICIOS PARA EL CENTRO (dark)
   ================================================================== */
.hub-beneficios-section {
    padding: 110px 24px;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    color: #fff;
}

.hub-beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 48px auto 0;
}

.hub-beneficio-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-card);
    padding: 36px 30px;
    transition: var(--transition-smooth);
}

.hub-beneficio-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 199, 0, 0.2);
    transform: translateY(-3px);
}

.hub-beneficio-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.hub-beneficio-card:nth-child(1) .hub-beneficio-icon {
    background: rgba(27, 111, 176, 0.15);
    color: #60A5FA;
}

.hub-beneficio-card:nth-child(2) .hub-beneficio-icon {
    background: rgba(255, 199, 0, 0.12);
    color: var(--dorado, #f4db60);
}

.hub-beneficio-card:nth-child(3) .hub-beneficio-icon {
    background: rgba(29, 211, 176, 0.12);
    color: #00c1b5;
}

.hub-beneficio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 10px;
}

.hub-beneficio-card > p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
    margin-bottom: 20px;
}

.hub-beneficio-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hub-beneficio-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.hub-beneficio-card ul li i {
    color: var(--dorado, #f4db60);
    margin-top: 4px;
    font-size: 0.65rem;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .hub-beneficios-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hub-beneficios-section {
        padding: 70px 20px;
    }
}

/* ==================================================================
   HUB: FOMENTAMOS LA AUTONOMÍA (claro)
   ================================================================== */
.hub-autonomia-section {
    padding: 100px 24px;
    background: var(--bg-light);
}

.hub-autonomia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1060px;
    margin: 48px auto 0;
}

.hub-autonomia-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    text-align: center;
}

.hub-autonomia-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.hub-autonomia-card .autonomia-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 20px;
    background: rgba(255, 199, 0, 0.1);
    color: var(--dorado, #f4db60);
}

.hub-autonomia-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.hub-autonomia-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

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

@media (max-width: 600px) {
    .hub-autonomia-grid {
        grid-template-columns: 1fr;
    }

    .hub-autonomia-section {
        padding: 70px 20px;
    }
}

/* ==================================================================
   FP: CARACTERÍSTICAS DE LA PLATAFORMA (oscuro)
   ================================================================== */
.fp-plataforma-section {
    padding: 110px 24px;
    background: linear-gradient(160deg, #002868 0%, #0a1628 60%, #0d0d1a 100%);
    color: #fff;
}

.fp-plataforma-intro {
    max-width: 800px;
    margin: 0 auto 56px;
    text-align: center;
}

.fp-plataforma-intro p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
}

.fp-plataforma-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto 36px;
}

.fp-plataforma-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    padding: 36px 32px;
    transition: var(--transition-smooth);
}

.fp-plataforma-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
}

.fp-plataforma-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.fp-plataforma-card .card-icon.icon-contenidos {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.fp-plataforma-card .card-icon.icon-titulaciones {
    background: rgba(255, 199, 0, 0.15);
    color: var(--dorado, #f4db60);
}

.fp-plataforma-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.fp-plataforma-card > p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 20px;
}

.fp-plataforma-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-plataforma-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.fp-plataforma-card ul li i {
    color: var(--dorado, #f4db60);
    margin-top: 4px;
    font-size: 0.55rem;
    flex-shrink: 0;
}

/* Card ancha: Gestión integral */
.fp-gestion-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    padding: 44px 36px;
    max-width: 1100px;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.fp-gestion-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.fp-gestion-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.fp-gestion-header .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(29, 211, 176, 0.15);
    color: #00c1b5;
    flex-shrink: 0;
}

.fp-gestion-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.fp-gestion-card > p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 700px;
}

.fp-gestion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fp-gestion-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
    transition: var(--transition-smooth);
}

.fp-gestion-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.fp-gestion-item i {
    font-size: 1.2rem;
    color: #00c1b5;
    display: block;
    margin-bottom: 10px;
}

.fp-gestion-item strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.fp-gestion-item span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

/* Familias FP tag list */
.fp-familias-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.fp-familias-tags span {
    background: rgba(255, 199, 0, 0.1);
    border: 1px solid rgba(255, 199, 0, 0.2);
    color: var(--dorado, #f4db60);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .fp-plataforma-columns {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .fp-gestion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fp-plataforma-section {
        padding: 70px 20px;
    }

    .fp-gestion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-gestion-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .fp-gestion-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================================================
   NUEVAS SECCIONES HUB — Tutores, Cita, Verticales, IA Centro, Convocatorias
   ==================================================================== */

/* ---- TUTORES IA ---- */
.hub-tutores-section {
    padding: 100px 40px;
    background: var(--bg-dark, #0a0a1a);
}

.tutores-bloque-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.badge-centros-bg {
    background: rgba(27, 111, 176, 0.15);
    border: 1px solid rgba(27, 111, 176, 0.3);
    color: #5bb5ff;
}

.badge-fp-bg {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c8a0ff;
}

/* -- Comparador paneles -- */
.tutores-comparador {
    display: flex;
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.comparador-lado {
    flex: 1 1 calc(50% - 2px);
    overflow: hidden;
    min-width: 0;
}

.comparador-izq {
    background: linear-gradient(160deg, #002868 0%, #0d0d1a 100%);
}

.comparador-der {
    background: linear-gradient(160deg, #1a0a30 0%, #0d0d1a 100%);
    display: flex;
    justify-content: flex-end;
}

.comparador-contenido {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 24px;
    box-sizing: border-box;
}

.comparador-texto {
    flex: 0 0 320px;
    overflow: hidden;
    text-align: center;
}

.comparador-texto h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: normal;
}

.comparador-texto > p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

/* Avatares dentro del comparador */
.comparador-avatares {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    min-height: 130px;
    margin-bottom: 16px;
}

.avatar-grupo-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 -10px;
    z-index: 1;
    transition: transform 0.3s;
}

.avatar-grupo-item:hover {
    transform: translateY(-6px) scale(1.05);
    z-index: 10;
}

.avatar-grupo-item img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: #1a1a2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s;
}

.avatar-grupo-item:hover img {
    border-color: rgba(91, 181, 255, 0.6);
}

.avatar-grupo-item.avatar-fp:hover img {
    border-color: rgba(200, 160, 255, 0.6);
}

.avatar-grupo-item span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.avatar-grupo-item.avatar-centro {
    z-index: 5;
}

.avatar-grupo-item.avatar-centro img {
    width: 96px;
    height: 96px;
    border-color: rgba(91, 181, 255, 0.6);
    box-shadow: 0 6px 30px rgba(27, 111, 176, 0.3), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.avatar-grupo-item.avatar-centro span {
    color: #5bb5ff;
    font-size: 0.8rem;
    font-weight: 600;
}

.avatar-grupo-item.avatar-fp.avatar-centro img {
    border-color: rgba(200, 160, 255, 0.6);
    box-shadow: 0 6px 30px rgba(200, 160, 255, 0.25), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.avatar-grupo-item.avatar-fp.avatar-centro span {
    color: #c8a0ff;
}

.avatar-grupo-item.avatar-fp img {
    width: 75px;
    height: 75px;
}

.avatar-grupo-item.avatar-fp.avatar-centro img {
    width: 105px;
    height: 105px;
}

/* Roles */
.comparador-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tutor-rol {
    display: flex;
    flex-direction: column;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: center;
}

.tutor-rol strong {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 1px;
}

.tutor-rol span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.tutores-mas {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
    font-style: italic;
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

/* Carrusel producto */
.comparador-carousel {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: center;
    overflow: hidden;
}

.comparador-carousel-imgs {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparador-carousel-imgs img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    display: none;
    border-radius: 12px;
}

.comparador-carousel-imgs img.active {
    display: block;
}

.comparador-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.comparador-carousel-nav button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s;
}

.comparador-carousel-nav button:hover {
    background: rgba(212, 175, 55, 0.3);
}

.comparador-carousel-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    min-width: 40px;
    text-align: center;
}

/* Barra deslizante */
.comparador-barra {
    flex: 0 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: ew-resize;
    z-index: 10;
}

.comparador-linea {
    flex: 1;
    width: 3px;
    background: rgba(212, 175, 55, 0.5);
}

.comparador-asa {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f4db60;
    color: #002868;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    animation: pulso-luz 2.5s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    cursor: ew-resize;
    transition: transform 0.2s;
}

.comparador-asa:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulso-luz {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 219, 96, 0); }
    50% { box-shadow: 0 0 20px 8px rgba(244, 219, 96, 0.4); }
}

.tutores-deteccion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.deteccion-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
}

.deteccion-item > i {
    font-size: 1.3rem;
    color: #f4db60;
    margin-top: 2px;
    flex-shrink: 0;
}

.deteccion-item strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.deteccion-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* ---- CITA ---- */
.hub-cita-section {
    position: relative;
    padding: 160px 40px;
    text-align: center;
    overflow: hidden;
}

.cita-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cita-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 10, 26, 0.82);
    z-index: 1;
}

.hub-cita {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    border: none;
    padding: 0;
}

.hub-cita p {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.95;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* ---- MÁS HERRAMIENTAS (grid compacto) ---- */
@keyframes toolFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hub-mas-herramientas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 48px;
    border-top: 1px solid var(--border-light, #ececf0);
}

.hub-mas-cta {
    text-align: center;
    margin-top: 36px;
}

/* ==================================================================
   GRIDS RESPONSIVOS PARA PÁGINAS DE MÉTODO Y DOSSIER
   ================================================================== */
.mk-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.mk-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.mk-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.mk-grid-cycle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.mk-section-dark {
    padding: 100px 40px;
}

.mk-section-light {
    padding: 100px 24px;
}

@media (max-width: 992px) {
    .mk-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 620px;
    }
}

@media (max-width: 768px) {
    .mk-grid-2,
    .mk-grid-3,
    .mk-grid-cycle {
        grid-template-columns: 1fr;
    }

    .mk-grid-4 {
        grid-template-columns: 1fr;
    }

    .mk-grid-cycle {
        gap: 16px;
    }

    .mk-section-dark {
        padding: 60px 20px;
    }

    .mk-section-light {
        padding: 60px 20px;
    }

    .tutores-deteccion {
        grid-template-columns: 1fr;
    }
}

.mas-herramienta {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--bg-light, #fafbfd);
    border-radius: 12px;
    border: 1px solid var(--border-light, #ececf0);
    transition: border-color 0.3s;
}

.mas-herramienta:hover {
    border-color: #f4db60;
}

.mas-herramienta > i {
    font-size: 1.2rem;
    color: #f4db60;
    margin-top: 2px;
    flex-shrink: 0;
}

.mas-herramienta strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 4px;
}

.mas-herramienta span {
    font-size: 0.85rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.4;
}

/* ---- HERRAMIENTAS POR VERTICAL ---- */
.hub-vertical-section {
    padding: 100px 40px;
    background: var(--bg-dark, #0a0a1a);
}

.vertical-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1300px;
    margin: 0 auto;
}

.vertical-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.vertical-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    color: #fff;
    font-size: 1rem;
}

.vertical-card-header i {
    font-size: 1.2rem;
}

.vertical-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
}

.vch-centros { background: linear-gradient(135deg, #1B6FB0, #145a8f); }
.vch-fp { background: linear-gradient(135deg, #4f0093, #8b3fd4); }
.vch-homeschooling { background: linear-gradient(135deg, #00c1b5, #17b396); }
.vch-academias { background: linear-gradient(135deg, #54b7c6, #3a9aab); }

.vertical-card ul {
    list-style: none;
    padding: 24px 28px;
    margin: 0;
}

.vertical-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vertical-card li:last-child {
    border-bottom: none;
}

.vertical-card li i {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ---- IA PARA DOCENTES Y DIRECTIVOS ---- */
.hub-ia-centro-section {
    padding: 100px 40px;
    background: var(--bg-light, #fafbfd);
}

.ia-centro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.ia-centro-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ia-centro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.ia-centro-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: #f4db60;
}

.ia-centro-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 12px;
}

.ia-centro-card p {
    font-size: 0.92rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.6;
}

/* ---- CONVOCATORIAS (dual) ---- */
.hub-convocatorias-section {
    padding: 100px 40px;
    background: var(--bg-dark, #0a0a1a);
}

.convocatorias-dual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.convocatoria-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
}

.convocatoria-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
}

.conv-centros .convocatoria-badge { color: #1B6FB0; }
.conv-fp .convocatoria-badge { color: #4f0093; }

.convocatoria-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.convocatoria-stat {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    line-height: 1.4;
}

.convocatoria-stat span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #f4db60;
    margin-bottom: 4px;
}

.convocatoria-deadline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.convocatoria-deadline i {
    color: #f4db60;
    margin-right: 6px;
}

.convocatoria-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.conv-centros .convocatoria-cta {
    background: #1B6FB0;
    color: #fff;
}

.conv-fp .convocatoria-cta {
    background: #4f0093;
    color: #fff;
}

.convocatoria-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.convocatoria-note {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    margin-top: 16px;
}

/* ---- RESPONSIVE: NUEVAS SECCIONES ---- */
@media (max-width: 1024px) {
    .vertical-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-mas-herramientas {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparador-contenido {
        padding: 24px 16px;
        gap: 16px;
    }

    .comparador-texto {
        flex: 0 0 260px;
    }

    .avatar-grupo-item img {
        width: 75px;
        height: 75px;
    }

    .avatar-grupo-item.avatar-centro img {
        width: 100px;
        height: 100px;
    }

    .avatar-grupo-item.avatar-fp img {
        width: 62px;
        height: 62px;
    }

    .avatar-grupo-item.avatar-fp.avatar-centro img {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 768px) {
    .hub-tutores-section,
    .hub-vertical-section,
    .hub-ia-centro-section {
        padding: 70px 20px;
    }

    .hub-cita-section {
        padding: 60px 20px;
    }

    .tutores-comparador {
        flex-direction: column;
    }

    .comparador-lado {
        flex: 1 1 auto !important;
    }

    .comparador-der {
        justify-content: flex-start;
    }

    .comparador-contenido {
        flex-direction: column;
        padding: 32px 24px;
    }

    .comparador-texto {
        flex: 0 0 auto;
    }

    .comparador-carousel {
        flex: 0 0 auto;
        max-width: 320px;
        align-self: center;
    }

    .comparador-barra {
        flex-direction: row;
        flex: 0 0 4px;
    }

    .comparador-linea {
        height: 3px;
        width: auto;
    }

    .comparador-asa {
        width: 40px;
        height: 40px;
        pointer-events: none;
        opacity: 0.5;
    }

    .comparador-texto h3 {
        font-size: 1.15rem;
    }

    .comparador-avatares {
        min-height: 130px;
    }

    .avatar-grupo-item {
        margin: 0 -6px;
    }

    .avatar-grupo-item img {
        width: 56px;
        height: 56px;
    }

    .avatar-grupo-item.avatar-centro img {
        width: 78px;
        height: 78px;
    }

    .avatar-grupo-item.avatar-fp img {
        width: 48px;
        height: 48px;
    }

    .avatar-grupo-item.avatar-fp.avatar-centro img {
        width: 68px;
        height: 68px;
    }

    .vertical-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ia-centro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hub-mas-herramientas {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
        padding-top: 32px;
    }

    .convocatorias-dual {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hub-audiencias-grid {
        grid-template-columns: 1fr;
    }

    .avatar-grupo-item img {
        width: 46px;
        height: 46px;
    }

    .avatar-grupo-item.avatar-centro img {
        width: 64px;
        height: 64px;
    }

    .avatar-grupo-item.avatar-fp img {
        width: 40px;
        height: 40px;
    }

    .avatar-grupo-item.avatar-fp.avatar-centro img {
        width: 56px;
        height: 56px;
    }

    .avatar-grupo-item span {
        font-size: 0.6rem;
    }

    .tutor-rol {
        padding: 4px 10px;
    }

    .tutor-rol strong {
        font-size: 0.78rem;
    }
}

/* ===== FP — Diagrama de flujo onboarding ===== */
.fp-flow-step {
    max-width: 900px;
    margin: 0 auto;
}

.fp-flow-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.fp-flow-step-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}

.fp-flow-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Tabs dentro de cada paso */
.fp-flow-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 0;
}

.fp-flow-tab {
    padding: 11px 22px;
    border-radius: 14px 14px 0 0;
    border: 2px solid var(--border-light, #dde0e6);
    border-bottom: none;
    background: #fff;
    color: var(--text-body);
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    bottom: -2px;
}

.fp-flow-tab.active {
    background: var(--tab-color, #1B6FB0);
    border-color: var(--tab-color, #1B6FB0);
    color: #fff;
}

.fp-flow-tab:not(.active):hover {
    border-color: var(--tab-color, #1B6FB0);
    color: var(--tab-color, #1B6FB0);
}

/* Panels */
.fp-flow-panels {
    position: relative;
}

.fp-flow-panel {
    display: none;
    border: 2px solid var(--panel-accent, #1B6FB0);
    border-radius: 0 16px 16px 16px;
    padding: 28px;
    background: #fff;
    align-items: flex-start;
    gap: 20px;
}

.fp-flow-panel.active {
    display: flex;
}

.fp-flow-panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel-accent) 10%, transparent);
    color: var(--panel-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.fp-flow-panel-body strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.fp-flow-panel-body p {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0 0 14px;
}

.fp-flow-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp-flow-panel-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--panel-accent) 8%, transparent);
    color: var(--panel-accent);
}

.fp-flow-panel-tags span i {
    font-size: 0.65rem;
}

.fp-flow-connector {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    color: var(--border-light, #dde0e6);
    font-size: 1.4rem;
}

.fp-flow-step-final {
    background: linear-gradient(135deg, rgba(0,193,181,0.06) 0%, rgba(79,0,147,0.04) 100%);
    border: 2px solid rgba(0,193,181,0.2);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

@media (max-width: 768px) {
    .fp-flow-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .fp-flow-tab {
        border-radius: 14px;
        border-bottom: 2px solid var(--border-light, #dde0e6);
        bottom: 0;
        justify-content: center;
    }

    .fp-flow-tab.active {
        border-bottom-color: var(--tab-color, #1B6FB0);
    }

    .fp-flow-panel {
        border-radius: 16px;
        flex-direction: column;
    }

    .fp-flow-step-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Pain points */
.fp-pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fp-pain-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light, #fafbfd);
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 14px;
}

.fp-pain-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(79,0,147,0.08);
    color: #4f0093;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.fp-pain-fear {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted-hub, #8a8a9a);
    margin-bottom: 4px;
}

.fp-pain-answer {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Tabla migración */
.fp-tabla-wrapper {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border-light, #ececf0);
}

.fp-tabla-migracion {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.fp-tabla-migracion th {
    background: var(--bg-light, #fafbfd);
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-light, #ececf0);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fp-tabla-migracion td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light, #ececf0);
    color: var(--text-body);
}

.fp-tabla-migracion td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-tabla-migracion tr:last-child td {
    border-bottom: none;
}

.fp-tabla-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-si {
    background: rgba(0,193,181,0.1);
    color: #00c1b5;
}

.badge-historico {
    background: rgba(79,0,147,0.08);
    color: #4f0093;
}

.badge-actual {
    background: rgba(27,111,176,0.1);
    color: #1B6FB0;
}

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

    .fp-pain-card {
        background: #fff;
    }
}

/* ===== FP — Kobi examples ===== */
.fp-kobi-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fp-kobi-example {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.fp-kobi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 199, 0, 0.1);
    color: #FFC700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.fp-kobi-prompt {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: #FFC700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.fp-kobi-example p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    margin: 0;
}

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

@media (max-width: 600px) {
    .fp-kobi-examples {
        grid-template-columns: 1fr;
    }
}


/* ===== FP — Bloques por rol ===== */
.fp-rol-bloque {
    max-width: 1100px;
    margin: 0 auto 48px;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.fp-rol-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    background: var(--rol-color, #1B6FB0);
    color: #fff;
}

.fp-rol-header i {
    font-size: 1.3rem;
}

.fp-rol-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-transform: none;
    letter-spacing: normal;
}

.fp-rol-badge {
    margin-left: auto;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fp-rol-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.fp-rol-content-reverse {
    direction: rtl;
}

.fp-rol-content-reverse > * {
    direction: ltr;
}

.fp-rol-features {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fp-rol-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
}

.fp-rol-feature i {
    color: var(--rol-color, #1B6FB0);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.fp-rol-screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117;
    padding: 16px;
}

.fp-rol-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.fp-rol-screenshot-placeholder {
    flex-direction: column;
    gap: 8px;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.fp-rol-screenshot-placeholder i {
    font-size: 2rem;
}

/* Gallery dentro de bloques de rol */
.fp-rol-gallery {
    position: relative;
    flex-direction: column;
}

.fp-rol-gallery img {
    display: none;
}

.fp-rol-gallery img.active {
    display: block;
}

.fp-rol-gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0 4px;
}

.fp-rol-gallery-nav button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s;
}

.fp-rol-gallery-nav button:hover {
    background: rgba(255,255,255,0.2);
}

.fp-rol-gallery-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

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

    .fp-rol-content-reverse {
        direction: ltr;
    }

    .fp-rol-screenshot {
        order: -1;
    }

    .fp-rol-features {
        padding: 20px;
    }
}

/* ==================================================================
   ESTILOS KOBALTO — Sustitución de patrón border-left genérico
   ================================================================== */

/* ---- TIPO 1: CITAS / QUOTES ---- */
.kobalto-quote {
    position: relative;
    padding: 28px 32px 28px 52px;
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.05) 0%, rgba(244, 219, 96, 0.03) 100%);
    border-radius: 14px;
    border: 1px solid rgba(0, 40, 104, 0.08);
    font-style: italic;
    color: var(--text-body, #4a4a5a);
    line-height: 1.7;
    font-size: 0.95rem;
}

.kobalto-quote::before {
    content: "\201C";
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 3.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--dorado, #f4db60);
    line-height: 1;
    opacity: 0.7;
}

.kobalto-quote .quote-author {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
    color: var(--azul-corporativo, #002868);
}

/* Variante oscura (sobre fondo dark) */
.kobalto-quote.quote-dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(244, 219, 96, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.kobalto-quote.quote-dark .quote-author {
    color: var(--dorado, #f4db60);
}

/* ---- TIPO 2: CALLOUTS INFORMATIVOS ---- */
.kobalto-callout {
    position: relative;
    padding: 1.15rem 1.25rem;
    border-radius: 10px;
    border-bottom: 2px solid var(--callout-color, var(--dorado, #f4db60));
    background: linear-gradient(180deg, var(--callout-bg, rgba(244, 219, 96, 0.08)) 0%, transparent 100%);
}

.kobalto-callout strong {
    color: var(--text-dark, #1a1a2e);
}

/* Variantes de color */
.kobalto-callout.callout-blue {
    --callout-color: var(--azul-brillante, #1B6FB0);
    --callout-bg: rgba(27, 111, 176, 0.08);
}

.kobalto-callout.callout-coral {
    --callout-color: var(--coral, #FF6B9D);
    --callout-bg: rgba(255, 107, 157, 0.08);
}

.kobalto-callout.callout-turquesa {
    --callout-color: var(--turquesa, #00c1b5);
    --callout-bg: rgba(0, 193, 181, 0.1);
}

.kobalto-callout.callout-dorado {
    --callout-color: var(--dorado, #f4db60);
    --callout-bg: rgba(244, 219, 96, 0.08);
}

.kobalto-callout.callout-azul-corp {
    --callout-color: var(--azul-corporativo, #002868);
    --callout-bg: rgba(0, 40, 104, 0.06);
}

.kobalto-callout.callout-morado {
    --callout-color: var(--morado, #4f0093);
    --callout-bg: rgba(79, 0, 147, 0.06);
}

/* Variante oscura (sobre fondo dark) */
.kobalto-callout.callout-dark {
    background: linear-gradient(180deg, rgba(255, 199, 0, 0.1) 0%, transparent 100%);
    border-bottom-color: var(--dorado, #f4db60);
}

/* ---- TIPO 3: TARJETAS PRINCIPIO / CONCEPTO ---- */
.kobalto-principle {
    position: relative;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kobalto-principle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 12px;
    right: 12px;
    height: 4px;
    background: var(--principle-color, var(--azul-brillante, #1B6FB0));
    border-radius: 3px;
    z-index: 1;
}

.kobalto-principle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.kobalto-principle h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.kobalto-principle p {
    font-size: 0.9rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .kobalto-quote {
        padding: 24px 24px 24px 44px;
    }

    .kobalto-quote::before {
        font-size: 2.8rem;
        left: 12px;
    }

    .kobalto-principle {
        padding: 24px 20px;
    }
}

/* ==================================================================
   BLOG / ARTICLE STYLES
   ================================================================== */

/* Article page body */
.article-page {
    background: var(--bg-white, #fff);
}

/* Hero */
.article-hero {
    background: linear-gradient(135deg, #042454 0%, #0a0a1a 100%);
    padding: 120px 5% 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.article-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.article-hero h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-hero-image {
    max-width: 800px;
    margin: 32px auto 0;
    border-radius: var(--radius-card, 16px);
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    display: block;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}

.article-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: #fff;
}

.article-breadcrumb .fa-chevron-right {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.3);
}

/* Category badge */
.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.article-category.cat-actualidad {
    background: rgba(27, 111, 176, 0.2);
    color: #5ba3d9;
}

.article-category.cat-metodologias {
    background: rgba(79, 0, 147, 0.2);
    color: #a88bd4;
}

/* Meta */
.article-meta {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 6px;
}

/* Main content */
.article-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 5% 80px;
}

.article-content {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body, #4a4a5a);
}

.article-content h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark, #1a1a2e);
    margin: 48px 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-dark, #1a1a2e);
    margin: 32px 0 16px;
    text-transform: none;
    letter-spacing: normal;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 0 0 24px 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Lead paragraph */
.article-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark, #1a1a2e);
    font-weight: 500;
    margin-bottom: 32px;
}

/* Blockquote — editorial con comilla grande dorada (sin barra lateral) */
.article-quote {
    position: relative;
    background: transparent;
    padding: 24px 28px 16px 48px;
    margin: 36px 0;
    font-style: italic;
}

.article-quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -18px;
    font-family: Georgia, 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--dorado, #D4A843);
    opacity: 0.55;
    font-style: normal;
}

.article-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 8px;
}

.article-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--text-muted-hub, #8a8a9a);
    font-weight: 500;
}

.article-quote cite::before {
    content: '— ';
}

/* Callout corporativo C4 — pastilla flotante (fondo blanco + sombra + badge).
   Desktop: badge sobresale por la izquierda. Mobile: badge flota arriba. */
.article-callout {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 40, 104, 0.06);
    padding: 22px 24px 22px 70px;
    margin: 36px 0;
}

/* Badge (icono o texto) — C4 pastilla dorada flotante */
.article-callout-icon {
    position: absolute;
    left: -14px;
    top: 22px;
    width: 56px;
    height: 36px;
    background: var(--dorado, #D4A843);
    color: var(--azul-corporativo, #002868);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(212, 168, 67, 0.4);
    flex-shrink: 0;
}

/* Variantes — cambia el color del badge, el fondo queda blanco */
.article-callout.callout-warning .article-callout-icon {
    background: #e67e22;
    color: #fff;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.4);
}
.article-callout.callout-success .article-callout-icon {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.4);
}
.article-callout.callout-info .article-callout-icon {
    background: #1B6FB0;
    color: #fff;
    box-shadow: 0 3px 10px rgba(27, 111, 176, 0.4);
}
/* callout-kobalto mantiene el dorado por defecto */

@media (max-width: 768px) {
    .article-callout {
        padding: 32px 20px 20px;
    }
    .article-callout-icon {
        left: 20px;
        top: -14px;
    }
}

.article-callout-content {
    flex: 1;
    min-width: 0;
}

.article-callout-content strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 6px;
}

.article-callout-content p {
    font-size: 0.92rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.7;
    margin: 0;
}

/* CTA inline dentro del artículo — C4 pastilla flotante con badge de icono
   (cohete = inicio/comienzo). Mismo lenguaje visual que .article-callout. */
.article-cta-inline {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 16px;
    padding: 28px 32px 28px 80px;
    margin: 44px 0;
    box-shadow: 0 2px 10px rgba(0, 40, 104, 0.05);
}

.article-cta-inline::before {
    content: '\f135';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -14px;
    top: 28px;
    width: 56px;
    height: 44px;
    background: var(--dorado, #D4A843);
    color: var(--azul-corporativo, #002868);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(212, 168, 67, 0.4);
}

.article-cta-inline h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.article-cta-inline p {
    color: var(--text-body, #4a4a5a);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

@media (max-width: 768px) {
    .article-cta-inline {
        padding: 42px 22px 24px;
    }
    .article-cta-inline::before {
        left: 22px;
        top: -14px;
    }
}

/* Stat highlight — C5 eyebrow subrayado corporativo.
   El .stat-number actúa como eyebrow (dato o icono) con barra dorada inferior
   y el .stat-text como cuerpo del callout. */
.stat-highlight {
    background: #fff;
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 16px;
    padding: 22px 26px;
    margin: 36px 0;
    box-shadow: 0 2px 10px rgba(0, 40, 104, 0.04);
}

.stat-highlight .stat-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dorado, #D4A843);
    line-height: 1;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 3px solid var(--dorado, #D4A843);
    letter-spacing: 0.02em;
}

.stat-highlight .stat-text {
    font-size: 0.95rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.55;
}

/* CTA in articles */
.article-cta {
    text-align: center;
    padding: 48px 0;
    margin-top: 48px;
    border-top: 1px solid var(--border-light, #ececf0);
}

/* Lead block — bloque de intro del artículo. Sin estilos especiales:
   que se vea exactamente como el resto del contenido del post. */
.article-lead-block {
    margin-bottom: 8px;
}

.article-lead-block::before { content: none; }

.article-lead-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body, #4a4a5a);
    margin-bottom: 20px;
}

.article-lead-block p:last-child { margin-bottom: 20px; }

/* Section divider para posts con estructura por bloques (17-principios).
   Alineado con .article-content h2 del resto del blog. */
.article-section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark, #1a1a2e);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 56px 0 24px;
    display: block;
}

.article-section-label div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-section-label i {
    color: var(--dorado, #D4A843);
    font-size: 1.1rem;
}

/* Principle block — cada principio como h3 del artículo, sin cajas */
.article-principle {
    margin-bottom: 32px;
}

.article-principle-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 32px 0 16px;
}

.article-principle-num {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dorado, #D4A843);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.article-principle-num::after {
    content: '.';
}

.article-principle-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-dark, #1a1a2e);
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
}

.article-principle-body {
    padding-left: 0;
}

.article-principle-body p {
    margin-bottom: 20px;
    color: var(--text-body, #4a4a5a);
    line-height: 1.8;
}

/* Evidence / Nuance / Alert — patrón C5 corporativo (blanco + eyebrow subrayado) */
.article-evidence,
.article-nuance,
.article-alert {
    background: #fff;
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 16px;
    padding: 22px 26px;
    margin: 28px 0;
    box-shadow: 0 2px 10px rgba(0, 40, 104, 0.04);
}

.article-evidence-label,
.article-nuance-label,
.article-alert-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid currentColor;
}

.article-evidence-label { color: #1B6FB0; }
.article-nuance-label   { color: var(--dorado, #D4A843); }
.article-alert-label    { color: #c0392b; }

.article-evidence p,
.article-nuance p,
.article-alert p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body, #4a4a5a);
    margin: 0;
}

/* Product grid */
.article-prod-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted-hub, #8a8a9a);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-prod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 16px 0 20px;
}

.article-prod-card {
    border: 1px solid var(--border-light, #ececf0);
    border-radius: var(--radius-card, 16px);
    overflow: hidden;
    background: var(--bg-white, #fff);
}

.article-prod-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.article-prod-card-body { padding: 12px 14px; }

.article-prod-age {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--bg-light, #fafbfd);
    color: var(--text-muted-hub, #8a8a9a);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.article-prod-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 4px;
    line-height: 1.3;
}

.article-prod-desc {
    font-size: 0.8rem;
    color: var(--text-body, #4a4a5a);
    line-height: 1.55;
    margin: 0;
}

/* Product card horizontal variant */
.article-prod-card-h {
    display: flex;
    border: 1px solid var(--border-light, #ececf0);
    border-radius: var(--radius-card, 16px);
    overflow: hidden;
    background: var(--bg-white, #fff);
    margin: 16px 0 20px;
}

.article-prod-card-h img {
    width: 200px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.article-prod-card-h .article-prod-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Post closing CTA */
/* Closing CTA — mismo patrón C4 pastilla flotante que .article-cta-inline */
.article-closing {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-light, #ececf0);
    border-radius: 16px;
    padding: 32px 32px 32px 84px;
    margin: 56px 0 0;
    box-shadow: 0 2px 10px rgba(0, 40, 104, 0.05);
    text-align: left;
}

.article-closing::before {
    content: '\f135';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -14px;
    top: 32px;
    width: 56px;
    height: 44px;
    background: var(--dorado, #D4A843);
    color: var(--azul-corporativo, #002868);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(212, 168, 67, 0.4);
}

.article-closing h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    margin: 0 0 10px;
    text-transform: none;
    letter-spacing: normal;
}

.article-closing p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-body, #4a4a5a);
    max-width: none;
    margin: 0 0 20px;
}

/* Footnote */
.article-footnote {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light, #ececf0);
    font-size: 0.8rem;
    color: var(--text-muted-hub, #8a8a9a);
    line-height: 1.6;
}

.article-footnote strong {
    color: var(--text-dark, #1a1a2e);
}

@media (max-width: 768px) {
    .article-hero { padding: 100px 5% 40px; }
    .article-hero h1 { font-size: 1.6rem; }
    .article-main { padding: 32px 4% 60px; }
    .article-principle-body { padding-left: 0; }
    .article-closing {
        padding: 42px 22px 24px;
    }
    .article-closing::before {
        left: 22px;
        top: -14px;
    }
    .article-prod-grid { grid-template-columns: 1fr; }
    .article-prod-card-h { flex-direction: column; }
    .article-prod-card-h img { width: 100%; height: 160px; }
}

/* ==================================================================
   BLOG: Artículos relacionados + sidebar CTA
   ================================================================== */

.related-articles {
    padding: 60px 5% 80px;
    background: var(--bg-light, #fafbfd);
}

.related-articles .section-header {
    text-align: center;
    margin-bottom: 36px;
}

.related-articles .section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-dark, #1a1a2e);
    text-transform: none;
    letter-spacing: normal;
}

.related-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.sidebar-cta {
    background: linear-gradient(135deg, #042454 0%, #0a0a1a 100%);
    border-radius: var(--radius-card, 16px);
    padding: 28px 24px;
    text-align: center;
    margin-top: 32px;
}

.sidebar-cta h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dorado, #D4A843);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: normal;
}

.sidebar-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.sidebar-cta .btn-primary {
    font-size: 0.82rem;
}

/* Sidebar al final del artículo — TOC + Compartir + CTA apilados */
.article-sidebar {
    max-width: 720px;
    margin: 56px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-toc,
.sidebar-share {
    background: #fff;
    border: 1px solid var(--border-light, #ececf0);
    border-radius: var(--radius-card, 16px);
    padding: 22px 26px;
    box-shadow: 0 2px 10px rgba(0, 40, 104, 0.04);
}

.sidebar-toc h4,
.sidebar-share h4 {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dorado, #D4A843);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--dorado, #D4A843);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sidebar-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
    columns: 2;
    column-gap: 32px;
}

.sidebar-toc ul li {
    counter-increment: toc;
    padding: 6px 0;
    break-inside: avoid;
}

.sidebar-toc ul li a {
    display: block;
    position: relative;
    padding-left: 28px;
    color: var(--text-body, #4a4a5a);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.45;
    transition: color 0.2s;
}

.sidebar-toc ul li a::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dorado, #D4A843);
    letter-spacing: 0.05em;
}

.sidebar-toc ul li a:hover {
    color: var(--azul-corporativo, #002868);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light, #fafbfd);
    border: 1px solid var(--border-light, #ececf0);
    color: var(--text-body, #4a4a5a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: transparent;
}

.share-twitter:hover   { background: #000; }
.share-facebook:hover  { background: #1877F2; }
.share-whatsapp:hover  { background: #25D366; }
.share-linkedin:hover  { background: #0A66C2; }

@media (max-width: 768px) {
    .related-articles { padding: 40px 5% 60px; }
    .related-grid { grid-template-columns: 1fr; }
    .sidebar-toc ul { columns: 1; }
    .article-sidebar { margin-top: 40px; }
    .sidebar-toc, .sidebar-share { padding: 20px 22px; }
}

/* ================================================================
   RESPONSIVE GRIDS — evitar huérfanos en última fila
   Regla general:
   - Grids de 4 columnas → saltan a 2 (no 3+1)
   - Grids de 3 columnas → en breakpoint 2-col, si el último item
     queda solo, se centra con grid-column: 1 / -1 + max-width
   ================================================================ */

/* ---- Grids de 3 columnas con huérfano centrado ---- */
@media (max-width: 1024px) and (min-width: 769px) {
    .asistentes-grid,
    .proposito-pilares,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .asistentes-grid > :last-child:nth-child(odd),
    .proposito-pilares > :last-child:nth-child(odd),
    .blog-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 14px);
        justify-self: center;
    }
}

/* ---- Features grid (auto-fit): centrar última fila ---- */
.features-grid {
    justify-content: center;
}
@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
        max-width: 720px;
    }
    .features-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 12px);
        justify-self: center;
    }
}

/* ---- Grids de 4 columnas: saltar 3 (ir directo a 2) ---- */
@media (max-width: 1200px) and (min-width: 769px) {
    .core-grid,
    .problema-stats,
    .personajes-grid,
    .mk-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    /* En 2-col las tarjetas no deben quedar ultra-anchas (~540px).
       Limitamos el contenedor a ~620px → cada tarjeta ~300px. */
    .core-grid,
    .problema-stats,
    .personajes-grid,
    .mk-grid-4 {
        max-width: 620px !important;
    }
    .core-grid > :last-child:nth-child(odd),
    .problema-stats > :last-child:nth-child(odd),
    .personajes-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 12px);
        justify-self: center;
    }
}

/* ---- Related articles en posts del blog ---- */
.related-grid {
    justify-content: center;
}
@media (max-width: 1024px) and (min-width: 769px) {
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .related-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 16px);
        justify-self: center;
    }
}


/* ================================================================
   ZOOM MODAL — lightbox de imágenes ampliables
   JS lo abre con .active. Sin CSS quedaba visible al final del body.
   ================================================================ */
.zoom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}
.zoom-modal.active {
    display: flex;
}
.zoom-modal #zoom-image {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
}
.zoom-close,
.zoom-arrow {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zoom-close { top: 20px; right: 20px; }
.zoom-arrow { top: 50%; transform: translateY(-50%); }
.zoom-prev { left: 20px; }
.zoom-next { right: 20px; }
.zoom-close:hover,
.zoom-arrow:hover { background: rgba(255, 255, 255, 0.2); }

/* Ocultar badge flotante de reCAPTCHA v3. Google lo permite siempre
   que se incluya la nota legal en los formularios (clase .recaptcha-legal). */
.grecaptcha-badge { visibility: hidden !important; }

.recaptcha-legal {
    font-size: 0.72rem;
    color: var(--text-muted-hub, #8a8a9a);
    line-height: 1.5;
    text-align: center;
    margin-top: 14px;
}
.recaptcha-legal a { color: inherit; text-decoration: underline; }
.recaptcha-legal a:hover { color: var(--azul-corporativo, #042454); }

/* Highlighter corporativo (usado en sliders de FP, metodo, etc.) — bold
   + fondo coloreado translúcido inferior. Color dorado por defecto;
   cualquier contenedor puede sobrescribirlo con --kw-color inline para
   que coincida con el color de acento de su sección/slide. */
.kw,
.article-content strong,
.article-content b {
    font-weight: 700;
    background: linear-gradient(to bottom, transparent 60%, var(--kw-color, rgba(212,168,67,0.22)) 60%);
    padding: 0 2px;
}

/* Excluir del highlighter textos dentro de contextos donde el subrayado dorado
   competiría con otros elementos (footnote, metadatos, badges) */
.article-footnote strong,
.article-footnote b,
.article-principle-num {
    background: none;
    padding: 0;
}

/* Mobile: no hover en kb-stacked (se queda "pegado" en tap). En su lugar,
   el efecto se dispara cuando la card entra al viewport vía IntersectionObserver
   (clase .in-view añadida por JS, one-shot). */
@media (max-width: 768px) {
    .kb-stacked:hover { transform: none; }
    .kb-stacked:hover::before { transform: rotate(1.5deg); }
    .kb-stacked.in-view {
        transform: translateY(-4px);
    }
    .kb-stacked.in-view::before {
        transform: rotate(2.5deg) translate(-3px, -2px);
    }

    /* Logos de clientes en fila en mobile (evita que hagan wrap a columna) */
    .clientes-logos {
        gap: 24px !important;
        flex-wrap: nowrap !important;
    }
    .clientes-logo-item img {
        height: 56px !important;
    }
    .clientes-logo-item span {
        font-size: 0.72rem !important;
        line-height: 1.3;
    }
}
