:root {
    --emt-blue: #0072ce;
    --emt-blue-light: #00a3e0;
    --bexen-blue-dark: #0a2b6d;
    --bexen-purple: #7b3886;
    --bexen-purple-dark: #5f2a68;
    --navy: #061428;
    --navy-mid: #0d2247;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg-soft: #f4f7fb;
    --bg-card: #eef2f7;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(6, 20, 40, 0.08);
    --gradient-hero: linear-gradient(135deg, var(--navy) 0%, var(--bexen-blue-dark) 45%, var(--bexen-purple-dark) 100%);
    --gradient-btn: linear-gradient(135deg, var(--emt-blue) 0%, var(--bexen-purple) 100%);

    /* Motion — ajustar duraciones/distancias de animaciones (ver también landing.js CONFIG) */
    --motion-reveal-distance: 24px;
    --motion-reveal-duration: 0.55s;
    --motion-reveal-easing: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-highlight-duration: 1.2s;
    --motion-scroll-margin: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

html {
    scroll-behavior: auto;
}

html.motion-enabled {
    scroll-behavior: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Header ── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid rgba(10, 43, 109, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(6, 20, 40, 0.04);
}

.site-header__logo {
    height: 40px;
    width: auto;
}

.site-header__nav .nav-link {
    color: var(--bexen-blue-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    position: relative;
    transition: color 0.2s, background 0.2s;
}

.site-header__nav .nav-link:hover,
.site-header__nav .nav-link:focus {
    color: var(--bexen-purple);
    background: rgba(123, 56, 134, 0.06);
}

.site-header__nav .nav-link.is-active {
    color: var(--bexen-purple);
    background: rgba(123, 56, 134, 0.08);
}

.site-header__nav .nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 2px;
    background: var(--emt-blue);
}

.btn-lang {
    border: 1px solid rgba(10, 43, 109, 0.15);
    background: var(--white);
    color: var(--bexen-blue-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    min-width: 64px;
}

.btn-lang:hover,
.btn-lang:focus {
    border-color: var(--bexen-purple);
    color: var(--bexen-purple);
}

.site-header__toggler {
    border-color: rgba(10, 43, 109, 0.2);
}

/* ── Buttons ── */
.btn-primary-landing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary-landing:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 114, 206, 0.25);
}

.btn-primary-landing--solid {
    background: var(--gradient-btn);
    color: var(--white);
}

.btn-primary-landing--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-primary-landing--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-primary-landing--purple {
    background: var(--bexen-purple);
    color: var(--white);
}

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

/* Móvil: texto arriba, bus abajo */
.hero__visual {
    order: 2;
}

.hero__content {
    order: 1;
}

@media (min-width: 992px) {
    .hero__grid {
        position: relative;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        align-items: stretch;
        min-height: clamp(300px, 28vw, 400px);
    }

    .hero__grid::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            var(--navy) 0%,
            var(--bexen-blue-dark) 34%,
            rgba(10, 43, 109, 0.92) 44%,
            rgba(10, 43, 109, 0.72) 52%,
            rgba(10, 43, 109, 0.45) 60%,
            rgba(10, 43, 109, 0.22) 68%,
            rgba(10, 43, 109, 0.08) 76%,
            transparent 84%
        );
    }

    .hero__visual,
    .hero__content {
        grid-column: 1;
        grid-row: 1;
        order: unset;
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.25rem;
    color: var(--white);
    position: relative;
    z-index: 2;
    background: var(--gradient-hero);
}

@media (min-width: 992px) {
    .hero__content {
        width: clamp(520px, 54vw, 1040px);
        max-width: none;
        min-height: clamp(300px, 28vw, 400px);
        align-self: stretch;
        padding: 1.25rem 3rem 1.25rem max(1.25rem, calc((100vw - 1140px) / 2 + 0.75rem));
        background: transparent;
    }
}

