
/* =====================================================
   CONFIGURACIÓN GENERAL
===================================================== */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #f2f2f2;
    color: #222;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   HERO
===================================================== */
.proyecto-hero {
    position: relative;
    height: 70vh;
    background: url("../../images/proyectos/naticoccha/nati_6.jpeg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proyecto-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.proyecto-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 15px;
}

.proyecto-hero-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.proyecto-hero-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    opacity: 0.95;
}

/* =====================================================
   DESCRIPCIÓN
===================================================== */
.proyecto-descripcion {
    padding: 90px 0;
    background: #ffffff;
}

.proyecto-descripcion h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 25px;
}

.proyecto-descripcion p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    max-width: 1000px;
    margin: 0 auto 18px;
    text-align: center;
}

/* =====================================================
   FICHA TÉCNICA
===================================================== */
.proyecto-ficha {
    padding: 90px 0;
    background: #eef7f0;
}

.proyecto-ficha h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.3rem;
    margin-bottom: 50px;
}

.ficha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.ficha-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    transition: transform .35s ease, box-shadow .35s ease;
    padding: 30px 28px;
    text-align: center;
}

.ficha-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.ficha-item span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.ficha-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* =====================================================
   SERVICIOS
===================================================== */
.proyecto-servicios {
    padding: 90px 0;
    background: #d7f8da;
}

.proyecto-servicios h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.3rem;
    margin-bottom: 45px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.servicio-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 35px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.servicio-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 55px rgba(0,0,0,0.14);
}

.servicio-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.rem;
    margin-bottom: 14px;
    color: #00A651;
}

.servicio-box p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #555;
}

/* =====================================================
   GALERÍA DE PROYECTOS
===================================================== */

.proyecto-galeria {
    padding: 90px 0;
    background: #ffffff;
}

.proyecto-galeria h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.3rem;
    margin-bottom: 45px;
}

/* ================= DESKTOP ================= */

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    padding-inline: 20px;
}

.galeria-grid img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover solo desktop */
@media (hover: hover) {
    .galeria-grid img:hover {
        transform: scale(1.06);
        box-shadow: 0 20px 45px rgba(0,0,0,0.18);
    }
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .galeria-grid img {
        height: 320px;
    }
}

/* ================= MÓVIL – SCROLL PRO ================= */

@media (max-width: 900px) {

    .galeria-grid {
        display: flex;
        gap: 20px;

        width: 100%;
        max-width: 100%;

        padding-inline: 20px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .galeria-grid img {
        flex: 0 0 85%;
        height: 260px;
        scroll-snap-align: center;
    }

    /* Ocultar scrollbar */
    .galeria-grid::-webkit-scrollbar {
        display: none;
    }
}
/* ================= MODAL FOTOGRÁFICO ================= */

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.modal-caption {
  margin-top: 18px;
  color: #eee;
  font-size: 1rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}



/* =====================================================
   CTA
===================================================== */
.proyecto-cta {
    padding: 100px 20px;
    background:
        linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
        url("../../images/fondos/fondo-proyect.png") center/cover;
    color: #fff;
    text-align: center;
}

.proyecto-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.proyecto-cta p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 35px;
    opacity: .95;
}

.btn-cta {
    display: inline-block;
    padding: 16px 40px;
    background: #00A651;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: transform .3s ease, background .3s ease;
}

.btn-cta:hover {
    background: #008f46;
    transform: translateY(-4px);
}

/* =====================================================
   ENCARGADO
===================================================== */
.proyecto-encargado {
    padding: 90px 20px;
    background: #eef7f0;
}

.encargado-card {
    max-width: 950px;
    margin: auto;
    background: #fff;
    border-radius: 20px;
    padding: 45px 50px;
    box-shadow: 0 22px 50px rgba(0,0,0,0.08);
}

.encargado-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
}

.encargado-cargo {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: #00A651;
    margin-bottom: 22px;
}

.encargado-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    .proyecto-hero {
        height: 60vh;
    }

    .proyecto-hero-content h1 {
        font-size: 2.4rem;
    }

    .galeria-grid img {
        height: 260px;
    }

    .encargado-card {
        padding: 30px 25px;
    }
}
