/* Fondo uniforme */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e0f7fa; /* Fondo celeste uniforme */
    color: #333;
    scroll-behavior: smooth;
}

/* Header decorado */
header.hero {
    background: linear-gradient(135deg, #0d47a1, #42a5f5);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

header.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px black;
}

/* Menú mejorado */
nav {
    background-color: #0d47a1;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
}

nav a:hover {
    background-color: #42a5f5;
    transition: background-color 0.3s;
}

/* Secciones decoradas */
.contenido {
    max-width: 1000px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: transform 0.4s;
}

.contenido:hover {
    transform: scale(1.02);
}

.contenido h2 {
    color: #0d47a1;
    margin-bottom: 15px;
    text-align: center;
}

.contenido img {
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 3px solid #0d47a1;
    transition: transform 0.5s;
}

.contenido img:hover {
    transform: scale(1.05);
}

/* Animaciones */
.fade-in {
    animation: fade 1.5s ease-in;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slide 1.5s ease-in-out;
}

@keyframes slide {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Botón animado */
.btn-accion {
    background-color: #1976d2;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.4s;
}

.btn-accion:hover {
    background-color: #0d47a1;
    transform: scale(1.1);
}

/* Footer elegante */
footer {
    background-color: #0d47a1;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 4px solid #42a5f5;
}

footer .redes a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
}

footer .redes a:hover {
    color: #ffd600;
}