@media (min-width: 1400px) {
    .hero__content {
        width: clamp(560px, 50vw, 1080px);
    }
}

.hero__title {
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 700;
    color: var(--emt-blue-light);
    margin-bottom: 0.75rem;
}

.hero__text {
    font-size: 0.95rem;
    opacity: 0.92;
    max-width: 100%;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

@media (min-width: 992px) {
    .hero__actions .btn-primary-landing {
        padding: 0.7rem 1.2rem;
        font-size: 0.88rem;
    }
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem 0;
    overflow: hidden;
    min-height: 0;
    z-index: 0;
    background: var(--navy);
}

@media (min-width: 992px) {
    .hero__visual {
        position: absolute;
        inset: 0;
        padding: 0;
        align-self: auto;
        min-height: 0;
    }
}

.hero__bus-video {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1448 / 573;
    object-fit: contain;
    object-position: center right;
    pointer-events: none;
}

@media (min-width: 992px) {
    .hero__bus-video {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        width: auto;
        height: 100%;
        max-width: min(78vw, 1200px);
        object-fit: contain;
        object-position: right center;
    }
}

@media (min-width: 1400px) {
    .hero__bus-video {
        max-width: min(75vw, 1280px);
    }
}

/* Cabecera H.264 — ajuste de gama / mezcla con overlay */
@keyframes bus-av-chroma {
    0% {
        transform: scale(1.03) translate(0, 0);
    }

    12% {
        transform: scale(1.03) translate(1px, -1.5px);
    }

    12.1% {
        transform: scale(1.03) translate(1px, -1.5px);
    }

    28% {
        transform: scale(1.03) translate(-1.5px, 1px);
    }

    44% {
        transform: scale(1.03) translate(2px, 0.5px);
    }

    44.1% {
        transform: scale(1.03) translate(2px, 0.5px);
    }

    61% {
        transform: scale(1.03) translate(-1px, 2px);
    }

    78% {
        transform: scale(1.03) translate(1.5px, -0.5px);
    }

    100% {
        transform: scale(1.03) translate(0, 0);
    }
}

@media (min-width: 992px) {
    .hero__grid:has(.hero__bus-video[data-codec="h264"])::before {
        background: linear-gradient(
            90deg,
            var(--navy) 0%,
            var(--bexen-blue-dark) 32%,
            rgba(10, 43, 109, 0.76) 42%,
            rgba(10, 43, 109, 0.52) 50%,
            rgba(10, 43, 109, 0.34) 57%,
            rgba(10, 43, 109, 0.2) 63%,
            rgba(10, 43, 109, 0.1) 69%,
            rgba(10, 43, 109, 0.04) 74%,
            transparent 78%
        );
    }
}

.hero__bus-video[data-codec="h264"] {
    filter: contrast(0.9) saturate(0.82) brightness(0.96);
}

@media (min-width: 992px) {
    .hero__bus-video[data-codec="h264"] {
        object-fit: cover;
        object-position: right center;
        max-width: min(80vw, 1260px);
        transform-origin: center right;
        animation: bus-av-chroma 4.2s steps(7, end) infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__bus-video[data-codec="h264"] {
        animation: none;
    }
}

/* ── Sections common ── */
.section {
    padding: 4rem 0;
}

.section--soft {
    background: var(--bg-soft);
}

.section--intro {
    background: var(--white);
}

/* ── Segunda parte (intro split + carrusel) ── */
.intro-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

#el-proyecto .intro-split__text {
    text-align: justify;
    text-justify: inter-word;
}

@media (min-width: 992px) {
    .intro-split {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
}

.intro-split__text p {
    margin: 0 0 1.25rem;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
}

.intro-split__text p:last-child {
    margin-bottom: 0;
}

.intro-carousel {
    position: relative;
    width: 100%;
}

.intro-carousel--single .intro-carousel__controls {
    display: none;
}

.intro-carousel__viewport {
    position: relative;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, var(--navy-mid) 0%, var(--bexen-purple-dark) 100%);
}

.intro-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.intro-carousel__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: translateX(10%) scale(0.96);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.intro-carousel__slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    z-index: 2;
}

