/* ----- ESTILOS GENERALES ----- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.imgcentrada {align-content: center;}

.subtitulo {text-align: center;}

header {
    background: #004aad;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
}

/* ----- MENÚ ----- */
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

nav ul li {
    display: inline-block;
    margin-right: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.active,
nav ul li a:hover {
    text-decoration: underline;
}

/* ----- BOTÓN MENÚ MÓVIL ----- */
.menu-btn {
    display: none;
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* ----- HERO ----- */
.hero {
    background: linear-gradient(135deg, #007BFF, #00BFFF);
    color: white;
    padding: 60px 20px;
    text-align: center;
    animation: fadeIn 2s ease-in;
}

/* ----- SOBRE ----- */
.sobre {
    background: white;
    margin: 30px auto;
    padding: 20px;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.sobre img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ----- BOTONES ----- */
.btn {
    background: #007BFF;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
}

.btn:hover {
    background: #0056b3;
}

/* ----- FORMULARIO ----- */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* ----- FOOTER ----- */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

/* ----- ANIMACIÓN ----- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   RESPONSIVE DESIGN - MÓVILES Y TABLETS
   ========================================================== */
@media (max-width: 768px) {

    /* Mostrar botón menú */
    .menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #003b8e;
        padding: 15px 0;
        margin-top: 20px;
    }

    nav show {
        display: flex;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 18px;
    }

    header h1 {
        font-size: 22px;
        padding: 0 10px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .sobre {
        margin: 10px;
        padding: 15px;
    }

    .sobre p {
        font-size: 16px;
    }
}

/* Muy pantallas pequeñas */
@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    .hero h2 {
        font-size: 20px;
    }

    nav ul li a {
        font-size: 16px;
    }
}
