
/* ========================================
   ESTILOS GENERALES
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #294256;
    background: linear-gradient(135deg, #edf8ff, #f8fbff, #e2f3fc);
    line-height: 1.7;
}

/* ========================================
   MENÚ DE NAVEGACIÓN
======================================== */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(120deg, #073b5b, #075985, #087eaa);
    border-bottom: 3px solid #38bdf8;
    box-shadow: 0 5px 18px rgba(7, 59, 91, 0.18);
}

nav a {
    display: inline-block;
    padding: 10px 19px;
    color: #f0f9ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: all 0.25s ease;
}

nav a:hover {
    color: #075985;
    background: #ffffff;
    border-color: #bae6fd;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   TÍTULO PRINCIPAL
======================================== */

body > h1 {
    width: min(1100px, calc(100% - 36px));
    margin: 45px auto 20px;
    color: #075985;
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -1px;
}

/* ========================================
   SUBTÍTULOS
======================================== */

body > h2 {
    width: min(1050px, calc(100% - 36px));
    margin: 35px auto 15px;
    color: #075985;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 750;
    line-height: 1.35;
}

/* ========================================
   TARJETA DE CADA CLASIFICACIÓN
======================================== */

section {
    width: min(1050px, calc(100% - 36px));
    margin: 20px auto 30px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dcebf5;
    border-left: 6px solid #159bd0;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(25, 76, 108, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

section:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 30px rgba(25, 76, 108, 0.13);
}

section h2 {
    margin: 0 0 12px;
    color: #0879b4;
    font-size: 1.5rem;
    line-height: 1.35;
}

section p {
    margin: 0;
    color: #506779;
}

/* ========================================
   PÁRRAFOS INFORMATIVOS
======================================== */

body > p {
    width: min(1050px, calc(100% - 36px));
    margin: 12px auto 20px;
    padding: 22px 25px;
    color: #506779;
    background: #ffffff;
    border: 1px solid #dcebf5;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(25, 76, 108, 0.06);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

body > p:hover {
    border-color: #8bd4f5;
    transform: translateY(-2px);
}

body > p strong {
    display: inline-block;
    margin-bottom: 4px;
    color: #075985;
    font-size: 1.04rem;
}

/* ========================================
   SEPARACIÓN ENTRE SECCIONES
======================================== */

body > h2 + p {
    margin-top: 10px;
}

body > h2:last-of-type {
    margin-bottom: 15px;
}

/* ========================================
   DISEÑO RESPONSIVO
======================================== */

@media (max-width: 700px) {
    nav {
        position: relative;
        gap: 8px;
        padding: 12px 10px;
    }

    nav a {
        flex: 1 1 140px;
        padding: 10px;
        font-size: 13px;
        text-align: center;
    }

    body > h1 {
        margin-top: 30px;
    }

    body > h2 {
        margin-top: 27px;
    }

    section {
        padding: 21px 18px;
    }

    section h2 {
        font-size: 1.3rem;
    }

    body > p {
        padding: 18px;
    }
}

/* ========================================
   ACCESIBILIDAD
======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
