/* Página de inicio - I.E.S.P.P. HZG - Rediseño moderno */
@media (prefers-reduced-motion: reduce) {
    .home-hero-v2 .home-hero-content, .home-bienvenidos, .home-servicios-v2,
    .home-zona-hzg-showcase, .home-galeria-showcase,
    .home-estadisticas-v2, .home-program-v2, .home-why-v2, .home-cta, .home-ubicacion, .home-enlaces-interes { animation: none; }
}
@keyframes home-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.pagina-inicio .web-main-inner {
    max-width: none;
    padding: 0;
}

.home-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* ========== HERO V2 - Full viewport con overlay ========== */
.home-hero-v2 {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}
.home-hero-bg {
    position: absolute;
    inset: 0;
}
.home-hero-bg-fallback {
    background: linear-gradient(135deg, #1e4a7e 0%, #163a66 40%, #0d3d32 100%);
}
.home-hero-banner.web-banner-outer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    left: 0;
}
.home-hero-v2 .home-hero-banner .web-banner-slider {
    min-height: 550px;
    height: 550px;
    padding-bottom: 0;
}
.home-hero-v2 .home-hero-banner .web-banner-slide,
.home-hero-v2 .home-hero-banner .web-banner-slide img {
    min-height: 550px;
    height: 550px;
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,74,126,0.35) 0%, rgba(13,61,50,0.9) 100%);
}
.home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
    animation: home-fade-up 0.8s ease both;
}
.home-hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.home-hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.home-hero-lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    margin: 0 0 2rem 0;
}
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-hero-btn-primary {
    background: #fff;
    color: #163a66;
}
.home-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.home-hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
}
.home-hero-btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

