body.skip-intro .intro-screen {
  display: none !important;
}

/* =====================================================
   VARIABLES GLOBALES 
   Colores base del sitio
===================================================== */

:root {
  --verde: #2f4a0b;
  --gris: #777;
  --negro: #111;
  /* Galería editorial */
  --gallery-gap: 10px;
}

/* =====================================================
   RESET / NORMALIZACIÓN
   Limpia márgenes y controla box model
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =====================================================
   HEADER SOBRE INTRO (SIN SCROLL)
   Texto blanco sobre imágenes
===================================================== */

body.intro-active nav a {
  color: #fff;
}

/* =====================================================
  02- COMINEZO PANTALLA CON SCROLL
===================================================== */
/* =====================================================
   BODY / TIPOGRAFÍA BASE
===================================================== */

body {
  font-family: 'Inter', Arial, sans-serif;
  letter-spacing: 0.2px;
}

/* =====================================================
   GLOBAL NOISE OVERLAY
===================================================== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  /* Configuración base (Desktop) */
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-position: 0 0;
  background-size: 150px 150px;
  background-repeat: repeat;
}

/* Configuración específica (Mobile) */
@media (max-width: 768px) {
  body::before {
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-position: 0 0;
    background-size: 120px 120px;
    background-repeat: repeat;
  }
}

/* =====================================================
   HEADER — ESTADO INTRO (TRANSPARENTE)
===================================================== */

.intro-active .header {
  background: transparent;
  border-bottom: none;
}

/* Ajuste visual logo SOLO en el hero */
.intro-active .logo {
  transform: translateY(4px);
}

/* =====================================================
   HEADER FIJO /  LOGO CON LA NAVEGACIÓN
===================================================== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.scrolled .header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-inner {
  width: 100%;
  margin: 0 auto;
  height: 120px;
  /* 🔑 altura fija */
  padding: 20px 40px;
  /* 🔑 solo horizontal */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 🔑 centro vertical real */
  box-sizing: border-box;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
}

/* LOGO */
.logo {
  display: block;
  width: 120px;
  /* tamaño base */
  height: auto;
  flex-shrink: 0;
  /* 🔑 nunca desaparece */
}

.logo:hover {
  transform: scale(1.05);
}

nav a.active {
  opacity: 0.5;
}

.intro-active .header {
  background: transparent !important;
  box-shadow: none;
}

nav a {
  /* TEXTOS MENU */
  margin-left: 25px;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  /* MAYÚSCULAS */
  font-weight: 400;
  /* 400 = regular | 500 o 600 = bold */
  color: #111;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.intro-active nav a {
  color: #fff;
}

nav a:hover {
  /* EFECTO DE OPACIDAD AL PONER EL MOUSE SOBRE LOS TEXTOS DEL MENU */
  opacity: 0.7;
}

/* Header transparente */
.nav a {
  color: #fff;
}

/* Header con scroll */
body.scrolled .nav a {
  color: #111;
}

/* =====================================
   HEADER FIJO – PROYECTOS
===================================== */

body.page-proyectos .header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
}

/* Texto del menú siempre negro */
body.page-proyectos .nav a {
  color: #111;
}

/* Forzamos logo negro visible */
body.page-proyectos .logo-white {
  display: none !important;
}

body.page-proyectos .logo-black {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ============================
   LOGOS – ESTADO BASE
============================ */

.logo-white {
  display: block;
}

.logo-black {
  display: none;
}

/* ============================
   LOGOS – SCROLL
============================ */

body.scrolled .logo-white {
  display: none;
}

body.scrolled .logo-black {
  display: block;
}

/* =====================================
   MENÚ MÓVIL ABIERTO (CORRECTO GLOBAL)
===================================== */

@media (max-width: 768px) {

  body.menu-open .nav {
    background: #346240;
  }

  body.menu-open .nav a {
    color: #fff !important;
  }

  /* logos correctos sobre fondo verde */
  body.menu-open .logo-white {
    display: block;
  }

  body.menu-open .logo-black {
    display: none;
  }

  .nav {
    z-index: 1000;
  }
}

/* =====================================
   LOGO SIEMPRE VISIBLE SOBRE MENÚ MÓVIL
===================================== */

@media (max-width: 768px) {

  .logo-link {
    position: relative;
    z-index: 1002;
  }

  .menu-toggle {
    position: relative;
    z-index: 1003;
  }

}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .logo {
    width: 140px;
  }
}

@media (max-width: 768px) {
  .logo {
    width: 110px;
  }
}

/* =====================================
   NAV MÓVIL – CENTRADO VERTICAL
===================================== */

