/* =================================================
   CONFIGURACIÓN GENERAL
================================================= */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
  background: #eee8e8;
  color: #eaeaea;
}

/* ================= BROCHURE WEB ================= */
.brochure-web {
  font-family: 'Poppins', sans-serif;
  background: #f4f4f4;
  color: #222;
}

/* PORTADA */
.brochure-cover {
  position: relative;
  height: 100vh;
  background: url("../../images/proyectos/lamblan/lam-2.jpg") center/cover no-repeat;
  overflow: hidden;
}

.cover-shape-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 70%;
  min-height: 20vh;
  background: linear-gradient(135deg, #00A651 47%, transparent 47%);
  padding: 40px;
  color: rgb(5, 5, 5);
}
.cover-shape-top h1{
  font-size: 1.2rem;
  margin-top: 10px;
  max-width: 40%;   /* 👈 porcentaje del ancho */
}

.cover-shape-top p {
  font-size: 1.0rem;
  margin-top: 10px;
  max-width: 40%;   /* 👈 porcentaje del ancho */
}
/* ===============================
   📱 ADAPTACIÓN MÓVIL
================================ */
@media (max-width: 768px) {
  .cover-shape-top {
    width: 70%;
    min-height: auto;
    padding: 20px;
    background: linear-gradient(135deg, #00A651 45%, transparent 65%);
  }

  .cover-shape-top h1,
  .cover-shape-top p {
    max-width: 100%;
  }
}

.brochure-cover {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}



.cover-logo {
  font-weight: 800;
  color: #fff;
  font-size: 1.4rem;
}

.cover-content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  max-width: 600px;
  color: #fff;
}

.cover-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.cover-content p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.cover-cui {
  background: #00A651;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.cover-shape-bottom {
  position: absolute;
  bottom: -120px;
  left: 0;
  width: 100%;
  height: 300px;
  background: #f4f4f4;
  transform: skewY(-6deg);
}

/* CUERPO */
.brochure-body {
  padding: 20px 20px;
}

.brochure-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
}

/* IZQUIERDA */
.brochure-left h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.brochure-left p {
  line-height: 1.8;
  margin-bottom: 30px;
}

.brochure-tag {
  display: inline-block;
  background: #00A651;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
}
.texto-cursivo {
  font-style: italic;
}
.texto-logo {
  display: flex;  
  gap: 105px;
}

.logo-pnsr {
  margin-top: -40px; 
  max-width: 120px;
}


/* DERECHA */
.brochure-right {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.brochure-right h3 {
  color: #00A651;
  margin-bottom: 20px;
}

.brochure-right ul {
  list-style: none;
  padding: 0;
}

.brochure-right li {
  margin-bottom: 20px;
  line-height: 1.6;
}

.brochure-info {
  margin-top: 30px;
  font-size: 0.95rem;
}

/* ================= PANEL FOTOGRÁFICO ================= */

.brochure-gallery {
  margin: 90px auto;
  max-width: 1200px;
  padding: 0 20px;
  text-align: center;
}

.brochure-gallery h2 {
  font-size: 2.2rem;
  color: #004d2c;
  margin-bottom: 15px;
}

.gallery-desc {
  max-width: 760px;
  margin: 0 auto 45px;
  color: #555;
  line-height: 1.7;
}

/* ================= GALERÍA DESKTOP ================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover solo desktop */
@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.06);
  }
}

/* Texto inferior */
.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-size: 0.95rem;
  text-align: left;
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item img {
    height: 280px;
  }
}

/* ================= MÓVIL – SCROLL PRO ================= */

@media (max-width: 900px) {

  .gallery-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;
  }

  .gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .gallery-item img {
    height: 260px;
  }

  /* Ocultar scrollbar */
  .gallery-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: 90px 20px;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("../../images/fondos/fondo-proyect.png");
    color: #fff;
    text-align: center;
}

.proyecto-cta h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.proyecto-cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    padding: 15px 35px;
    background: #00A651;
    color: #0f0f0f;
    text-decoration: none;
    border-radius: 18px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-cta:hover {
    background: #008f46;
    transform: translateY(-3px);
}



/* RESPONSIVE */
@media (max-width: 900px) {
  .brochure-grid {
    grid-template-columns: 1fr;
  }

  .cover-content {
    left: 5%;
    right: 5%;
  }

  .cover-content h1 {
    font-size: 2rem;
  }
  .cover-shape-top h1,
  .cover-shape-top p {
  font-size: 10px;
  margin-bottom: 10px;
  max-width: 60%;   /* 👈 porcentaje del ancho */
 }
.cover-shape-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 10vh;
  background: linear-gradient(135deg, #00A651 49%, transparent 66%);
  padding: 20px;
  color: rgb(5, 5, 5);
 }
 .btn-cta {
    display: inline-block;
    padding: 15px 35px;
    margin-bottom: 20px;
    border-radius: 18px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
 }

 .btn-cta:hover {
    background: #008f46;
    transform: translateY(-3px);
 }
 .brochure-tag {
    padding: 6px 14px;     /* más pequeño */
    font-size: 13px;       /* texto más chico */
    border-radius: 20px;   /* menos redondeado */
  }

}