.intro-carousel__slide.is-leaving {
    opacity: 0;
    transform: translateX(-10%) scale(0.96);
    z-index: 1;
}

.intro-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.intro-carousel__slide--contain img {
    object-fit: contain;
    object-position: center center;
    background: var(--white);
}

.intro-carousel__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    background:
        linear-gradient(135deg, rgba(0, 114, 206, 0.35) 0%, rgba(123, 56, 134, 0.4) 100%),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.04) 0,
            rgba(255, 255, 255, 0.04) 2px,
            transparent 2px,
            transparent 10px
        );
}

.intro-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.intro-carousel__btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--bexen-blue-dark);
    background: var(--bg-soft);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.intro-carousel__btn:hover {
    background: var(--emt-blue);
    color: var(--white);
}

.intro-carousel__btn:focus-visible {
    outline: 2px solid var(--emt-blue);
    outline-offset: 2px;
}

.intro-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.intro-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(10, 43, 109, 0.2);
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.intro-carousel__dot.is-active {
    width: 1.75rem;
    background: linear-gradient(90deg, var(--emt-blue), var(--bexen-purple));
}

.intro-carousel__dot:focus-visible {
    outline: 2px solid var(--emt-blue);
    outline-offset: 2px;
}

html.motion-reduced .intro-carousel__slide {
    transition: none;
}

.section__title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--bexen-blue-dark);
    margin-bottom: 2.5rem;
}

.section__title span {
    color: var(--bexen-purple);
}

.section-placeholder {
    max-width: 36rem;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    text-align: center;
    background: var(--white);
    border: 2px dashed rgba(10, 43, 109, 0.15);
    border-radius: var(--radius);
}

.section--placeholder .section-placeholder {
    background: var(--bg-card);
}

.section-placeholder__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Anclas: margen para header fijo (fallback si JS no carga) */
section[id] {
    scroll-margin-top: var(--motion-scroll-margin);
}

/* ── Features (cardio-protegido) ── */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: 1fr 300px;
        gap: 2.5rem;
    }
}

.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .feature-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 0.5rem 0.75rem;
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--emt-blue);
    background: rgba(0, 114, 206, 0.1);
    border: 2px solid rgba(123, 56, 134, 0.15);
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--bexen-blue-dark);
    margin-bottom: 0.5rem;
}

.feature-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(10, 43, 109, 0.06);
}

.project-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--bexen-blue-dark);
    margin-bottom: 1.25rem;
}

.project-card__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-card__logos img {
    max-height: 42px;
    width: auto;
}

/* ── Cadena de supervivencia (cómo actuar) ── */
.section__intro {
    text-align: center;
    max-width: 42rem;
    margin: -1.5rem auto 2.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.survival-chain {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .survival-chain {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (min-width: 1200px) {
    .survival-chain {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

.survival-chain__step {
    text-align: center;
    padding: 0 0.5rem;
}

.survival-chain__num {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emt-blue);
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
}

.survival-chain__media {
    width: min(200px, 80vw);
    margin: 0 auto 1.35rem;
}

.survival-chain__media img {
    display: block;
    width: 100%;
    height: auto;
}

.survival-chain__title {
    font-size: clamp(0.92rem, 1.6vw, 1.02rem);
    font-weight: 800;
    color: var(--bexen-blue-dark);
    margin: 0 0 0.45rem;
    line-height: 1.35;
}

.survival-chain__subtitle {
    font-size: 0.88rem;
    color: #5a7a9a;
    margin: 0;
    line-height: 1.45;
}

.steps-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .steps-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.step-card {
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}

.step-card:not(:last-child)::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    position: absolute;
    right: -0.6rem;
    top: 1.6rem;
    color: #cbd5e1;
    font-size: 1rem;
    display: none;
}

@media (min-width: 768px) {
    .step-card:not(:last-child)::after {
        display: block;
    }
}

.step-card__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: var(--white);
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.step-card__icon {
    font-size: 2rem;
    color: var(--emt-blue);
    margin-bottom: 0.75rem;
    display: block;
}

.step-card__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bexen-blue-dark);
    margin-bottom: 0.35rem;
}

.step-card__text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Video + resources ── */
.action-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .action-block {
        grid-template-columns: 1fr 1fr;
    }
}