@media (max-width: 768px) {

  body.menu-open .nav {
    position: fixed;
    inset: 0;
    /* top right bottom left = 0 */
    display: flex;
    flex-direction: column;
    /* 🔑 uno debajo del otro */
    justify-content: center;
    /* 🔑 centro vertical */
    align-items: center;
    /* 🔑 centro horizontal */
    gap: 32px;

    background: #346240;
    z-index: 1000;
  }

  body.menu-open .nav a {
    font-size: 20px;
    color: #fff !important;
    margin: 0;
  }
}

/* =====================================
   HAMBURGUESA → X (MENÚ ABIERTO)
===================================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

/* estado X */
body.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* visible solo en móvil */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1003;
    /* 🔑 sobre menú verde */
  }
}

/* =====================================
   BOTÓN X – POSICIÓN FINAL (MENÚ ABIERTO)
===================================== */

@media (max-width: 768px) {

  body.menu-open .menu-toggle {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 1004;
  }

  body.menu-open .menu-toggle span {
    background: #fff;
  }
}

@media (max-width: 768px) {

  .nav {
    position: fixed;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;

    background: #346240;

    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease;

    pointer-events: none;
    z-index: 1000;
  }

  body.menu-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.menu-open .nav a {
    font-size: 20px;
    color: #fff !important;
    margin: 0;
  }
}

/* =====================================================
   PÁGINA DE PROYECTO (DETALLE)
===================================================== */
.landing-proyectos {
  max-width: 1200px;
  margin: 140px auto 100px auto;
  /* 🔑 CENTRADO REAL */
  padding: 0 40px;
}

.project-header h1 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 6px;
}

/* Ficha técnica */
.project-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;

  margin-top: 40px;
  /* 🔴 aquí va el aire */
  margin-bottom: 40px;
}

.info-block strong {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  color: #777;
}

.info-block span {
  font-size: 14px;
}

/* Memoria */
.project-text {
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Galería */
.project-gallery img {
  width: 100%;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .landing-proyectos {
    margin: 120px auto 80px auto;
    padding: 0 20px;
  }
}

/* =====================================================
   TÍTULOS GENERALES
===================================================== */

h1,
h2 {
  letter-spacing: 1px;
}

h2 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 40px;
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
}

/* =====================================================
   CONTENEDORES Y SECCIONES (MARGENES PAGINA)
===================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
}

.section {
  padding: 0px 80px 8%;
}

@media (max-width: 768px) {
  .section {
    padding: 0px 20px 8%;
  }

}

/* =====================================================
   OFFSET PARA ANCLAS (HEADER FIJO)
   Evita que el menú tape el contenido al hacer click
===================================================== */

section {
  scroll-margin-top: 200px;
}

/* =====================================================
   BLOQUES DE TEXTO
===================================================== */

.narrow {
  max-width: 700px;
  margin: auto;
}

.intro {
  font-size: 20px;
  line-height: 1.8;
}

/* =====================================
   SERVICES – TÍTULO SECCIÓN
===================================== */

.servicios-title-wrapper {
  max-width: 1200px;
  margin: 160px auto 40px auto;
  padding: 0 40px;
}

.servicios-section-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #111;
  text-align: center;
}

/* =====================================
   SERVICES – ACORDEÓN
===================================== */

.services-accordion {
  max-width: 1600px;
  margin: 20px auto 120px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 40px;
}

/* ITEM */
.service-item {
  position: relative;
}

/* TÍTULO */
.service-title {
  background: none;
  border: none;
  width: 100%;
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
  color: #111;
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* Efecto hover en título */
.service-title:hover {
  color: #4F6B54;
  border-bottom-color: #4F6B54;
}

/* Título activo */
.service-item.active .service-title {
  color: #4F6B54;
  border-bottom-color: #4F6B54;
  font-weight: 500;
}

/* CONTENIDO */
.service-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.service-content ul {
  margin-top: 24px;
  padding-left: 0;
  list-style: none;
}

.service-content li {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 14px;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;

  /* Viñeta personalizada */
  position: relative;
  padding-left: 18px;
}

.service-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 6px;
  height: 6px;
  background-color: #346240;
  border-radius: 50%;
}

/* ACTIVO */
.service-item.active .service-content {
  max-height: 300px;
  opacity: 1;
}

/* Animar items de lista cuando se abre */
.service-item.active .service-content li {
  transform: translateY(0);
  opacity: 1;
}

/* Delay progresivo para cada item */
.service-item.active .service-content li:nth-child(1) {
  transition-delay: 0.1s;
}

.service-item.active .service-content li:nth-child(2) {
  transition-delay: 0.15s;
}

.service-item.active .service-content li:nth-child(3) {
  transition-delay: 0.2s;
}

