/* ------------------------------
   ESTILO GLOBAL
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

body {
    background: #f5f7fa;
    color: #2a2a2a;
    line-height: 1.7;
}

/* ------------------------------
   ENCABEZADO
--------------------------------*/
header {
    background: linear-gradient(135deg, #004aad, #012a64);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ------------------------------
   MENÚ DE NAVEGACIÓN
--------------------------------*/
nav {
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    text-decoration: none;
    color: #004aad;
    font-weight: 600;
    padding-bottom: 4px;
    transition: 0.3s;
}

nav a:hover {
    color: #012a64;
    border-bottom: 2px solid #012a64;
}

nav a.active {
    border-bottom: 3px solid #004aad;
    color: #00357c;
}

/* ------------------------------
   CONTENEDOR PRINCIPAL
--------------------------------*/
main {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

/* ------------------------------
   TARJETAS DE CONTENIDO
--------------------------------*/
.card {
    background: white;
    padding: 35px;
    margin-bottom: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.10);
}

h2 {
    font-size: 1.8rem;
    color: #003b8a;
    margin-bottom: 18px;
}

/* ------------------------------
   LISTAS
--------------------------------*/
ul, ol {
    margin-left: 25px;
    margin-top: 10px;
}

li {
    margin-bottom: 8px;
}

/* ------------------------------
   TABLAS
--------------------------------*/
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}

table th {
    background: #004aad;
    color: white;
    padding: 12px;
    text-align: center;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

table tr:hover {
    background: #f1f5ff;
}

/* ------------------------------
   FORMULARIOS
--------------------------------*/
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input, textarea {
    padding: 12px;
    border: 1px solid #b5b5b5;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

input:focus, textarea:focus {
    border-color: #004aad;
    box-shadow: 0 0 6px rgba(0,74,173,0.3);
}

button {
    background: #004aad;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}

button:hover {
    background: #013570;
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
    background: #012a64;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    font-size: 0.95rem;
}

/* ------------------------------
   RESPONSIVE DESIGN
--------------------------------*/
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    nav {
        flex-wrap: wrap;
        gap: 20px;
        padding: 12px;
    }
    .card {
        padding: 25px;
    }
}
