/* ================================
   ESTILOS GENERALES DE LA WEB
================================ */

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-top: 155px; /* Compensa el header fijo */
}

main {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ================================
   HEADER + NAVBAR FIJO
================================ */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 40px;
    z-index: 999;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 10px;
    text-decoration: none;
}

.activo {
    border-bottom: 2px solid yellow;
}

/* ================================
   CUADROS DE CONTENIDO EN INDEX
================================ */

.bloque {
    margin-top: 5px;
    padding: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bloque img {
    width: 800px;
    height: 400px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 10px;
}

/* ================================
   SECCIONES
================================ */

section {
    width: 100%;
}

/* ================================
   GALERÍA
================================ */

#galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    justify-items: center;
    margin-top: 20px;
    padding: 5px;
}

#galeria img {
    width: 600px;
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 10px;
}

/* ================================
   MODAL (GALERÍA)
================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

#imagenModal {
    display: block;
    margin: auto;
    max-width: 90%;
    border-radius: 10px;
}

#cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* ================================
   MAPA CONTACTO
================================ */

#mapa {
    width: 100%;
    height: 800px;
}

/* ================================
   FORMULARIO PRESUPUESTO
================================ */

form {
    width: 90%;
    max-width: 600px;
    margin: auto;
    text-align: left;
}

form h2 {
    text-align: center;
}

form label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
}

form input,
form select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
}

/* ================================
   FOOTER
================================ */

footer {
    width: 100%;
    background: #222;
    color: #fff;
    padding: 40px;
    text-align: center;
    margin-top: auto;
}

.redes-sociales {
    margin-top: 10px;
}

.redes-sociales img {
    width: 50px;
    margin: 0 20px;
    vertical-align: middle;
}

/* ================================
   NOTICIAS
================================ */

#noticias {
    margin-top: 40px;
}

.noticia {
    background: #f2f2f2;
    padding: 15px;
    margin: 10px auto;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    text-align: left;
}