/* Bienvenidos */
.home-bienvenidos {
    padding: 2.5rem 0;
    background: #fff;
    border-bottom: 1px solid var(--borde, #e2e8f0);
    animation: home-fade-up 0.6s ease 0.1s both;
}
.home-bienvenidos .home-inner {
    max-width: 1200px;
}
.home-bienvenidos h2 {
    margin: 0 0 1rem 0;
    color: var(--color-primario, #1e4a7e);
    font-size: 1.5rem;
}
.home-bienvenidos h3 {
    font-size: 1.15rem;
    margin: 1.25rem 0 0.5rem 0;
}
.home-bienvenidos p, .home-bienvenidos li {
    line-height: 1.65;
    text-align: justify;
}
.home-bienvenidos ul {
    margin: 0.5rem 0 1rem 1.5rem;
}
.home-bienvenidos .btn {
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* ========== SERVICIOS V2 - Tarjetas horizontales ========== */
.home-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.home-section-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(30, 74, 126, 0.1);
    color: var(--color-primario, #1e4a7e);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}
.home-servicios-v2 {
    padding: 4rem 0;
    background: #fff;
    animation: home-fade-up 0.6s ease 0.1s both;
}
.home-servicios-v2 .home-section-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--texto, #1f2937);
}
.home-servicios-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.home-servicio-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--fondo, #f5f7fa);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--color-primario, #1e4a7e);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.home-servicio-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(30, 74, 126, 0.15);
    border-left-color: var(--color-secundario, #3b82b6);
}
.home-servicio-card--has-ribbon {
    position: relative;
    overflow: hidden;
}
/* Cinta completa visible: pegada arriba a la derecha (sin rotación que se corta con overflow) */
.home-servicio-card-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: auto;
    max-width: calc(100% - 4.25rem);
    margin: 0;
    padding: 0.26rem 0.55rem 0.3rem 0.7rem;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: #fff;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: right;
    white-space: normal;
    border-bottom-left-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    pointer-events: none;
}
.home-servicio-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e4a7e, #163a66);
    color: #fff;
    border-radius: 12px;
    font-size: 1.25rem;
}
.home-servicio-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.home-servicio-icon-eva {
    background: transparent !important;
    color: #d01b2d !important;
    font-weight: 700;
}
.home-servicio-card-text {
    flex: 1;
    font-weight: 600;
    color: var(--texto, #1f2937);
}
.home-servicio-card-arrow {
    color: var(--color-primario, #1e4a7e);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}
.home-servicio-card:hover .home-servicio-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ========== ZONA HZG (showcase) ========== */
.home-zona-hzg-showcase {
    padding: 4.5rem 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(45, 212, 191, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(129, 140, 248, 0.2), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    animation: home-fade-up 0.65s ease 0.1s both;
}
.home-zona-hzg-card {
    position: relative;
    border-radius: 28px;
    padding: 3px;
    background: linear-gradient(135deg, #14b8a6, #6366f1, #a855f7, #f59e0b);
    box-shadow:
        0 4px 24px rgba(99, 102, 241, 0.15),
        0 24px 48px -12px rgba(15, 23, 42, 0.12);
}
.home-zona-hzg-card__glow {
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.35), rgba(99, 102, 241, 0.25));
    filter: blur(18px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}
.home-zona-hzg-card__inner {
    position: relative;
    z-index: 1;
    border-radius: 25px;
    background: linear-gradient(165deg, #ffffff 0%, #fafafa 50%, #f8fafc 100%);
    overflow: hidden;
}
.home-zona-hzg-card__inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: min(45%, 320px);
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.06), transparent 65%);
    pointer-events: none;
}
.home-zona-hzg-card__layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 2.25rem 2.25rem;
    position: relative;
}
.home-zona-hzg-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.home-zona-hzg-card__mark {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(145deg, #0d9488, #4f46e5);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}
.home-zona-hzg-card__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}
.home-zona-hzg-card__title {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(110deg, #0f172a 0%, #0f766e 40%, #4c1d95 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@supports not (background-clip: text) {
    .home-zona-hzg-card__title { color: #0f172a; background: none; }
}
.home-zona-hzg-card__lede {
    margin: 0 0 1.25rem;
    font-size: 1.06rem;
    line-height: 1.65;
    color: #475569;
    max-width: 36rem;
}
.home-zona-hzg-card__hint {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.home-zona-hzg-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.home-zona-hzg-pill {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.home-zona-hzg-pill--doc {
    border-color: rgba(139, 92, 246, 0.35);
    background: linear-gradient(135deg, #faf5ff 0%, #fff 100%);
}
.home-zona-hzg-pill--runa {
    border-color: rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #f0fdfa 0%, #fff 100%);
}
.home-zona-hzg-pill__ico {
    font-size: 1.5rem;
    line-height: 1;
}
.home-zona-hzg-pill strong {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}
.home-zona-hzg-pill span {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #64748b;
    font-weight: 600;
}
.home-zona-hzg-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.6rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(118deg, #0d9488 0%, #4f46e5 55%, #7c3aed 100%);
    box-shadow: 0 10px 32px rgba(79, 70, 229, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-zona-hzg-card__cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.4);
}
.home-zona-hzg-card__visual {
    position: relative;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    line-height: 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 20px 50px rgba(15, 23, 42, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-zona-hzg-card__visual:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 28px 56px rgba(79, 70, 229, 0.2);
}
.home-zona-hzg-card__visual-ring {
    position: absolute;
    inset: -4px;
    border-radius: 26px;
    border: 2px solid rgba(20, 184, 166, 0.45);
    pointer-events: none;
    z-index: 1;
}
.home-zona-hzg-card__visual-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.home-zona-hzg-card__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

@media (max-width: 960px) {
    .home-zona-hzg-card__layout {
        grid-template-columns: 1fr;
        padding: 1.65rem 1.35rem 1.75rem;
    }
    .home-zona-hzg-pills {
        grid-template-columns: 1fr;
    }
    .home-zona-hzg-card__visual {
        order: -1;
        max-width: 520px;
        margin: 0 auto;
    }
    .home-zona-hzg-showcase__hub {
        padding: 1.5rem 1.35rem 1.75rem;
    }
}

/* Dentro de la tarjeta Zona HZG — hub minimal / contemporáneo */
.home-zona-hzg-showcase__hub {
    margin: 0;
    padding: 2rem 2.25rem 2rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    background: transparent;
}
.home-zona-hzg-hub__layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.home-zona-hzg-hub__panel {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.home-zona-hzg-hub__panel--runasimi {
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.home-zona-hzg-hub__panel-head {
    margin-bottom: 1.25rem;
}
.home-zona-hzg-hub__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    color: #475569;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.home-zona-hzg-hub__badge--doc {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.14);
}
.home-zona-hzg-hub__badge--runa {
    color: #0d9488;
    background: rgba(20, 184, 166, 0.09);
    border-color: rgba(20, 184, 166, 0.18);
}
.home-zona-hzg-hub__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: #0f172a;
}
.home-zona-hzg-hub__panel--docentes .home-zona-hzg-hub__title::after {
    content: '';
    display: block;
    width: 2.25rem;
    height: 2px;
    margin-top: 0.6rem;
    border-radius: 2px;
    background: #6366f1;
}
.home-zona-hzg-hub__panel--runasimi .home-zona-hzg-hub__title::after {
    content: '';
    display: block;
    width: 2.25rem;
    height: 2px;
    margin-top: 0.6rem;
    border-radius: 2px;
    background: #14b8a6;
}
.home-zona-hzg-hub__blurb {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 42rem;
}
.home-zona-hzg-hub__tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    margin-bottom: 0.25rem;
}
@media (max-width: 720px) {
    .home-zona-hzg-hub__tiles {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
}
.home-zona-hzg-hub__tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.875rem 1rem;
    text-align: left;
    text-decoration: none;
    color: inherit;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.home-zona-hzg-hub__tile:hover {
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}
.home-zona-hzg-hub__tile:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}
.home-zona-hzg-hub__panel--docentes .home-zona-hzg-hub__tile:hover {
    border-color: rgba(99, 102, 241, 0.22);
}
.home-zona-hzg-hub__panel--runasimi .home-zona-hzg-hub__tile:hover {
    border-color: rgba(20, 184, 166, 0.28);
}
.home-zona-hzg-hub__tile-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}
.home-zona-hzg-hub__tile-emoji {
    flex-shrink: 0;
    font-size: 1.85rem;
    line-height: 1;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
}
.home-zona-hzg-hub__tile-emoji--lg {
    font-size: 2rem;
}
.home-zona-hzg-hub__tile-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.home-zona-hzg-hub__tile-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.home-zona-hzg-hub__tile-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}
.home-zona-hzg-hub__tile-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.35;
}
.home-zona-hzg-hub__tile-cta {
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.home-zona-hzg-hub__panel--runasimi .home-zona-hzg-hub__tile-cta {
    color: #0f766e;
}
.home-zona-hzg-hub__tile:hover .home-zona-hzg-hub__tile-cta i {
    transform: translateX(3px);
}
.home-zona-hzg-hub__tile-cta i {
    transition: transform 0.2s ease;
    font-size: 0.6rem;
    opacity: 0.85;
}
.home-zona-hzg-hub__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 0.4rem 0;
    border: none;
    transition: color 0.2s ease;
}
.home-zona-hzg-hub__footer-link:hover {
    color: #0f172a;
}
.home-zona-hzg-hub__panel--docentes .home-zona-hzg-hub__footer-link:hover {
    color: #4338ca;
}
.home-zona-hzg-hub__panel--runasimi .home-zona-hzg-hub__footer-link:hover {
    color: #0f766e;
}
@media (prefers-reduced-motion: reduce) {
    .home-zona-hzg-hub__tile,
    .home-zona-hzg-hub__tile-cta i {
        transition: none;
    }
    .home-zona-hzg-hub__tile:hover {
        transform: none;
    }
}

/* ========== GALERÍA (showcase) ========== */
.home-galeria-showcase {
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
    animation: home-fade-up 0.65s ease 0.12s both;
}
.home-galeria-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 70% at 100% 100%, rgba(167, 139, 250, 0.15), transparent 45%);
    pointer-events: none;
}
.home-galeria-showcase__head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.home-galeria-showcase__icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(145deg, #38bdf8, #818cf8);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
}
.home-galeria-showcase__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}
.home-galeria-showcase__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.home-galeria-showcase__desc {
    margin: 0;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #cbd5e1;
}
.home-galeria-showcase__shell {
    position: relative;
    z-index: 1;
    padding: 0.45rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 48px rgba(0, 0, 0, 0.35);
}
.home-galeria-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    column-gap: 1px;
    row-gap: 0;
    /* stretch: la foto grande rellena las 2 filas a la izquierda */
    align-items: stretch;
}
.home-galeria-mosaic__cell {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
    /* Las miniaturas no se estiran en alto: solo la hero */
    align-self: start;
}
.home-galeria-mosaic__cell--hero {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: unset;
    align-self: stretch;
    min-height: 220px;
    height: auto;
    border-radius: 16px;
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15);
}
/* Imagen principal: cubre toda la celda (2 filas), sin banda vacía abajo */
.home-galeria-mosaic__cell--hero .home-galeria-mosaic__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}
.home-galeria-mosaic__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}
.home-galeria-mosaic__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.home-galeria-mosaic__hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.65) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
    pointer-events: none;
}
.home-galeria-mosaic__cell:hover {
    transform: translateY(-3px);
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.home-galeria-mosaic__cell--hero:hover {
    border-color: rgba(56, 189, 248, 0.55);
}
/* Sexta foto: fila inferior alineada al mosaico anterior */
.home-galeria-mosaic__cell:nth-child(6) {
    grid-column: 1 / span 2;
}
@media (min-width: 769px) {
    .home-galeria-mosaic__cell:nth-child(6) {
        grid-column: 3 / span 2;
    }
    /* Con 6 fotos la 6ª va a la fila 3 (cols 3–4); la hero debe ocupar 3 filas para no dejar hueco a la izquierda */
    .home-galeria-mosaic--6 .home-galeria-mosaic__cell--hero {
        grid-row: span 3;
    }
}
.home-galeria-mosaic__cell:hover .home-galeria-mosaic__img {
    transform: scale(1.06);
}
.home-galeria-mosaic__cell:hover .home-galeria-mosaic__shine {
    opacity: 1;
}
.home-galeria-mosaic__cell:hover .home-galeria-mosaic__hover {
    opacity: 1;
}
.home-galeria-showcase__actions {
    position: relative;
    z-index: 1;
    margin-top: 1.75rem;
    text-align: center;
}
.home-galeria-showcase__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.85rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    color: #0f172a;
    background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-galeria-showcase__cta:hover {
    color: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(56, 189, 248, 0.25);
}

@media (max-width: 768px) {
    .home-galeria-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        column-gap: 1px;
        row-gap: 0;
    }
    .home-galeria-mosaic__cell--hero {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 200px;
        aspect-ratio: 16 / 10;
    }
    .home-galeria-mosaic__cell:nth-child(6) {
        grid-column: span 2;
    }
}