.service-item.active .service-content li:nth-child(4) {
  transition-delay: 0.25s;
}

/* =====================================
  RESPONSIVE
===================================== */

/* MOBILE VERTICAL */
@media (max-width: 900px) and (orientation: portrait) {

  .services-accordion {
    grid-template-columns: 1fr;
    margin: 40px 16px 80px 16px;
    padding: 0;
    row-gap: 32px;
  }

  .service-item {
    width: 100%;
    text-align: center;
  }

  .service-title {
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    width: 100%;
    padding: 0 0 12px 0;
    /* Reset de padding lateral para centrado perfecto */
  }

  /* Ajuste para que la viñeta quede pegada al texto en móvil */
  .service-content li {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .service-title {
    font-size: 13px;
  }

  .service-content ul {
    margin-top: 16px;
  }
}

/* MOBILE / TABLET HORIZONTAL */
@media (max-width: 1100px) and (orientation: landscape) {

  .services-accordion {
    grid-template-columns: repeat(2, 1fr);
    margin: 40px 20px;
    column-gap: 32px;
  }

}


/* =====================================================
   PROYECTOS – OVERLAY CENTRADO (RESPONSIVE)
===================================================== */


.project {
  position: relative;
  display: block;
  overflow: hidden;
}

/* Oscurecimiento suave al hover */
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Activar overlay */
.project:hover::after {
  opacity: 1;
}


.project img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Overlay ocupa toda la imagen */
.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  pointer-events: none;
}

/* Texto del proyecto */
.project-overlay span {
  max-width: 80%;
  line-height: 1.3;
  color: white;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: normal;
  /* permite 2 líneas */
}

/* =====================================================
   PROYECTOS – ANIMACIÓN TEXTO (FADE + SLIDE)
===================================================== */

