/* --- VARIABLES CSS --- */
:root {
    --oscuro: #07070A;
    --azulOscuro: #0A1128;
    --azulClaro: #006FE6;
    --blanco: #FEFCFB;
    --negro-profundo: #333335;


    --titulos: 'Baloo 2', cursive;
    --parrafos: 'Montserrat', sans-serif;
}

/* --- GENERALES Y RESET BÁSICO --- */
html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--parrafos);
    font-size: 1.6rem;
    overflow-x: hidden;
    background-color: var(--blanco);
    color: var(--oscuro);
    min-height: 100vh;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

h1,
h2,
h3 {
    font-family: var(--titulos);
}

p,
a {
    font-family: var(--parrafos);
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contenedor {
    margin: 0 auto;
    max-width: 120rem;
    width: 95%;
}

/* --- CLASE PARA DESHABILITAR TRANSICIONES DURANTE REDIMENSIONAMIENTO --- */
body.resizing * {
    transition: none !important;
}

/* Evitar el scroll del body cuando el menú o modal está abierto */
body.no-scroll {
    overflow: hidden;
}

/* --- BOTONES --- */
.btn {
    padding: 1rem 4rem;
    font-weight: bold;
    font-family: var(--parrafos);
    font-size: 1.5rem;
    border: none;
    color: var(--blanco);
    display: inline-block;
    text-align: center;
    transition: background-color .3s ease-in-out, transform .1s ease-out;
    cursor: pointer;
}

.bordes {
    border: 2px solid var(--azulClaro);
    color: var(--blanco);
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color .3s ease-in-out;
}

@media(min-width: 768px) {
    .bordes {
        display: inline-block;
        margin-top: 2rem;
    }
}

.bordes:hover {
    background-color: var(--azulClaro);
    color: var(--blanco);
}

.btn:hover {
    cursor: pointer;
}

/* --- ANIMACIONES --- */
@keyframes desplazamiento {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* --- ENCABEZADO Y SLIDER --- */
.encabezado {
    background-image: url('../img/architecture.jpg');
    background-repeat: no-repeat;
    height: 100vh;
    min-height: 70rem;
    background-size: cover;
    background-position: center center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blanco);

}

@media(min-width: 768px) {
    .encabezado {
        background-attachment: fixed;
    }
}

.encabezado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: -1;
}

/* Contenido principal del encabezado (título y botón) */
.contenido-encabezado-principal {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 5rem 2rem;
}

@media(min-width: 768px) {
    .contenido-encabezado-principal {
        flex-direction: column;
        padding-top: 0;
        justify-content: center;
    }
}

.texto-encabezado {
    text-align: center;
    margin-bottom: 2rem;
}

.texto-encabezado h1 {
    font-size: 2.9rem;
    color: var(--blanco);
    padding-top: 0;
    margin-bottom: 8rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

@media(min-width: 768px) {
    .texto-encabezado h1 {
        font-size: 3rem;
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

.boton-encabezado {
    text-align: center;
    margin-top: 3rem;
}

@media(min-width: 768px) {
    .boton-encabezado {
        margin-top: 3rem;
    }
}

.boton-encabezado .btn {
    border-radius: 3rem;
    padding: 1rem 3rem;
    display: inline-block;
}

/* --- NAVEGACIÓN Y LOGO --- */
.contenido-navegacion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 10px 10px 16px -6px rgba(0, 0, 0, 0.45);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 1.5rem 2rem;
}

.contenido-navegacion .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.logo h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--oscuro);
}

.logo h2 span {
    color: var(--azulClaro);
}

/* NAVEGACIÓN (Estilos por defecto para Escritorio) */
.navegacion {
    position: absolute;
    left: 0;
    top: 7rem;
    width: 100%;
    animation: desplazamiento .5s ease-in-out;
    padding-top: 0;
    box-shadow: none;
}

@media(min-width: 768px) {
    .ocultar {
        display: inline;
    }
}

.navegacion a {
    display: block;
    /* Para móviles */
    font-size: 2rem;
    padding: 1.1rem;
    color: var(--oscuro);
    text-decoration: none;
    transition: background-color .3s ease-in-out, color .3s ease-in-out;
    position: relative;
    padding-bottom: 0.8rem;
}

