@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap");

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

/* --- Navegación --- */
.barra-navegacion {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 900;
    height: 90px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    gap: 30px;
}

.posicion-logo {
    display: flex;
    align-items: center;
}

.redirecciones-barra {
    display: flex;
    align-items: center;
    gap: 5px;
}

.links-barra {
    color: black;
    text-decoration: none;
    padding: 10px 15px; 
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.links-barra:hover {
    color: #fff;
    background-color: #068ac2;
}

/* --- Hero / Slider --- */
.cambio-imagenes {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin-top: 90px;
    background-color: #333;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes image-transition {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    width: 90%;
}

/* --- Estructura Principal --- */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section {
    margin: 60px auto;
    width: 85%;
    max-width: 1100px;
    background-color: #fff;
    padding: 30px; 
    border-radius: 8px;
}

.titulos {
    font-family: 'Roboto Condensed', sans-serif;
    color: black;
    font-weight: bold;
    font-size: 32px; 
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
}

.titulos span {
    color: #068ac2;
}

.texto {
    font-family: 'Open Sans', sans-serif;
    padding: 0 10px; 
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    color: #444;
}

.texto h3 {
    color: #068ac2;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* --- Galería "Edificios" (Grid) --- */
.contenedor-galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px; 
    gap: 8px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.item-galeria {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.item-galeria:nth-child(1) { grid-column: span 1; grid-row: span 1; }
.item-galeria:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.item-galeria:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.item-galeria:nth-child(4) { grid-column: span 1; grid-row: span 2; }
.item-galeria:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.item-galeria:nth-child(6) { grid-column: span 1; grid-row: span 2; }
.item-galeria:nth-child(7) { grid-column: span 2; grid-row: span 1; }
.item-galeria:nth-child(8) { grid-column: span 4; grid-row: span 1; min-height: 200px; }

.item-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.item-galeria img:hover {
    transform: scale(1.05);
    cursor: pointer;
    filter: brightness(1.1);
}


footer {
    background-color: #333;
    color: #fff;
    padding: 50px 20px 20px 20px; 
    height: auto; 
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px; 
}

.footer-section {
    text-align: center;
    min-width: 220px;
}

.footer-section h1 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #FA8030;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iconos-verticales {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.link-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    gap: 12px;
    padding: 10px 20px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 30px;
    width: 180px;
    transition: background-color 0.3s, transform 0.2s;
}

.link-icono:hover {
    background-color: #068ac2;
    transform: translateY(-2px);
}

/* --- NUEVA SECCIÓN: Pie de Footer (Firma) --- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15); /* Línea separadora sutil */
    padding-top: 25px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #aaa; /* Un gris claro para no robar atención */
    line-height: 1.6;
}

.footer-bottom strong {
    color: #fff; /* Resalta tu nombre en blanco */
}

.footer-bottom a {
    color: #FA8030; /* Color naranja del tema */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 768px) {
    .barra-navegacion {
        height: auto;
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }
    .redirecciones-barra {
        flex-wrap: wrap;
        justify-content: center;
    }
    .cambio-imagenes {
        margin-top: 130px; 
        height: 45vh;
    }
    .contenedor-galeria {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .item-galeria:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .item-galeria:nth-child(1), .item-galeria:nth-child(8) { grid-column: span 2; }
}

@media (max-width: 480px) {
    .section {
        width: 95%;
        margin: 30px auto;
        padding: 15px;
    }
    .titulos { font-size: 26px; }
    .texto { font-size: 16px; padding: 0; }
    .contenedor-galeria {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 15px;
    }
    .footer-container { gap: 30px; }
    .footer-bottom { font-size: 12px; } /* Texto más pequeño en celular */
}

/* --- Estilos del Formulario --- */
.formulario-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f4f4f4;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-qh {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.campo {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.campo label {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.campo input, 
.campo textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.campo input:focus, 
.campo textarea:focus {
    border-color: #068ac2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 138, 194, 0.1);
}

.btn-enviar {
    background-color: #068ac2;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-enviar:hover {
    background-color: #FA8030;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
    .formulario-container {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
}