.project-overlay span {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

/* Al pasar el mouse */
.project:hover .project-overlay span {
  opacity: 1;
  transform: translateY(6px);
}

/* =====================================================
   PROYECTOS – GRID 3 COLUMNAS
===================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Tablet */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* =====================================================
   PROYECTOS – LANDING
===================================================== */


.project-landing {
  position: relative;
  display: block;
  overflow: hidden;
}

/* Oscurecimiento suave al hover */
.project-landing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Activar overlay */
.project-landing:hover::after {
  opacity: 1;
}


.project-landing img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Overlay ocupa toda la imagen */
.project-overlay-landing {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  pointer-events: none;
}

/* Texto del proyecto */
.project-overlay-landing span {
  max-width: 80%;
  line-height: 1.3;
  color: white;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: normal;
  /* permite 2 líneas */
}

/* =====================================================
   PROYECTOS – ANIMACIÓN TEXTO (FADE + SLIDE)
===================================================== */

.project-overlay-landing span {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

/* Al pasar el mouse */
.project-landing:hover .project-overlay-landing span {
  opacity: 1;
  transform: translateY(6px);
}

/* =====================================================
   PROYECTOS – GRID 3 COLUMNAS
===================================================== */

.projects-grid-landing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 100px;
}

/* Tablet */
@media (max-width: 900px) {
  .projects-grid-landing {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .projects-grid-landing {
    grid-template-columns: repeat(1, 1fr);
    padding-top: 0;
    /* Eliminado el padding excesivo de 100px */
  }
}

/* =====================================================
   PROYECTOS – FILTRO
===================================================== */

.projects-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 160px;
  margin-bottom: 10px;
  position: sticky;
  top: var(--header-height);
  background: white;
  padding: 1rem 0;
  z-index: 10;
}


.page-proyectos .projects-filters {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #4F6B54;
  color: #fff;
}

@media (max-width: 900px) {
  .projects-filters {
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 100px;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }
}

/* Ajuste específico para Landscape Móvil */
@media (max-width: 900px) and (orientation: landscape) {
  .projects-grid-landing {
    padding-top: 0;
  }

  .projects-filters {
    margin-top: 100px;
    /* Ajuste para landscape */
    margin-bottom: 20px;
  }

  .services-accordion {
    row-gap: 60px;
    /* Más espacio entre filas de servicios */
  }
}

@media (max-width: 520px) {
  .projects-filters {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 0.6rem 0.8rem;

    margin-top: 130px;
    margin-bottom: 1.8rem;
  }

  /* Todos arriba */
  .projects-filters .filter-btn[data-filter="all"] {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
  }

  .projects-filters::-webkit-scrollbar {
    display: none;
  }
}

/* =====================================================
   PROYECTOS – ANIMACIÓN FILTRO
===================================================== */

.project-landing {
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

.project-landing.is-hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

/* =====================================
   BENEFICIOS – ACORDEÓN
===================================== */

.beneficios-accordion {
  max-width: 1600px;
  margin: 20px auto 50px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 40px;
}

.beneficios-header {
  display: flex;
  flex-direction: column;
  /* 🔑 icono arriba / texto abajo */
  align-items: center;
  /* 🔑 centrado horizontal */
  text-align: center;
  cursor: pointer;
}

/* ITEM */
.beneficios-item {
  position: relative;
}

/* ICONO */
.beneficios-icono {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.beneficios-icono img {
  width: 120px;
  /* ajusta a gusto */
  height: auto;
}

/* TÍTULO */
.beneficios-title {
  min-height: 55px;
  /* 🔑 iguala títulos 1 o 2 líneas */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: none;
  border: none;
  width: 100%;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
  color: #111;
  line-height: 1.4;
}

/* CONTENIDO */
.beneficios-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.beneficios-content ul {
  margin-top: 24px;
  padding-left: 0;
  list-style: none;
}

.beneficios-content li {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 14px;

  /* Viñeta personalizada */
  position: relative;
  padding-left: 18px;
}

.beneficios-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 6px;
  height: 6px;
  background-color: #346240;
  border-radius: 50%;
}

/* ACTIVO */
.beneficios-item.active .beneficios-content {
  max-height: 300px;
  opacity: 1;
}

/* ANIMACIÓN ICONO */
.beneficios-icono img {
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}

/* hover */
.beneficios-item:hover .beneficios-icono img {
  transform: scale(1.08);
}

/* activo (cuando está desplegado) */
.beneficios-item.active .beneficios-icono img {
  transform: scale(1.12);
}

/* =====================================
   BENEFICIOS – TÍTULO SECCIÓN
===================================== */

.beneficios-title-wrapper {
  max-width: 1200px;
  margin: 160px auto 40px auto;
  padding: 0 40px;
}

/* =====================================
   NOSOTROS – TÍTULO SECCIÓN
===================================== */

.nosotros-title-wrapper {
  max-width: 1200px;
  margin: 60px auto 40px auto;
  padding: 0 40px;
}

.beneficios-section-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #111;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 900px) and (orientation: portrait) {

  .beneficios-accordion {
    grid-template-columns: 1fr;
    margin: 20px 16px 80px 16px;
    padding: 0;
    row-gap: 32px;
  }

  .beneficios-item {
    width: 100%;
  }

  .beneficios-header {
    align-items: center;
  }

  .beneficios-title {
    font-size: 13px;
  }

  .beneficios-content ul {
    margin-top: 16px;
  }

  .beneficios-title-wrapper {
    margin: 120px auto 32px auto;
    padding: 0 16px;
  }

  .beneficios-section-title {
    font-size: 18px;
    letter-spacing: 0.22em;
  }
}

@media (max-width: 1100px) and (orientation: landscape) {

  .beneficios-accordion {
    grid-template-columns: repeat(2, 1fr);
    margin: 40px 20px;
    column-gap: 32px;
  }

}

/* =====================================
   NORMALIZACIÓN DE ICONOS + ALINEACIÓN
===================================== */

.beneficios-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* CONTENEDOR DEL ICONO (MARCO COMÚN) */
.beneficios-icono {
  height: 140px;
  /* 🔑 MISMA ALTURA PARA TODOS */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  /* aire entre icono y título */
}

/* SVG DENTRO DEL MARCO */
.beneficios-icono img {
  height: 110px;
  /* 🔑 tamaño real visible */
  width: auto;
  display: block;
}

/* TÍTULO */
.beneficios-title {
  text-align: center;
  padding-bottom: 14px;
  width: 100%;
}

/* ASEGURA QUE TODAS LAS LÍNEAS COINCIDAN */
.beneficios-item {
  display: flex;
  flex-direction: column;
}

/* =====================================
   GALERIA DE CROQUIS - CARRUSEL EDITORIAL
===================================== */

.carrusel-contenedor {
  width: 100%;
  overflow-y: hidden;
  padding: 100px 0;
}

.carrusel-track {
  display: flex;
  gap: 24px;
  padding-left: 6vw;
  padding-right: 6vw;
  width: max-content;
  /* 👈 CLAVE */
  will-change: transform;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* ocultar scrollbar */
.carrusel-track::-webkit-scrollbar {
  display: none;
}

.carrusel-item {
  flex: 0 0 30vw;
  /* tamaño editorial */
  transition: transform 0.4s ease;
  scroll-snap-align: start;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* 👈 NO recorta */
  display: block;
}

.carrusel-item:hover {
  transform: scale(1.03);
}

.carrusel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carrusel-item.clone {
  pointer-events: none;
}


@media (max-width: 900px) {
  .carrusel-item {
    flex: 0 0 60vw;
  }

  .carrusel-contenedor {
    padding: 60px 0;
  }
}

/* =====================================================
   CONTACTO
===================================================== */

.contact-text {
  margin-bottom: 30px;
}

.contact-info {
  font-size: 14px;
  line-height: 1.8;
}

.contacto {
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.contacto-inner {
  text-align: center;
  width: 100%;
}

/* =====================================================
   CONTACTO – FORMULARIO DESPLEGABLE
===================================================== */

.contact-section {
  padding: 40px 0px 0px;
}

.contact-section-landing {
  padding: 160px 0px 0px;
}


.contact-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  cursor: pointer;
  text-transform: uppercase;
}

.contact-intro h2 {
  margin-bottom: 10px;
}


@media (max-width: 768px) {
  .contact-section {
    padding: 10px 0px;
  }
}




/* FORMULARIO */
.contact-form {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 40px 100px;
}

.form-row h4 {
  font-size: 16px;
  padding-bottom: 14px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 300;
}

.form-row {
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;

}

@media (max-width: 768px) {
  .form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-bottom: 24px;

  }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-top: 0px white;
  border-right: 0px white;
  border-left: 0px white;

  font-family: 'Inter', Arial, sans-serif;
  font-weight: 300;
  color: black;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
  padding-left: 16px;
  color: black;
}



.contact-form button {
  display: inline-flex;
  padding: 0.5rem 1.4rem;
  /* Match filter-btn */
  border-radius: 999px;
  /* Match filter-btn */
  color: #111;
  background-color: transparent;
  border: 1px solid #111;
  /* Visible border */
  font-size: 0.85rem;
  /* Match filter-btn */
  font-weight: 300;
  letter-spacing: .1rem;
  font-family: 'Inter', Arial, sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
  /* Match filter-btn */
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* hover simple como filter-btn active */
.contact-form button:hover {
  background: #4F6B54;
  color: #fff;
  border-color: #4F6B54;
}

/* AJUSTES VISUALES CONTACTO */

.contact-intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}


.contact-click {
  font-size: 12px;
  letter-spacing: 0.25em;
  opacity: 0.5;
  text-transform: uppercase;
}



/* =====================================================
   NOSOTROS – GRID ALINEADO A PROYECTOS
===================================================== */

.about-section {
  padding: 120px 0;
}

.about-grid {
  max-width: 1200px;
  /* ← AJUSTA este valor al mismo que proyectos */
  margin: 0 auto;
  padding: 0 40px;

  display: grid;
  grid-template-columns: 2fr 2fr;
  column-gap: 80px;
  align-items: center;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  /* Wider form column */
  gap: 80px;
  /* Reduced gap */
  align-items: flex-start;
}

/* COLUMNA IZQUIERDA: INFO */
.contact-info-col {
  padding-top: 0px;
}

/* COLUMNA DERECHA: FORMULARIO */
.contact-form-col {
  padding-left: 0;
  /* Removed extra padding */
}


/* RESPONSIVE CONTACTO */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }

  .contact-main-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .contact-form-col {
    padding-left: 0;
  }

  .contact-description {
    max-width: 100%;
    /* Allow full width on mobile */
  }
}

