/* Configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f4f8;
    color: #263445;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Encabezado */
header {
    background: linear-gradient(135deg, #142d4e, #2878b5);
    color: white;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

header hr {
    display: none;
}

/* Menú de navegación */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    transition: 0.3s;
    font-weight: 500;
}

nav a:hover {
    background: white;
    color: #1d5d91;
    transform: translateY(-2px);
}

/* Contenido principal - AMPLIADO PARA OCUPAR MÁS ESPACIO */
main {
    width: 95%;          /* Ocupa el 95% de la pantalla */
    max-width: 1400px;   /* Aumentado para pantallas grandes (puedes poner 'none' si quieres que sea 100%) */
    margin: 25px auto;
    flex: 1;
}

section {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(30, 60, 90, 0.08);
    border-top: 5px solid #2878b5;
}

section h2 {
    color: #174a75;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

section p {
    margin-bottom: 20px;
    color: #526274;
}

section hr {
    border: none;
    border-top: 1px solid #dce5ed;
    margin: 25px 0;
}

/* Enlaces de prácticas */
section a {
    display: inline-block;
    background: #2878b5;
    color: white;
    text-decoration: none;
    padding: 11px 22px;
    margin: 5px 8px 5px 0;
    border-radius: 8px;
    transition: 0.3s;
}

section a:hover {
    background: #174a75;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(40, 120, 181, 0.25);
}

/* Pie de página */
footer {
    background: #142d4e;
    color: #e6edf5;
    text-align: center;
    padding: 25px 15px;
    margin-top: auto;
}

footer hr {
    display: none;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #82ccff;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Contenedor del menú desplegable */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: transparent;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.dropbtn:hover {
    background: white;
    color: #1d5d91;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 1000;
    padding-top: 5px;
}

.dropdown-content a {
    display: block;
    color: #263445;
    padding: 12px 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background: #e8f3fc;
    color: #1d5d91;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:focus-within .dropdown-content {
    display: block;
}

/* Ajustes del visor (iframe) para que aproveche el espacio */
#contenido iframe {
    display: block;
    width: 100%;
    height: 750px;       /* Altura aumentada para que no corte verticalmente tu tabla */
    margin-top: 25px;
    border: none;
    border-radius: 10px;
    background: white;
}