
#construction-banner {
    background-color: #ffc107; /* Un color dorado/amarillo que encaja con tu web */
    color: #333;
    text-align: center;
    padding: 15px 10px;
    font-size: 1rem;
    font-weight: bold;
    position: fixed; /* Lo fija en la parte superior */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Se asegura de que esté por encima de todo */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* Transición suave para la opacidad */
    transition: opacity 1s ease-in-out; 
}

/* Clase que usaremos con JavaScript para ocultarlo */
.banner-hidden {
    opacity: 0;
    /* Hacemos que no se pueda interactuar con él cuando es invisible */
    pointer-events: none; 
}


html,body{
    width: 100%;
    padding: 0;
    margin: 0;
    /* ESTA LÍNEA ES ESENCIAL Y NO CAMBIA EL DISEÑO */
    box-sizing: border-box;
    /* ESTA LÍNEA EVITA QUE LA WEB "SE CORTE" EN MÓVIL */
    overflow-x: hidden;
}

header{
    display: flex;
    flex-direction: column;
}

.barra{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.barra a{
    color: black;
    background-color: rgb(247, 243, 243);
    font-size: 35px;
    text-decoration: none;
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.titulo{
    grid-area: titulo;
    margin-left: 10px;
}

.logo{
    /* TU DISEÑO ORIGINAL CON MÁRGENES ESPECÍFICOS */
    grid-area: logo;
    width: 80px;
    justify-self: start;
    width: 180px;
    margin-left: 80px;
    margin-top: -50px;
}

h1{
    text-align: center;
    margin-top: 30px;
    color:goldenrod ;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h2{
    text-align: center;
    margin-top: 30px;
    color: goldenrod;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: brilloDorado 3s ease-in-out infinite;
    font-size: 2.8em;
    font-weight: 300;
    letter-spacing: 2px;
}

@keyframes brilloDorado {
    0%, 100% {
        text-shadow: 0 0 10px rgba(218, 165, 32, 0.5),
                     0 0 20px rgba(218, 165, 32, 0.3),
                     0 0 30px rgba(218, 165, 32, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(218, 165, 32, 0.8),
                     0 0 30px rgba(218, 165, 32, 0.5),
                     0 0 40px rgba(218, 165, 32, 0.2);
    }
}

.galeria{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 2px;
    perspective: 1000px;
    animation: zoomSuave 2s ease-out;
}

@keyframes zoomSuave {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.galeria img{
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.95);
}

.galeria img:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    filter: brightness(1);
}

.sectiongalery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Estilos para el menú desplegable */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn, .simple-btn {
    background-color: rgb(247, 243, 243);
    color: black;
    font-size: 35px; /* TU TAMAÑO ORIGINAL */
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease;
}

.dropbtn:hover, .simple-btn:hover {
    background-color: #e0e0e0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 10px;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    border-radius: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.footer{
    display: flex;
    justify-content: space-between;
    background-color: antiquewhite;
    align-items: center;
    padding: 20px;
    text-align: center;
    flex-wrap: wrap; /* Añadido para que sea flexible */
}

.footerinfo,
.footer-rrss{
    flex: 1;
}

.footer.logo{
    flex: 1;
    display: flex;
    justify-content: center;
}

.logof{
    width: 100px;
    height: auto;
}



@media (max-width: 769px) {
    
    /* Centramos todo el contenido del header */
    header {
        align-items: center;
    }

    /* Quitamos los márgenes fijos del logo que rompen el diseño en móvil */
    .logo {
        margin: 0; /* Reseteamos los márgenes */
        width: 150px;
    }

    /* Apilamos los botones de navegación */
    .barra {
        flex-direction: column;
        width: 100%;
        gap: 10px; /* Reducimos el gap para móvil */
    }
    
    /* Aseguramos que TODOS los botones tengan el mismo ancho */
    .simple-btn, .dropbtn {
        font-size: 1.2rem;
        width: 90%;
        max-width: 400px;
        min-width: 200px; /* Añadimos un ancho mínimo consistente */
    }

    /* El contenedor dropdown debe ocupar el mismo ancho */
    .dropdown {
        width: 90%;
        max-width: 400px;
        display: flex;
        justify-content: center;
    }

    /* Aseguramos que el botón dentro del dropdown ocupe todo el ancho */
    .dropdown .dropbtn {
        width: 100%;
    }

    /* Apilamos el footer */
    .footer {
        flex-direction: column;
        gap: 20px;
    }

} /* <--- CIERRE CORRECTO del media query */

/* Esto hace que los enlaces <a> con la clase .simple-btn 
   se vean exactamente igual que los botones */
.barra a.simple-btn {
    color: black;
    background-color: rgb(247, 243, 243);
    font-size: 35px;
    text-decoration: none;
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 10px 20px; /* Importante para que tenga el mismo tamaño */
    display: inline-block; /* Necesario para que <a> acepte padding */
}

/* Efecto hover (igual que los botones) */
.barra a.simple-btn:hover {
    background-color: #e0e0e0;
}
    

/* Esto hace que los enlaces <a> con la clase .simple-btn 
   se vean exactamente igual que los botones */
.barra a.simple-btn {
    color: black;
    background-color: rgb(247, 243, 243);
    font-size: 35px;
    text-decoration: none;
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 10px 20px; /* Importante para que tenga el mismo tamaño */
    display: inline-block; /* Necesario para que <a> acepte padding */
}

/* Efecto hover (igual que los botones) */
.barra a.simple-btn:hover {
    background-color: #e0e0e0;
}