/* TEXTO */
.about-text {
  max-width: 600px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}



@media (max-width: 700px) {

  .about-grid {
    grid-template-columns: 1fr;
    row-gap: 60px;
  }

  .about-text {
    max-width: 100%;
  }

  .about-partners {
    justify-content: column;
    align-items: center;
    gap: 40px;
  }
}




/* ============================
  FOOTER
============================ */


.footer {
  background-color: #346240;
  color: #fff;
  padding: 40px 0 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 140px;
  margin: 0 auto;
}

.footer-left {
  flex: 1;
  text-align: left;
}

.logofooter {
  width: 200px;
  padding-bottom: 40px;
  display: block;
  /* Asegurar bloque para que width funcione bien */
  margin-top: 20px;
}



.footer-social {
  width: 200px;
  /* Mismo ancho del logo */
  text-align: center;
  /* Centrar icono respecto al ancho del logo */
  display: flex;
  justify-content: center;
}

.footer-social a {
  margin-right: 0;
  /* Eliminado margen derecho para centrado perfecto */
}

.footer-social img {
  width: 40px;
}

.footer-right {

  text-align: right;
}

.footer-links {
  list-style: none;
  padding: 0;
  height: 100%;
  width: 100%;

}

.footer-links li {
  font-size: 50px;
}

