@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    background-color: #003366;
    font-family: 'Alata', sans-serif;
    color: #FFCC66;
    display: flex;              /* Para distribución en columna */
    flex-direction: column;     
    align-items: center;        /* Centra horizontalmente el contenido */
    /* overflow-y: auto;       Si lo deseas, puedes forzar scroll vertical */
}

/* HEADER */
header {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SECCIÓN CENTRAL (logo y texto destacado) */
.central {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: -80px; /* Ajusta la posición para superponer con el banner */
}

.central .logo {
    width: 140px;
    max-width: 100%;
    height: auto;
}

/* Texto corporativo (segunda imagen dentro de .central) */
.central img:nth-child(2) {
    width: 220px;
    margin-top: 10px;
}

.central .informativo {
    background-color: #FFCC66;
    color: #003366;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 15px;
}

/* TEXTO introductorio de contacto */
.text {
    text-align: center;
    font-size: 22px;
    margin-top: -30px;
    padding: 0 20px; /* Para evitar que el texto choque con los bordes en móviles */
    color: #FFCC66;
}

/* SECCIÓN CONTACTO (íconos y texto) */
.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap; /* Para reorganizar íconos en varias filas en pantallas pequeñas */
}

.contact a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #FFCC66;
    font-size: 18px;
    font-weight: bold;
}

.contact a img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

.contact a img:hover {
    transform: scale(1.1);
}

/* PIE DE PÁGINA */
footer {
    /* Alineamos en dos “columnas”: QR a la izquierda, rigth_footer a la derecha */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Alinea la parte superior del QR con el bloque derecho */
    justify-content: center; /* Centra en pantallas grandes */
    gap: 40px;
    padding: 20px;
    margin-top: 30px;

    /* Evita que el footer se encoja si la pantalla es más pequeña */
    flex-shrink: 0;
}

footer img {
    /* Ajustar el tamaño del QR para que destaque */
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Contenedor derecho del footer */
.rigth_footer {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacio entre texto y redes sociales */
}

/* Texto encima de las redes sociales */
.footer_text p {
    color: #FFCC66;
    text-align: center;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Redes sociales en fila (horizontal) */
.redes_sociales {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}

.red_social img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease-in-out;
}

.red_social img:hover {
    transform: scale(1.1);
}

/* MEDIA QUERIES para diseño responsive */
@media (max-width: 768px) {
    header {
        height: 200px;
    }
    .central {
        top: -60px;
    }
    .central .logo {
        width: 100px;
    }
    .central img:nth-child(2) {
        width: 180px;
    }
    .central .informativo {
        font-size: 16px;
        padding: 8px 20px;
    }
    .text {
        font-size: 18px;
        margin-top: -20px;
    }
    .contact a {
        font-size: 16px;
    }
    .contact a img {
        width: 60px;
        height: 60px;
    }
    footer img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .text {
        font-size: 16px;
        padding: 0 10px;
    }
    .central .informativo {
        font-size: 14px;
        padding: 6px 15px;
    }
    .contact {
        gap: 16px;
    }
    .contact a {
        font-size: 14px;
    }
    .contact a img {
        width: 50px;
        height: 50px;
    }
    footer img {
        width: 100px;
        height: 100px;
    }
    .rigth_footer {
        gap: 15px;
        align-items: center; /* Centra el bloque derecho en pantallas pequeñas */
    }
    .redes_sociales {
        gap: 10px;
    }
}
