/* ------------------------------
   CONFIGURACIÓN GENERAL
------------------------------ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f8;
    color: #222;
    line-height: 1.6;
}


/* ------------------------------
   ENCABEZADO
------------------------------ */

header {
    background-color: #172554;
    color: white;
    padding: 25px 50px;
    text-align: center;
}

header h1 {
    margin-bottom: 20px;
    font-size: 32px;
}


/* ------------------------------
   MENÚ DE NAVEGACIÓN
------------------------------ */

nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    transition: 0.3s;
}

nav a:hover {
    background-color: #2563eb;
}


/* ------------------------------
   CONTENEDOR PRINCIPAL
------------------------------ */

main {
    min-height: 75vh;
}


/* ------------------------------
   SECCIÓN PRINCIPAL
------------------------------ */

.hero {
    background-color: #2563eb;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 19px;
    max-width: 700px;
    margin: auto;
}


/* ------------------------------
   CONTENIDO
------------------------------ */

.contenido {
    max-width: 1100px;
    margin: auto;
    padding: 50px 20px;
}

.contenido h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 30px;
}


/* ------------------------------
   TARJETAS
------------------------------ */

.tarjetas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.tarjeta {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tarjeta h3 {
    color: #172554;
    margin-bottom: 12px;
    font-size: 23px;
}

.tarjeta p {
    margin-bottom: 20px;
}


/* ------------------------------
   PÁGINAS INTERNAS
------------------------------ */

.pagina {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pagina h2 {
    color: #172554;
    font-size: 34px;
    margin-bottom: 25px;
}

.pagina h3 {
    color: #2563eb;
    margin-top: 25px;
    margin-bottom: 10px;
}

.pagina p {
    margin-bottom: 15px;
}


/* ------------------------------
   LISTAS
------------------------------ */

.pagina ul {
    margin: 20px 0 20px 30px;
}

.pagina li {
    margin-bottom: 10px;
}


/* ------------------------------
   ETAPAS Y PROTOCOLOS
------------------------------ */

.etapa,
.protocolo {
    background-color: #f1f5f9;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #2563eb;
    border-radius: 5px;
}

.etapa h3,
.protocolo h3 {
    margin-top: 0;
}


/* ------------------------------
   BOTONES
------------------------------ */

.boton {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.boton:hover {
    background-color: #172554;
}

.volver {
    margin-top: 30px;
}


/* ------------------------------
   PIE DE PÁGINA
------------------------------ */

footer {
    background-color: #172554;
    color: white;
    text-align: center;
    padding: 20px;
}


/* ------------------------------
   DISEÑO RESPONSIVO
------------------------------ */

@media (max-width: 700px) {

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 25px;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        display: block;
    }

    .hero h2 {
        font-size: 30px;
    }

    .tarjetas {
        grid-template-columns: 1fr;
    }

    .pagina {
        margin: 25px 15px;
        padding: 25px;
    }

}