.navegacion a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--azulClaro);
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

.navegacion a:hover::after,
.navegacion a.activo::after {
    width: 100%;
    left: 0;
}

.navegacion a.activo {
    color: var(--negro-profundo);
}

@media(min-width: 768px) {
    .navegacion a {
        display: inline;
        padding: 0 1.5rem;
    }

    .navegacion {
        position: relative;
        top: unset;
        width: auto;
        background-color: unset;
        animation: unset;
        display: flex;
        gap: 2rem;
    }
}

/* --- MEDIA QUERY PARA ESTILOS MÓVILES --- */
@media (max-width: 768px) {
    .hamburguesa {
        display: block;
    }

    .navegacion {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100vw;
        height: 100vh;
        background-color: var(--blanco);
        padding-top: 7rem;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        pointer-events: none;
        opacity: 0;
        transition: left 0.4s ease-in-out, opacity 0.4s ease-in-out;
    }

    .navegacion.is-open {
        left: 25vw;
        pointer-events: auto;
        opacity: 1;
    }

    .navegacion a {
        display: block;
        padding: 15px 20px;
        color: var(--negro-profundo);
        text-decoration: none;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        position: static;
        padding-bottom: 1.1rem;
    }

    .navegacion a::after {
        display: none;
    }

    .navegacion a:last-child {
        border-bottom: none;
    }
}

/* --- BOTÓN HAMBURGUESA --- */
.hamburguesa {
    width: 6rem;
    height: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    z-index: 4;
}

.hamburguesa span {
    width: 3rem;
    height: 0.4rem;
    background-color: var(--oscuro);
    display: block;
    border-radius: 0.2rem;
    transition: all 0.3s ease;
}

.hamburguesa.is-active span:nth-child(1) {
    transform: translateY(1.2rem) rotate(45deg);
}

.hamburguesa.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburguesa.is-active span:nth-child(3) {
    transform: translateY(-1.2rem) rotate(-45deg);
}

@media(min-width: 768px) {
    .hamburguesa {
        display: none;
    }
}

/* --- SECCIÓN VENTAJAS --- */
.ventajas {
    padding: 5rem 0;
    background: var(--negro-profundo);
}

.contenido-ventajas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

@media(min-width: 768px) {
    .contenido-ventajas {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        padding: 0;
    }
}

@media(min-width: 992px) {
    .contenido-ventajas {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        padding: 5rem;
    }

    .contenido-ventajas .ventaja:not(:last-child) {
        border-right: 1px solid var(--blanco);
    }
}

.ventaja {
    color: var(--blanco);
    text-align: center;
    padding: 2rem 1rem;
}

.ventaja i {
    font-size: 4rem;
    color: var(--azulClaro);
    margin-bottom: 1rem;
}

.ventaja h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ventaja p {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* --- SECCIÓN NOSOTROS --- */
.nosotros {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--blanco);

}

.titulo-nosotros {
    font-size: 2.5rem;
    color: var(--azulClaro);
    margin-bottom: 4rem;
    text-align: center;
}

.nosotros-contenido-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

@media(min-width: 768px) {
    .nosotros-contenido-flex {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8rem;
        padding: 0;
    }
}


.imagen-nosotros {
    width: 100%;
    max-width: 30rem;
    height: 25vh;
    object-fit: cover;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
    border-radius: 0.8rem;
}

@media(min-width: 768px) {
    .imagen-nosotros {
        width: 50%;
        max-width: none;
        height: 34rem;
        min-width: 30rem;
    }
}

.texto-nosotros {
    flex: 1;
    max-width: 60rem;
    text-align: center;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media(min-width: 768px) {
    .texto-nosotros {
        text-align: left;
        width: 45%;
        padding: 0;
        align-items: flex-start;
    }
}

.texto-nosotros h3 {
    font-size: 1.8rem;
    color: var(--azulClaro);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

@media(min-width: 768px) {
    .texto-nosotros h3 {
        font-size: 2.5rem;
        text-align: left;
    }
}

.texto-nosotros p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--negro-profundo);

}