.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 10;
    background: var(--navy-mid);
}

.video-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    min-height: 100%;
    color: rgba(255, 255, 255, 0.9);
    background:
        linear-gradient(145deg, rgba(0, 114, 206, 0.5) 0%, rgba(123, 56, 134, 0.55) 100%),
        var(--navy-mid);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    padding: 1.5rem;
}

.video-card__placeholder i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(6, 20, 40, 0.35);
    color: var(--white);
    font-size: 4rem;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.video-card__play:hover {
    background: rgba(123, 56, 134, 0.45);
    color: var(--white);
}

/* Modal vídeo formativo */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.video-modal[hidden] {
    display: none !important;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 40, 0.82);
    backdrop-filter: blur(4px);
}

.video-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    background: var(--navy);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.video-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.video-modal__body {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-modal__player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.video-modal__player[hidden],
.video-modal__pending[hidden] {
    display: none !important;
}

.video-modal__pending {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.video-card__content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bexen-blue-dark);
    margin-bottom: 0.75rem;
}

.video-card__content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.resource-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .resource-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .resource-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.resource-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem;
    background: var(--white);
    border: 1px solid rgba(10, 43, 109, 0.08);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    min-height: 100%;
}

.resource-card:hover {
    border-color: rgba(123, 56, 134, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.resource-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--bexen-purple);
    background: rgba(123, 56, 134, 0.1);
}

.resource-card__title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--bexen-blue-dark);
    margin-bottom: 0.25rem;
}

.resource-card__text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.resource-card__arrow {
    margin-left: auto;
    color: var(--emt-blue);
    align-self: center;
}

/* ── Desfibrilador section ── */
.defib-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
}

.defib-highlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(10, 43, 109, 0.06);
}

@media (min-width: 992px) {
    .defib-highlight {
        grid-template-columns: 1fr 1fr;
        padding: 2.5rem;
    }
}

.defib-highlight__badge {
    display: inline-block;
    background: rgba(123, 56, 134, 0.12);
    color: var(--bexen-purple);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.defib-highlight h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bexen-blue-dark);
    margin-bottom: 1rem;
}

.defib-highlight p {
    color: var(--text-muted);
}

.defib-highlight__img {
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 2rem;
    text-align: center;
}

.defib-highlight__img img {
    max-height: 280px;
    margin: 0 auto;
}

.defib-highlight__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 240px;
    padding: 2rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px dashed rgba(10, 43, 109, 0.15);
    border-radius: var(--radius);
    background: var(--white);
}

.defib-highlight__placeholder i {
    font-size: 2.5rem;
    color: var(--bexen-purple);
    opacity: 0.7;
}

/* ── Press Kit ── */
.press-kit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .press-kit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.press-kit-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
    min-height: 220px;
    background: var(--white);
    border: 1px solid rgba(10, 43, 109, 0.08);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: 0 4px 24px rgba(6, 20, 40, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    color: inherit;
}

a.press-kit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(123, 56, 134, 0.3);
    color: inherit;
}

.press-kit-card--pending {
    opacity: 0.92;
    cursor: default;
}

button.press-kit-card {
    width: 100%;
    border: 1px solid rgba(10, 43, 109, 0.08);
    background: var(--white);
    text-align: left;
    font: inherit;
}

button.press-kit-card:not(.press-kit-card--pending) {
    cursor: pointer;
}