.footer-links li span {
  margin-right: 10px;
  font-size: 20px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 30px;

}

.footer-credits {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  border-top: 1px solid #ffffff;
  margin-top: 60px;
}

/* =====================================
   FOOTER – MOBILE
===================================== */

@media (max-width: 768px) {

  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 60px;
    padding: 0 40px;
  }


  .footer-right {
    flex: 1;
    text-align: left;
  }
}

/* MOBILE PORTRAIT - FOOTER COMPACTO */
@media (max-width: 768px) and (orientation: portrait) {
  .footer {
    padding: 30px 0 10px 0;
    /* Reduced padding */
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    text-align: center;
    gap: 20px;
    row-gap: 20px;
  }

  .footer-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logofooter {
    width: 120px;
    /* Reduced from 200px */
    padding-bottom: 10px;
    margin-top: 0;
  }

  .footer-social {
    width: auto;
    margin-top: 10px;
    justify-content: center;
  }

  .footer-social img {
    width: 24px;
    /* Smaller icons */
  }

  .footer-right {
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .footer-links li {
    font-size: 24px;
    /* Reduced from 50px */
  }

  .footer-links a {
    font-size: 20px;
    /* Reduced */
  }

  .footer-credits {
    margin-top: 30px;
    /* Reduced from 60px */
    padding: 15px 0;
    /* Reduced from 20px */
  }

  .footer-credits p {
    font-size: 10px;
    /* Smaller text */
  }
}

/* =====================================================
   PROYECTOS – OVERLAY CENTRADO (RESPONSIVE)
===================================================== */

.project {
  position: relative;
  display: block;
  overflow: hidden;
}

.project img {
  width: 100%;
  display: block;
}

/* Overlay ocupa toda la imagen */
.project-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  pointer-events: none;
}

/* Texto del proyecto */
.project-overlay span {
  max-width: 80%;
  line-height: 1.3;

  text-align: center;
  white-space: normal;
  /* permite 2 líneas */
}

/* =====================================================
   PROYECTOS – ANIMACIÓN TEXTO (FADE + SLIDE)
===================================================== */

.project-overlay span {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

/* Al pasar el mouse */
.project:hover .project-overlay span {
  opacity: 1;
  transform: translateY(6px);
}

/* =====================================================
   BOTÓN OUTLINE – REUTILIZABLE
===================================================== */

.btn-outline {
  display: inline-flex;
  padding: 0.5rem 1.4rem;
  /* Match filter-btn */
  border-radius: 999px;
  /* Match filter-btn */
  color: #111;
  background-color: transparent;
  border: 1px solid #111;
  /* Visible border */
  font-size: 0.85rem;
  /* Match filter-btn */
  font-weight: 300;
  letter-spacing: .1rem;
  font-family: 'Inter', Arial, sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
  /* Match filter-btn */
  cursor: pointer;
}

/* hover simple como filter-btn active */
.btn-outline:hover {
  background: #4F6B54;
  color: #fff;
  border-color: #4F6B54;
}

/* CTA bajo proyectos */
.projects-cta {
  margin-top: 60px;
  text-align: center;
  margin-bottom: 60px;
}

/* =====================================
   HERO SLIDESHOW – BANNER PRINCIPAL
===================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;

  /* MUY IMPORTANTE PARA PRO MAX */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slides img.active {
  opacity: 1;
}

/* Overlay */
.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Texto */
.hero-slideshow .hero-text {
  position: absolute;
  bottom: 90px;
  /* 🔑 ahora vive abajo */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  pointer-events: none;
}

.hero-slideshow .hero-text h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero-slideshow .hero-text p {
  font-size: 14px;
  margin-top: 12px;
  letter-spacing: 0.18em;
}

/* Flecha */
.hero-scroll {
  margin-top: 28px;
  font-size: 22px;
  opacity: 0.6;
  animation: scrollHint 1.8s infinite ease-in-out;
}

@keyframes scrollHint {
  0% {
    transform: translateY(0);
    opacity: 0.3;
  }

  50% {
    transform: translateY(8px);
    opacity: 0.8;
  }

  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
}

/* Responsive landscape mobile */
@media (max-width: 900px) and (orientation: landscape) {

  .hero-slideshow {
    height: 100vh;
    /* NO svh ni dvh acá */
  }
}

/* Ajustes HERO texto + flecha en mobile */
@media (max-width: 900px) {

  .hero-slideshow .hero-text {
    bottom: 60px;
  }

  .hero-slideshow .hero-text h1 {
    font-size: 28px;
    letter-spacing: 0.22em;
  }

  .hero-slideshow .hero-text p {
    font-size: 12px;
  }

  .hero-scroll {
    font-size: 20px;
  }
}

/* HERO – móvil portrait (vertical) - FIX para recorte excesivo */
@media (max-width: 768px) and (orientation: portrait) {

  .hero-slideshow .hero-slides img {
    object-fit: contain;
    object-position: center;
  }

  .hero-slideshow {
    background: #346240;
  }

  /* Desactivar overlay oscuro solo en móvil portrait */
  .hero-slideshow::after {
    display: none;
  }
}

/* HERO – ajustes finos en mobile landscape */
@media (max-width: 900px) and (orientation: landscape) {

  .hero-slideshow .hero-text {
    bottom: 32px;
    opacity: 0.9;
    /* más abajo */
  }

  .hero-slideshow .hero-text h1 {
    font-size: 24px;
    /* más chico */
    letter-spacing: 0.18em;
  }

  .hero-slideshow .hero-text p {
    font-size: 11px;
    margin-top: 6px;
  }

  .hero-scroll {
    font-size: 18px;
    /* flecha más sutil */
    margin-top: 12px;
  }
}

/* HERO – móviles grandes en landscape (iPhone Pro Max / Pixel / Ultra) */
@media (orientation: landscape) and (pointer: coarse) and (max-height: 500px) {

  .hero-slideshow .hero-text {
    bottom: 32px;
  }

  .hero-slideshow .hero-text h1 {
    font-size: 24px;
    letter-spacing: 0.18em;
  }

  .hero-slideshow .hero-text p {
    font-size: 11px;
    margin-top: 6px;
  }

  .hero-scroll {
    font-size: 18px;
    margin-top: 12px;
  }
}

/* ===============================
   MENU HAMBURGUESA
================================ */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

body.scrolled .menu-toggle span {
  background: #111;
}

/* ===============================
   NAV MOBILE
================================ */

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #346240;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.4s ease;
  }

  .nav a {
    font-size: 20px;
    margin: 0;
  }

  .nav.open {
    right: 0;
  }

  /* Oculta instagram inline y lo muestra más grande */
  .instagram-link img {
    width: 22px;
  }
}