@media(min-width: 768px) {
    .texto-nosotros p {
        font-size: 1.8rem;
        text-align: left;
    }
}

/* --- SECCIÓN SERVICIOS (PROYECTOS) --- */
.servicios {
    padding-top: 7rem;
    background-color: var(--blanco);
    text-align: center;
    border-top: 1px solid #ddd;
    /* Línea divisoria */
}

.servicios h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--azulClaro);
    margin-bottom: 4rem;
}

.contenido-servicios {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 2rem;
    justify-content: center;
}

@media(min-width: 768px) {
    .contenido-servicios {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 992px) {
    .contenido-servicios {
        grid-template-columns: repeat(3, 1fr);
    }
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.icono-proyecto {
    width: 30rem;
    height: 15rem;
    object-fit: cover;
    box-shadow: 10px 10px 16px -6px rgba(0, 0, 0, 0.45);
    transition: transform .3s ease-in-out;
    margin-bottom: 1.5rem;
    border-radius: 0.8rem;
    cursor: pointer;
}

.servicio:hover .icono-proyecto {
    transform: scale(1.1);
}

.servicio h3 {
    font-size: 1.5rem;
    color: var(--azulOscuro);
    text-align: center;
}

.servicio p {
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.6;
    color: var(--negro-profundo);
}

/* --- Estilos para el Modal de Imagen --- */
.modal-imagen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-imagen.activo {
    opacity: 1;
    visibility: visible;
}

.modal-contenido {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-contenido img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0.8rem;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.cerrar-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--blanco);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    z-index: 1001;
    transition: background-color 0.3s ease;
}

.cerrar-modal:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- SECCIÓN CONTACTO --- */
.contact-info-section {
    padding: 5rem 0;
    background-color: var(--negro-profundo);
    color: var(--blanco);
    text-align: center;
}

.titulo-seccion-contacto {
    font-size: 2.5rem;
    color: var(--blanco);
    margin-bottom: 4rem;
}

@media(min-width: 768px) {
    .titulo-seccion-contacto {
        font-size: 3rem;
    }
}

.contenido-contacto {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 2rem;
    max-width: 120rem;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .contenido-contacto {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media(min-width: 992px) {
    .contenido-contacto {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .contenido-contacto .info-item:not(:last-child) {
        border-right: 1px solid var(--blanco);
    }
}

.info-item {
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-item i {
    font-size: 4rem;
    color: var(--azulClaro);
    margin-bottom: 1.5rem;
}

.info-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--blanco);
}

.info-item p {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    color: var(--blanco);

}

.info-item p a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.info-item p a:hover {
    color: var(--azulClaro);

}

/* --- ESTILOS PARA FORMULARIO DE CONTACTO --- */
.input-contacto input[type="text"],
.input-contacto input[type="email"],
.input-contacto input[type="tel"],
.input-contacto textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1.6rem;
}

.input-contacto textarea {
    resize: vertical;
    min-height: 10rem;
}

.input-contacto input[type="submit"] {
    width: auto;
    margin-top: 1rem;
}

/* --- PIE DE PÁGINA --- */
.footer {
    background-color: var(--negro-profundo);
    color: var(--blanco);
    padding: 2rem 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.footer .logo h2 {
    font-size: 2rem;
    color: var(--blanco);

    text-align: center;
    margin: 0;
}

.footer .logo h2 span {
    color: var(--azulClaro);

}

.footer p {
    text-align: center;
    margin: 0;
    font-size: 1.5rem;
}

@media(min-width: 768px) {
    .footer {
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 2rem;
    }
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
}

.logo-img {
    height: 3.5rem;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 3.5rem;
    }
}

/* --- BOTÓN FIJO DE WHATSAPP --- */
.whatsapp-fixed-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: var(--blanco);
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.whatsapp-fixed-button:hover {
    transform: scale(1.08);
    background-color: #1DA851;
    cursor: pointer;
}

.whatsapp-fixed-button:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .whatsapp-fixed-button {
        width: 5rem;
        height: 5rem;
        font-size: 2.8rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}