button.press-kit-card:not(.press-kit-card--pending):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(123, 56, 134, 0.3);
}

.press-kit-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--emt-blue);
    background: linear-gradient(135deg, rgba(0, 114, 206, 0.12) 0%, rgba(123, 56, 134, 0.12) 100%);
}

.press-kit-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.press-kit-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bexen-blue-dark);
    margin-bottom: 0.5rem;
}

.press-kit-card__text {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.55;
    flex: 1;
}

.press-kit-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bexen-purple);
}

.press-kit-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.press-kit-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
}

a.press-kit-card__btn {
    text-decoration: none;
    color: var(--white);
}

a.press-kit-card__btn:hover {
    color: var(--white);
}

.press-kit-card__actions .btn-primary-landing--solid {
    border: none;
}

.press-kit-card__btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.press-kit-card--pending .press-kit-card__action {
    color: var(--text-muted);
}

/* Press Kit — modal explorador de archivos */
.press-browse-modal {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.press-browse-modal[hidden] {
    display: none !important;
}

.press-browse-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.press-browse-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    max-height: min(90vh, 820px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.press-browse-modal__header {
    color: var(--bexen-blue-dark);
}

.press-browse-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    padding-right: 2rem;
}

.press-browse-modal__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.press-browse-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #6b7280;
    cursor: pointer;
}

.press-browse-modal__intro {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.press-browse-modal__empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.press-browse-modal__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.press-browse-modal__sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.press-file-group {
    padding: 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(10, 43, 109, 0.08);
}

.press-file-group--1 {
    background: #eef4fb;
}

.press-file-group--2 {
    background: #f3f0f7;
}

/* Miniaturas en zona «Para fondos oscuros»: fondo azul corporativo (no blanco ni negro puro). */
.press-file-group--2 .press-file-card__thumb {
    background: var(--bexen-blue-dark);
    border-color: rgba(255, 255, 255, 0.14);
}

.press-file-group--2 .press-file-card__thumb .bi {
    color: rgba(255, 255, 255, 0.88);
}

.press-file-group__label {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bexen-blue-dark);
}

.press-file-group__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.press-file-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px solid rgba(10, 43, 109, 0.1);
    border-radius: 14px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.press-file-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 114, 206, 0.35);
    box-shadow: 0 10px 28px rgba(6, 20, 40, 0.08);
    color: inherit;
}

.press-file-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(10, 43, 109, 0.08);
    overflow: hidden;
}

.press-file-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

.press-file-card__thumb .bi {
    font-size: 2.75rem;
    color: var(--emt-blue);
}

.press-file-card__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bexen-blue-dark);
    word-break: break-word;
    line-height: 1.35;
}

.press-file-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.press-file-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--emt-blue);
}

@media (max-width: 767px) {
    .press-browse-modal__grid,
    .press-file-group__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .press-browse-modal__grid,
    .press-file-group__grid {
        grid-template-columns: 1fr;
    }
}

/* ── Footer ── */
.site-footer {
    background: var(--bexen-blue-dark);
    color: rgba(255, 255, 255, 0.92);
    padding: 2.75rem 0 2rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    text-align: center;
}