/* ========== NOTICIAS Y COMUNICADOS (fragmento inicio) ========== */
.home-noticias-v2 {
    padding: 4rem 0;
    background: var(--fondo, #f5f7fa);
    animation: home-fade-up 0.6s ease 0.15s both;
}
.home-noticias-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.home-noticia-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30,74,126,0.12);
}
.home-noticia-card-img {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    overflow: hidden;
}
.home-noticia-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-noticia-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}
.home-noticia-card-body {
    padding: 1.25rem;
    flex: 1;
}
.home-noticia-card-tipo {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.home-noticia-card-tipo.tipo-noticia { background: #dbeafe; color: #1e40af; }
.home-noticia-card-tipo.tipo-comunicado { background: #fef3c7; color: #92400e; }
.home-noticia-card-titulo {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--texto, #1f2937);
    line-height: 1.4;
}
.home-noticia-card-resumen {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}
.home-noticia-card-fecha {
    font-size: 0.8rem;
    color: #94a3b8;
}
.home-noticia-card-arrow {
    align-self: flex-end;
    margin: 0 1rem 1rem;
    color: var(--color-primario, #1e4a7e);
    opacity: 0;
    transition: opacity 0.2s;
}
.home-noticia-card:hover .home-noticia-card-arrow {
    opacity: 1;
}
.home-noticias-ver-todos {
    color: var(--color-primario, #1e4a7e);
    font-weight: 600;
    text-decoration: none;
}
.home-noticias-ver-todos:hover {
    text-decoration: underline;
}

/* ========== ESTADÍSTICAS V2 - Números prominentes ========== */
.home-estadisticas-v2 {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e4a7e 0%, #163a66 50%, #0d3d32 100%);
    color: #fff;
    animation: home-fade-up 0.6s ease 0.2s both;
}
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.home-stat-item {
    text-align: center;
    padding: 2rem 1rem;
}
.home-stat-num {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.home-stat-text {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* ========== PROGRAMA V2 - Layout split ========== */
.home-program-v2 {
    padding: 4rem 0;
    background: var(--fondo, #f5f7fa);
    animation: home-fade-up 0.6s ease 0.3s both;
}
.home-program-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.home-program-info .home-section-badge { margin-bottom: 0.5rem; }
.home-program-info .home-section-title {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--texto, #1f2937);
}
.home-program-lead {
    margin: 0 0 1.5rem 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--texto-suave, #4b5563);
}
.home-program-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-primario, #1e4a7e);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s;
}
.home-program-cta:hover {
    background: var(--color-primario-oscuro, #163a66);
    transform: translateX(4px);
}
.home-program-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-program-checklist li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.home-program-checklist li i {
    color: var(--color-primario, #1e4a7e);
    font-size: 1.1rem;
}
.home-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primario, #1e4a7e);
}

/* ========== POR QUÉ NOSOTROS V2 ========== */
.home-why-v2 {
    padding: 4rem 0;
    background: #fff;
    animation: home-fade-up 0.6s ease 0.4s both;
}
.home-why-v2 .home-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--texto, #1f2937);
}
.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
.home-card {
    padding: 2rem 1.5rem;
    background: var(--fondo, #f5f7fa);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(30, 74, 126, 0.15);
}
.home-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #1e4a7e, #163a66);
    border-radius: 16px;
    margin-bottom: 1rem;
}
.home-card-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--texto, #1f2937);
}
.home-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--texto-suave, #4b5563);
}

/* Contenido principal (desde BD) */
/* Contenido editable (legacy, ya no se usa en inicio; se muestra en home-bienvenidos) */
.home-contenido {
    padding: 3rem 0;
    background: var(--fondo, #f5f7fa);
}
.home-contenido .home-inner {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.home-contenido h2 {
    margin-top: 0;
    color: var(--color-primario, #1e4a7e);
    font-size: 1.4rem;
}
.home-contenido h3 {
    font-size: 1.15rem;
    margin: 1.25rem 0 0.5rem 0;
}
.home-contenido p, .home-contenido li {
    line-height: 1.65;
    text-align: justify;
}
.home-contenido ul {
    margin: 0.5rem 0 1rem 1.5rem;
}
.home-contenido .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ========== CTA final ========== */
.home-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e4a7e 0%, #163a66 50%, #0d3d32 100%);
    color: #fff;
    text-align: center;
    animation: home-fade-up 0.6s ease 0.5s both;
}
.home-cta-title {
    margin: 0 0 0.75rem 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}
.home-cta-text {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}
.home-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s, background 0.2s;
}
.home-cta-btn-white {
    background: #fff;
    color: var(--color-primario, #1e4a7e);
}
.home-cta-btn-white:hover {
    background: rgba(255,255,255,0.95);
    color: #163a66;
    transform: translateY(-2px);
}
.home-cta-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}
.home-cta-btn-outline:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ========== Ubicación (mapa) — debajo del CTA ========== */
.home-ubicacion {
    padding: 4rem 0;
    background: var(--fondo, #f1f5f9);
    border-top: 1px solid #e2e8f0;
    text-align: center;
    animation: home-fade-up 0.6s ease 0.55s both;
}
.home-ubicacion__head {
    max-width: 40rem;
    margin: 0 auto 1.75rem;
}
.home-ubicacion__eyebrow {
    margin: 0 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primario, #1e4a7e);
}
.home-ubicacion__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--texto, #1f2937);
    letter-spacing: -0.02em;
}
.home-ubicacion__desc {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #64748b;
}
.home-ubicacion__map-bleed {
    width: 100%;
    margin-top: 0.25rem;
}
.home-ubicacion__meta {
    padding-top: 1.25rem;
}
.home-ubicacion__meta-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.home-ubicacion__frame {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: solid #e2e8f0;
    border-width: 1px 0;
    box-shadow: 0 16px 48px rgba(30, 74, 126, 0.1);
    /* Ancho completo del viewport; más alto que antes (antes ~420px tope) */
    height: clamp(440px, 52vw, 640px);
    min-height: 400px;
    background: #e2e8f0;
}
.home-ubicacion__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.home-ubicacion__address {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--texto, #334155);
    min-width: 0;
}
.home-ubicacion__meta-row .home-ubicacion__link {
    flex-shrink: 0;
    white-space: nowrap;
}
.home-ubicacion__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primario, #1e4a7e);
    text-decoration: none;
    border-bottom: 2px solid rgba(30, 74, 126, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.home-ubicacion__link:hover {
    color: #163a66;
    border-bottom-color: rgba(22, 58, 102, 0.45);
}

/* ========== Enlaces de interés (carrusel) ========== */
@keyframes home-enlaces-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
.home-enlaces-interes {
    /* Sobrescribibles desde intranet (EnlacesInteres::estiloAspectoInline) */
    --ej-altura: 56px;
    --ej-altura-max: 68px;
    --ej-radius: 999px;
    --ej-gap: 16px;
    --ej-max-solo: min(360px, 90vw);
    --ej-media-w: min(240px, 55vw);
    --ej-media-max: min(320px, 70vw);
    --ej-chip-max: min(420px, 100%);
    --ej-texto-max: min(280px, 52vw);
    --ej-font: 0.95rem;
    --ej-ico: 2.35rem;
    --ej-marquee-dur: 55s;
    padding: 3.25rem 0 3.5rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    animation: home-fade-up 0.6s ease 0.58s both;
}
.home-enlaces-interes__head {
    max-width: 40rem;
    margin: 0 auto 1.5rem;
}
.home-enlaces-interes__eyebrow {
    margin: 0 0 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}
.home-enlaces-interes__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.45rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: var(--texto, #1f2937);
    letter-spacing: -0.02em;
}
.home-enlaces-interes__desc {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #64748b;
}
.home-enlaces-interes__marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 0.25rem;
    padding: 0.35rem 0;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.home-enlaces-interes__marquee-inner {
    width: 100%;
}
.home-enlaces-interes__track {
    display: flex;
    width: max-content;
    gap: var(--ej-gap, 1rem);
    animation: home-enlaces-marquee var(--ej-marquee-dur, 55s) linear infinite;
}
.home-enlaces-interes__marquee:hover .home-enlaces-interes__track {
    animation-play-state: paused;
}
.home-enlaces-interes__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--ej-gap, 1rem);
    padding-right: var(--ej-gap, 1rem);
}
.home-enlaces-interes__group > .home-enlaces-interes__chip {
    flex-shrink: 0;
}
.home-enlaces-interes__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.25rem;
    min-height: var(--ej-altura, 56px);
    box-sizing: border-box;
    border-radius: var(--ej-radius, 999px);
    text-decoration: none;
    color: var(--texto, #1e293b);
    font-weight: 600;
    font-size: var(--ej-font, 0.95rem);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(30, 74, 126, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.home-enlaces-interes__chip:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 74, 126, 0.35);
    box-shadow: 0 8px 22px rgba(30, 74, 126, 0.14);
    color: var(--color-primario, #1e4a7e);
}
.home-enlaces-interes__chip-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ej-ico, 2.35rem);
    height: var(--ej-ico, 2.35rem);
    border-radius: 50%;
    background: linear-gradient(145deg, #e0f2fe 0%, #dbeafe 100%);
    color: var(--color-primario, #1e4a7e);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.home-enlaces-interes__chip-text {
    max-width: var(--ej-texto-max, min(52vw, 280px));
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-enlaces-interes__chip--compact {
    padding: 0.55rem 0.85rem;
    gap: 0;
}
.home-enlaces-interes__chip-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}
.home-enlaces-interes__chip-ico:has(.home-enlaces-interes__chip-img) {
    width: calc(var(--ej-ico, 2.35rem) + 0.3rem);
    height: calc(var(--ej-ico, 2.35rem) + 0.3rem);
    background: #fff;
    padding: 3px;
    box-sizing: border-box;
}
/* Imagen sin ícono FA: ocupa todo el chip (o la parte izquierda si hay título) */
.home-enlaces-interes__chip--media-full {
    padding: 0;
    gap: 0;
    overflow: hidden;
    align-items: stretch;
    min-height: var(--ej-altura, 56px);
    /* nowrap en .chip rompe el encogido flex con fotos grandes */
    white-space: normal;
    max-width: var(--ej-chip-max, min(100%, 420px));
}
.home-enlaces-interes__chip--media-full-only {
    min-width: min(200px, 72vw);
    max-width: var(--ej-max-solo, min(360px, 90vw));
}
.home-enlaces-interes__chip-media-full {
    flex: 1 1 auto;
    min-width: 0;
    width: var(--ej-media-w, min(240px, 55vw));
    height: var(--ej-altura, 56px);
    max-width: var(--ej-media-max, min(300px, 70vw));
    max-height: var(--ej-altura-max, 64px);
    display: block;
    overflow: hidden;
    position: relative;
}
.home-enlaces-interes__chip--media-full-only .home-enlaces-interes__chip-media-full {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: var(--ej-altura, 56px);
    max-height: var(--ej-altura-max, 64px);
}
.home-enlaces-interes__chip-media-full-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.home-enlaces-interes__chip-text--media {
    padding: 0.65rem 1.15rem;
    align-self: center;
    flex-shrink: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 1px solid #e2e8f0;
    white-space: nowrap;
    max-width: var(--ej-texto-max, min(52vw, 280px));
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-enlaces-interes__chip--media-full:hover .home-enlaces-interes__chip-text--media {
    color: var(--color-primario, #1e4a7e);
}

/* Tarjeta ancha tipo “pastilla”: texto + CTA a la izquierda, foto a la derecha */
.home-enlaces-interes__chip--promo {
    display: inline-flex;
    flex-direction: row;
    align-items: stretch;
    flex-shrink: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
    min-height: max(var(--ej-altura, 56px), var(--ej-promo-min-altura, var(--ej-promo-min, 108px)));
    max-height: none;
    white-space: normal;
    width: max-content;
    max-width: min(var(--ej-promo-ancho-max, 920px), 94vw);
    text-align: left;
    box-sizing: border-box;
}
/* Pastillas promocionales debajo del carrusel (no van en el marquee infinito) */
.home-enlaces-interes__destacados {
    position: relative;
    z-index: 2;
    margin-top: 1.35rem;
    padding: 0 0 0.25rem;
    width: 100%;
}
.home-enlaces-interes__destacados .home-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.home-enlaces-interes__destacados .home-enlaces-interes__chip--promo {
    width: 100%;
    max-width: min(var(--ej-promo-ancho-max, 920px), 100%);
}
.home-enlaces-interes__chip--promo:hover {
    color: inherit;
}
.home-enlaces-interes__promo-body {
    display: flex;
    flex: 1 1 55%;
    min-width: 0;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem 0.85rem 1.1rem;
    background: var(--promo-bg, #1e3a5f);
    color: #fff;
}
.home-enlaces-interes__promo-badge {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 0.4rem 0.55rem;
    border-radius: 0.45rem;
    background: var(--promo-badge-bg, #fff);
    max-width: 9.75rem;
    line-height: 1.2;
}
.home-enlaces-interes__promo-badge-kicker {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--promo-badge-kicker, #64748b);
}
.home-enlaces-interes__promo-badge-titulo {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: pre-line;
    color: var(--promo-badge-titulo, #7f1d1d);
}
.home-enlaces-interes__promo-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-self: center;
}
.home-enlaces-interes__promo-desc {
    font-size: max(0.8rem, calc(var(--ej-font, 0.95rem) * 0.88));
    line-height: 1.45;
    opacity: 0.98;
    white-space: normal;
}
.home-enlaces-interes__promo-cta {
    display: block;
}
.home-enlaces-interes__promo-cta-inner {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 1.05rem;
    border-radius: 999px;
    background: var(--promo-btn, #7c2d12);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.home-enlaces-interes__promo-media {
    flex: 0 0 38%;
    max-width: 42%;
    min-width: 112px;
    position: relative;
    overflow: hidden;
    align-self: stretch;
}
.home-enlaces-interes__promo-img {
    width: 100%;
    height: 100%;
    min-height: var(--ej-promo-min-altura, var(--ej-promo-min, 108px));
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 640px) {
    .home-enlaces-interes__chip--promo {
        flex-direction: column;
        max-width: min(100%, 400px);
    }
    .home-enlaces-interes__promo-media {
        flex: none;
        width: 100%;
        max-width: none;
        min-height: 140px;
    }
    .home-enlaces-interes__promo-img {
        min-height: 140px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-enlaces-interes__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100% !important;
        max-width: 56rem;
        margin: 0 auto;
        row-gap: 0.75rem;
    }
    .home-enlaces-interes__group[aria-hidden="true"] {
        display: none;
    }
    .home-enlaces-interes__group {
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
    }
    .home-enlaces-interes__chip--media-full {
        flex-direction: column;
        max-width: min(100%, 320px);
    }
    .home-enlaces-interes__chip-media-full {
        height: calc(var(--ej-altura, 56px) * 1.75);
        max-height: calc(var(--ej-altura-max, 64px) * 1.9);
        min-width: 0;
        width: 100%;
    }
    .home-enlaces-interes__chip-text--media {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        max-width: none;
        text-align: center;
    }
    .home-enlaces-interes__chip--promo {
        flex-direction: column;
        max-width: min(100%, 420px);
    }
    .home-enlaces-interes__promo-media {
        flex: none;
        width: 100%;
        max-width: none;
        min-height: 140px;
    }
    .home-enlaces-interes__promo-img {
        min-height: 140px;
    }
}

@media (max-width: 900px) {
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .home-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-program-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .home-hero-v2 {
        min-height: 400px;
    }
    .home-hero-v2 .home-hero-banner .web-banner-slider,
    .home-hero-v2 .home-hero-banner .web-banner-slide,
    .home-hero-v2 .home-hero-banner .web-banner-slide img {
        min-height: 400px;
        height: 400px;
    }
    .home-hero-content {
        padding: 2rem 1rem;
    }
    .home-hero-actions {
        flex-direction: column;
    }
    .home-hero-btn {
        width: 100%;
        justify-content: center;
    }
    .home-servicios-v2,
    .home-zona-hzg-showcase,
    .home-galeria-showcase,
    .home-estadisticas-v2,
    .home-program-v2,
    .home-why-v2,
    .home-bienvenidos,
    .home-cta,
    .home-ubicacion,
    .home-enlaces-interes {
        padding: 2.5rem 0;
    }
    .home-servicios-cards {
        grid-template-columns: 1fr;
    }
    .home-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .home-stat-item {
        padding: 1.5rem 1rem;
    }
    .home-cards-grid {
        grid-template-columns: 1fr;
    }
    .home-cta-buttons {
        flex-direction: column;
    }
    .home-cta-btn {
        width: 100%;
        justify-content: center;
    }
    .home-inner {
        padding: 0 1.25rem;
    }
}