/* ===============================
   ANIMACIÓN HAMBURGUESA → X
================================ */

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


/* =====================================================
   SPLIT SECTIONS (IMAGEN / TEXTO)
===================================================== */

.split-section {
  display: flex;
  flex-direction: column;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 35vh !important;
  min-height: 350px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.split-image {
  width: 100%;
  height: 100%;
}

/* Imagen */
.split-image img {
  width: 100%;
  height: 100%;
  max-height: 35vh !important;
  /* Match row height */
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Texto */
.split-text {
  background: #346240;
  color: rgb(179, 179, 179);
  padding: 0px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  /* Fill the row height */
}

.split-text p {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

.split-text .key {
  font-weight: 500;
  /* bold elegante */
  color: #ffffff;
  /* color palabras destacadas */
}

/* ESPEJADO SOLO EN DESKTOP */
.split-row.reverse {
  direction: rtl;
}

.split-row.reverse>* {
  direction: ltr;
}

/* =====================================
   SPLIT SECTIONS RESPONSIVE MOBILE
===================================== */

@media (max-width: 900px) and (orientation: landscape) {
  .split-row {
    grid-template-columns: 1fr 1fr;
    height: auto !important;
    min-height: 300px;
  }

  .split-image img {
    max-height: none !important;
    height: 100%;
    object-fit: cover;
  }

  .split-text {
    padding: 30px 40px;
    height: 100%;
  }

  .split-text p {
    font-size: 16px;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .split-row {
    grid-template-columns: 1fr;
    height: auto !important;
    min-height: auto;
  }

  .split-image img {
    max-height: 35vh !important;
    height: auto;
    object-fit: cover;
  }

  .split-text {
    padding: 40px 25px;
    text-align: center;
    align-items: center;
    height: auto;
  }

  .split-text p {
    max-width: 100%;
    margin: 0;
    font-size: 18px;
  }

  /* desactivamos el espejo en mobile */
  .split-row.reverse {
    direction: ltr;
  }
}

* {
  box-sizing: border-box;
}

.equipo {
  padding: 10px 80px 5%;
}

.equipo__contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: center;
}

.equipo__descripcion {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  max-width: 520px;
}

.equipo__persona {
  text-align: center;
}

.equipo__persona img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.equipo__persona h2 {

  letter-spacing: 2px;
  margin-bottom: 10px;
}

.equipo__persona span {
  font-size: 16px;
  color: grey;
  font-family: 'Inter', Arial, sans-serif;
}

/* ESPEJADO SOLO EN DESKTOP */
.equipo__contenido.reverse {
  direction: rtl;
}

.equipo__contenido.reverse>* {
  direction: ltr;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .equipo__contenido {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
  }

  .equipo__descripcion {
    max-width: 100%;
  }
}

/* Descripción General Centrada */
.description-section {
  padding: 100px 80px 20px 80px;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.description-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 50px;
}

.description-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.description-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

@media (max-width: 768px) {
  .description-section {
    padding: 60px 40px 10px 40px;
  }

  .description-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .description-text {
    font-size: 15px;
  }
}

/* ==============================
   PAGINA PROYECTO TIPO
============================== */
/* ==============================
   CONTENEDOR – DISTANCIA DE LA GALERIA DE LOS BORDES DE LA PANTALLA
============================== */

.gallery-wrap {
  --side-margin: 2vw;
  /* 👈 AJUSTÁS ESTO A GUSTO */

  padding-left: var(--side-margin);
  padding-right: var(--side-margin);
  box-sizing: border-box;
}

.gallery-fullbleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ==============================
   GALERÍA – GRID PURO
============================== */

.project-gallery {
  --gap: var(--gallery-gap, 10px);

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1px;
  gap: var(--gap);
}

.project-gallery figure {
  grid-row: span var(--rows);
  align-self: start;
  break-inside: avoid;
  margin-bottom: 0;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
}

/* Imagen destacada */
.project-gallery .is-wide {
  grid-column: span 2;
}

.is-wide {
  grid-column: span 1;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 1024px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-gallery .is-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery .is-wide {
    grid-column: span 1;
  }
}

/* ============================
   LIGHTBOX
============================ */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox figure {
  max-width: 90vw;
  max-height: 90vh;
  margin: 0;
  position: relative;
}

#lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

/* BOTONES */
.lightbox-btn {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  z-index: 10001;
  color: #111;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover {
  opacity: 0.7;
}

.lightbox-btn svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox-btn svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 10px;
  }
}

/* =====================================================
   PROYECTO DETALLE - NUEVA ESTRUCTURA (SIDEBAR + CONTENIDO)
   ===================================================== */

.project-summary-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  /* Columna fija datos, resto memoria */
  gap: 80px;
  margin-top: 60px;
  margin-bottom: 100px;
  align-items: start;
}