@media (min-width: 992px) {
    .site-footer__grid {
        grid-template-columns:
            minmax(150px, 1fr)
            minmax(180px, 1.25fr)
            minmax(150px, 1fr)
            minmax(120px, 0.95fr)
            minmax(110px, 0.85fr);
        text-align: left;
        gap: 1.75rem 2rem;
        align-items: center;
    }

    .site-footer__social {
        text-align: center;
    }

    .site-footer__social-links {
        justify-content: center;
    }

    .site-footer__partner {
        display: flex;
        justify-content: flex-end;
    }
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.site-footer__logo {
    width: min(100%, 220px);
    height: auto;
    display: block;
}

.site-footer__claim {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    text-align: center;
    width: min(100%, 220px);
}

.site-footer__address,
.site-footer__digital {
    margin: 0;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.65;
}

.site-footer__line {
    margin: 0 0 0.35rem;
}

.site-footer__line:last-child {
    margin-bottom: 0;
}

.site-footer__digital a,
.site-footer__address a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__digital a:hover,
.site-footer__address a:hover {
    color: var(--white);
    text-decoration: underline;
}

.site-footer__partner-logo {
    width: min(100%, 160px);
    height: auto;
    display: block;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .site-footer__partner-logo {
        margin-inline: 0 0;
        margin-left: auto;
    }
}

.site-footer__social {
    text-align: center;
}

.site-footer__social-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.85rem;
}

.site-footer__social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.site-footer__social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.site-footer__social-links a:hover {
    background: var(--bexen-purple);
    border-color: var(--bexen-purple);
    color: var(--white);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s ease;
}

.site-footer__legal a:hover {
    color: var(--white);
}

.site-footer__legal-sep {
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}

/* ── Motion (navegación y reveals) ── */
.motion-reveal {
    opacity: 0;
    transform: translateY(var(--motion-reveal-distance));
    transition:
        opacity var(--motion-reveal-duration) var(--motion-reveal-easing),
        transform var(--motion-reveal-duration) var(--motion-reveal-easing);
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform;
}

.motion-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.section__title {
    position: relative;
}

.section__title.section__title--arrived::before {
    content: "";
    position: absolute;
    inset: -0.75rem -1.25rem;
    z-index: -1;
    border-radius: 12px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 114, 206, 0.22) 0%,
        rgba(123, 56, 134, 0.08) 45%,
        transparent 72%
    );
    animation: motion-title-glow var(--motion-highlight-duration) ease-out;
    pointer-events: none;
}

.section__title.section__title--arrived span {
    display: inline-block;
    animation: motion-title-accent var(--motion-highlight-duration) ease-out;
}

@keyframes motion-title-glow {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.96);
    }
    35% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes motion-title-accent {
    0%,
    100% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .section__title.section__title--arrived::before,
    .section__title.section__title--arrived span {
        animation: none !important;
    }
}

html.motion-reduced .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ——— Contacto ——— */
.section--contact {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.contact-section__intro {
    max-width: 820px;
    margin: 0 auto 2rem;
    text-align: center;
}

.contact-panel {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(2, 63, 136, 0.08);
}

.contact-panel__limit {
    text-align: center;
    padding: 2rem 1rem;
    color: #023f88;
    font-weight: 600;
}

.contact-form__label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.35rem;
}

.contact-form__optional-title {
    margin: 0.5rem 0 0;
    font-weight: 700;
    color: #6b7280;
    font-size: 0.95rem;
}

.contact-form__textarea {
    min-height: 120px;
    max-height: 180px;
    resize: vertical;
}

.contact-form__counter {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: right;
}

.contact-form__privacy a {
    color: #023f88;
    font-weight: 600;
}

.contact-form__recaptcha-note {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.contact-form__recaptcha-note a {
    color: #023f88;
}

.contact-panel__limit[hidden] {
    display: none !important;
}

.contact-form[hidden] {
    display: none !important;
}

.section--contact[hidden] {
    display: none !important;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 9.5rem;
}

.contact-form__submit:disabled {
    opacity: 0.88;
    cursor: not-allowed;
}

.contact-form__submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form__spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-spin 0.7s linear infinite;
}

@keyframes contact-spin {
    to { transform: rotate(360deg); }
}

.contact-form__error {
    color: #b42318;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.contact-success-modal[hidden] {
    display: none !important;
}

.contact-success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.contact-success-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-success-modal__dialog h2 {
    color: #023f88;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.contact-success-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #6b7280;
    cursor: pointer;
}

@media (max-width: 767px) {
    .contact-panel {
        padding: 1.25rem;
    }
}
