/*==================================================
    BASE — reset, variables de diseño, tipografía
==================================================*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Color institucional — paleta exclusiva azul / blanco / verde.
       El azul transmite confianza y conocimiento; el verde (antes
       reservado a "éxito") ahora es también el acento principal de la
       marca (botones, enlaces activos, indicadores); el blanco domina
       como fondo de lectura. El rojo se mantiene únicamente como señal
       funcional de error/urgencia, no como color de marca. */
    --color-primary: #002347;
    --color-primary-light: #3399ff;
    --color-primary-gradient: linear-gradient(145deg, #002347, #3399ff);
    --color-accent: #157347;
    --color-accent-gradient: linear-gradient(135deg, #22b573, #0f5c38);
    --color-secondary: #2f9e5c;
    --color-secondary-gradient: linear-gradient(135deg, #3ab068, #1f7a4d);

    --color-text: #1a1a1a;
    --color-text-muted: #5b6672;
    --color-text-on-dark: rgba(255, 255, 255, 0.92);
    --color-text-on-dark-muted: rgba(255, 255, 255, 0.75);

    --color-background: #ffffff;
    --color-surface: #f7f9fc;
    --color-surface-dark: #0d2b4d;
    --color-border: #e5e9ef;

    --color-success: #238a53;
    --color-success-bg: rgba(58, 176, 104, .12);
    --color-danger: #c0392b;
    --color-danger-bg: rgba(192, 57, 43, .1);

    /* Tipografía */
    --font-body: 'Mukta', sans-serif;
    --font-heading: 'Kanit', sans-serif;

    /* Radios */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-full: 999px;

    /* Sombras */
    --shadow-sm: 0 6px 18px rgba(0, 15, 40, .06);
    --shadow-md: 0 16px 35px rgba(0, 15, 40, .10);
    --shadow-lg: 0 30px 60px rgba(0, 15, 40, .16);

    /* Espaciado */
    --space-1: .5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;

    /* Layout */
    --content-width: min(1200px, 92%);
    --header-height: 78px;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Los carruseles infinitos no deben "saltar" a su cuadro final:
       se detienen por completo en lugar de comprimir su recorrido. */
    .partners-track {
        animation: none !important;
        transform: none !important;
    }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

p {
    margin: 0 0 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

ul, ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

figure {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/*==================================================
    ACCESIBILIDAD
==================================================*/

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 10000;
    background: var(--color-primary);
    color: #fff;
    padding: .8rem 1.4rem;
    border-radius: var(--radius-sm);
    transition: top .25s ease;
}

.skip-link:focus {
    top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*==================================================
    UTILIDADES
==================================================*/

.section {
    padding: var(--space-8) 0;
}

.section--tight {
    padding: var(--space-6) 0;
}

.container {
    width: var(--content-width);
    margin-inline: auto;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eyebrow {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .85rem;
    margin-bottom: var(--space-2);
}

.section-header {
    max-width: 720px;
    margin: 0 auto var(--space-6);
    text-align: center;
}

.section-header p {
    margin-top: var(--space-2);
}

.section-header--accent::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: var(--space-2) auto 0;
    border-radius: var(--radius-full);
    background: var(--color-accent-gradient);
}

@media (max-width: 720px) {
    .section {
        padding: var(--space-6) 0;
    }

    h1 {
        font-size: 2rem;
    }
}