/* Columna Izquierda: Datos */
.project-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* Espacio entre bloques de datos */
}

/* COLUMNA IZQUIERDA: INFO */
.contact-info-col {
  padding-top: 0px;
}

.contact-main-title {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
  /* Reduced to fit description */
  letter-spacing: -0.02em;
}

.contact-description {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin-bottom: 40px;
  /* "Margen de aire" requested */
  max-width: 400px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  stroke: #346240;
  /* Green (Default for Email) */
  flex-shrink: 0;
}

/* Specific for Phones: Black Icon */
.contact-phones .contact-icon {
  stroke: #000;
}

.contact-email-link {
  color: #346240;
  /* Green */
  font-weight: 300;
  /* Thin */
  text-decoration: none;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}

.contact-phone-link {
  color: #000;
  /* Black */
  font-weight: 300;
  /* Thin */
  text-decoration: none;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}

.contact-email-link:hover,
.contact-phone-link:hover {
  text-decoration: underline;
}

.contact-details p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  margin-bottom: 12px;
  color: #000;
  font-weight: 400;
}

.contact-phones {
  margin-top: 40px;
  /* Matching the paragraph gap */
}

/* Bloque individual de datos */
.info-block strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 4px;
}

.info-block span {
  display: block;
  font-size: 14px;
  color: #555;
  font-weight: 400;
  line-height: 1.4;
}

/* Columna Derecha: Memoria */
.project-text-content {
  max-width: 800px;
  /* Evita que el texto se estire demasiado */
}

.project-text-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 24px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .project-summary-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
  }

  .project-info-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* En tablet, datos a 2 columnas */
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .project-info-sidebar {
    grid-template-columns: 1fr;
    /* En móvil, datos apilados */
    gap: 24px;
  }
}

/* ============================
   LIGHTBOX - MOBILE PORTRAIT ARROWS
============================ */

@media (max-width: 768px) and (orientation: portrait) {
  #lightbox figure {
    max-height: 75vh;
    /* Leave room for arrows at bottom */
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 50px;
    transform: none;
    background: rgba(255, 255, 255, 0.8);
    /* Optional: distinct click area */
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
  }

  .lightbox-prev {
    left: calc(50% - 60px);
  }

  .lightbox-next {
    right: auto;
    left: calc(50% + 12px);
  }

  .lightbox-btn svg {
    width: 36px;
    height: 36px;
    stroke: #000;
    /* Explicitly black */
  }
}