/* COLORES CORPORATIVOS */
:root {
    --azul-principal: #0B3C5D;
    --azul-secundario: #1D6FA3;
    --gris-claro: #F2F4F7;
    --gris-texto: #555555;
    --blanco: #FFFFFF;
}

/* GENERAL */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--gris-texto);
    background-color: var(--blanco);
}

/* HEADER */

header {
    background-image: url("../img/fondo-header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 40px 20px 60px;
    text-align: center;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
}


header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}


header * {
    position: relative;
    z-index: 2;
}



.logo {
    max-width: 620px;
    width: 100%;
    padding: 28px 48px;
    background-color: #ffffff;

    border-radius: 22px;
    box-shadow:
        0 12px 30px rgba(0,0,0,0.30),
        inset 0 0 0 1px rgba(0,0,0,0.05);

    display: block;
}


.logo {
    position: relative;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 12%;
    width: 76%;
    height: 2px;
    background-color: rgba(11, 60, 93, 0.15);
    border-radius: 2px;
}




header h1 {
    color: var(--azul-principal);
    margin: 10px 0 5px;
}

header p {
    margin: 0;
    font-size: 16px;
}

/* NAV */

nav {
    background: rgba(11, 60, 93, 0.92);
    padding: 16px 40px;
    border-radius: 14px;

    display: flex;
    justify-content: center;
    gap: 32px;

    margin: 10px auto 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}


nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    padding: 6px 4px;
    transition: color 0.3s, transform 0.2s;
}

nav a:hover {
    color: #FFB703;
    transform: translateY(-2px);
}




/* HERO */

.hero {
    background: linear-gradient(
        135deg,
        #0B3C5D,
        #1D6FA3
    );
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto 35px;
    color: #eaeaea;
}

.hero {
    background-color: #0B3C5D;
}





.btn-principal {
    background-color: #FFB703;
    color: #0B3C5D;
    padding: 15px 34px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.35);
    transition: transform 0.3s, background 0.3s;
}

.btn-principal:hover {
    background-color: #e6a700;
    transform: translateY(-3px);
}




/* SECCIONES */
section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    color: var(--azul-principal);
    margin-bottom: 40px;
}

/* SERVICIOS */
.servicio {
    background-color: var(--gris-claro);
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.servicio h3 {
    color: var(--azul-secundario);
}

/* TEXTO */
.texto {
    max-width: 700px;
    margin: auto;
    font-size: 17px;
}

/* FONDO GRIS */
.fondo-gris {
    background-color: var(--gris-claro);
}

/* FOOTER */
footer {
    background-color: var(--azul-principal);
    color: var(--blanco);
    text-align: center;
    padding: 20px;
}






/* MODAL */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1500;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.modal img {
    max-width: 85%;
    max-height: 70%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal p {
    color: white;
    font-size: 16px;
    max-width: 600px;
    text-align: center;
}

.cerrar {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}





/*=====================================================================================================================*/

/* BOTÓN WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp img {
    width: 35px;
    height: 35px;
}

.whatsapp:hover {
    transform: scale(1.1);
}

.telefono-whatsapp {
    color: #0B5ED7;
    font-weight: bold;
    text-decoration: none;
}

.telefono-whatsapp:hover {
    text-decoration: underline;
}




/* =======================
   SECCIÓN PROYECTOS
======================= */

#proyectos {
    padding: 80px 20px;
    background-color: #0B3C5D; /* Azul corporativo */
    text-align: center;
}

#proyectos h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

#proyectos > p {
    color: #eaeaea;
    max-width: 750px;
    margin: 0 auto 50px;
    font-size: 17px;
}

/* GRID DE PROYECTOS */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* TARJETA DE PROYECTO */
.proyecto {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* EFECTO HOVER */
.proyecto:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.305);
}

/* IMAGEN */
.proyecto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}





/* TEXTO DENTRO DE CADA PROYECTO */
.proyecto h3 {
    color: #0B3C5D;
    font-size: 18px;
    margin: 15px 10px 5px;
}

.proyecto p {
    color: #333333; /* TEXTO OSCURO, 100% legible */
    font-size: 15px;
    margin: 0 10px 20px;
    opacity: 1; /* asegura que NO sea transparente */
}






/* MODAL */ 

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1500;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.modal img {
    max-width: 90%;
    max-height: 70%;
    border-radius: 10px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: rgb(255, 255, 255);
    cursor: pointer;
}

.controles {
    margin-top: 15px;
}

.controles button {
    font-size: 20px;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
}

#descripcionGaleria {
    color: rgb(255, 255, 255);
    margin-top: 15px;
    font-size: 16px;
}





/* =========================
   OPTIMIZACIÓN PARA CELULAR
========================= */
@media (max-width: 768px) {

    /* HEADER */
    header {
        padding: 30px 15px 40px;
    }

    .logo {
        max-width: 320px;
        margin-bottom: 20px;
    }

    header h1 {
        font-size: 22px;
        color: #ffffff;
    }

    header p {
        font-size: 14px;
        color: #eaeaea;
    }

    /* NAV */
    nav {
        flex-wrap: wrap;
        gap: 16px;
        padding: 14px 20px;
    }

    nav a {
        font-size: 16px;
    }

    /* HERO */
    .hero {
        padding: 60px 15px;
    }

    .hero h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-principal {
        padding: 14px 28px;
        font-size: 15px;
    }

    /* SERVICIOS */
    .servicio {
        padding: 25px;
    }

    /* PROYECTOS */
    #proyectos {
        padding: 60px 15px;
    }

    .proyectos-grid {
        gap: 20px;
    }

    .proyecto img {
        height: 180px;
    }

    .proyecto h3 {
        font-size: 18px;
    }

    .proyecto p {
        font-size: 14px;
        color: #333333;
    }

    /* MODAL GALERÍA */
    .modal img {
        max-width: 95%;
        max-height: 60%;
    }

    .controles button {
        font-size: 18px;
        padding: 8px 16px;
    }

    #descripcionGaleria {
        font-size: 14px;
        padding: 0 10px;
    }

    /* FOOTER */
    footer {
        font-size: 14px;
    }
}




/* =========================
   MENÚ HAMBURGUESA (MÓVIL)
========================= */

.menu-hamburguesa {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0B3C5D;
    color: white;
    font-size: 30px;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* ESTILOS SOLO PARA CELULAR */
@media (max-width: 768px) {

    .menu-hamburguesa {
        display: block;
    }

    nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        width: 85%;
        padding: 20px;
        gap: 20px;
        z-index: 1099;
    }

    nav.activo {
        display: flex;
    }

    nav a {
        font-size: 20px;
        padding: 10px 0;
    }
}

#contadorGaleria {
    color: #ffffff;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.85;
}


/* MAPA GOOGLE */
.mapa {
    max-width: 1100px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}



/* WhatsApp en contacto */
.telefono-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #0B5ED7;
    text-decoration: none;
}

.telefono-whatsapp:hover {
    text-decoration: underline;
}

.icono-whatsapp {
    width: 20px;
    height: 20px;
}

