/* Estilos base para todo el cuerpo */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f4f8;
    margin: 0;
    padding: 0;
    color: #222;
}

/* Encabezado */
.header {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Logo */
.logo {
    width: 120px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Título principal */
h1 {
    font-size: 2rem;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.13);
}

/* Menú de navegación */
.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

/* Pseudoclase hover y focus */
.nav-menu a:hover,
.nav-menu a:focus {
    background: #ffcc00;
    color: #004080;
    outline: none;
}

/* Sección bienvenida */
.bienvenida {
    background: #fff;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-align: center;
    position: relative;
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
}

/* Animación fadeIn */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Título h2 en bienvenida */
.bienvenida h2 {
    color: #004080;
    margin-bottom: 1rem;
}

/* Botón explorar */
.btn-explorar {
    background: #004080;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s, transform 0.2s;
}

/* Hover botón */
.btn-explorar:hover {
    background: #ffcc00;
    color: #004080;
    transform: scale(1.05);
}

/* Contenido multimedia */
.contenido-multimedia {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-align: center;
}

/* Imagen con posicionamiento relativo */
.imagen-relativa {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Video con estilos */
.video-estilo {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Pie de página */
.footer {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
    }

    .imagen-relativa,
    .video-estilo {
        max-width: 100%;
    }
}