/* ===== Ajustes SOLO para la demo estática =====
   El tema original revela el contenido y da el alto/posición con JavaScript
   (GSAP/Barba/slider). Como esta demo aún no incluye ese JS, aquí forzamos
   un layout estático equivalente: hero a pantalla completa + footer en flujo. */

/* Seguridad (SOLO sin JS): si el IntersectionObserver no corre, dejamos todo
   visible para que nunca se quede en blanco. Con JS activo (html.js) NO se
   aplica, así el scroll-reveal del tema funciona:
   [data-inview] nace oculto y InView.js lo pasa a [data-inview="true"]. */
html:not(.js) [data-inview]:not([data-inview="true"]) {
  opacity: 1 !important;
  transform: none !important;
}

/* Ocultar el preloader (no hay JS que lo cierre) */
.preloader {
  display: none !important;
}

/* Scroll vertical normal (el tema pone body:fixed para el scroll por JS).
   OJO: usamos overflow-x:clip (no hidden) + overflow-y:visible para NO convertir
   el body en contenedor de scroll — si no, se rompe el position:sticky del home. */
html,
body {
  overflow-x: clip !important;
  overflow-y: visible !important;
  height: auto !important;
}
body {
  position: static !important;
  top: auto !important;
  left: auto !important;
}

/* Contenedores en flujo normal */
#barba-wrapper,
.barba-container,
.vs-section,
.main {
  height: auto !important;
  position: static !important;
  transform: none !important;
}

/* El slider de figuras va vacío en la portada: lo ocultamos */
.figures-slider {
  display: none !important;
}

/* La marca se superpone (no empuja el video hacia abajo) */
.banner {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
}

/* HERO: el título "INAR ASOCIADOS SAS" del banner se encimaba con el logo del
   riel (75px). Lo recorremos a la derecha para que libre el logo. */
body.home .banner {
  padding-left: 6rem !important; /* ~96px: pasa el riel de 75px del logo + aire */
}

/* El logo del riel es un <img> (el tema dimensionaba un <svg> inline). Lo
   dejamos llenar su contenedor (puede crecer al abrir el menú; a JP no le
   molesta). El click del menú se resuelve con pointer-events más abajo. */
.menu-bar .site-logo img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* HERO de video a pantalla completa (desde arriba del todo).
   OJO: usar 100% (NO 100vw) para no desbordar por la barra de scroll. */
body.home main.main {
  width: 100% !important;
  margin: 0 !important;
}
.slide-covers {
  position: relative !important;
  width: 100% !important;
  height: 100vh !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  z-index: 1 !important;
  background: #294e2c !important; /* verde de marca mientras carga el video (evita parpadeo negro) */
}
.slide-covers .cover,
.slide-covers .cover .cover-content,
.slide-covers .video-wrapper,
.slide-covers video {
  left: 0 !important;
}
.slide-covers .cover {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.slide-covers .cover-content,
.slide-covers .background-video-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}
.slide-covers .video-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}
.slide-covers video,
#video-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform: none !important;
}
.curtain {
  display: none !important;
}

/* Footer en flujo normal, debajo del hero (no fijo) */
.content-info {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  height: auto !important;
  transform: none !important;
}

/* (El menú-cajón se define de forma consolidada más abajo, sección "MENÚ CAJÓN".) */

/* Con el menú abierto: la barra queda por encima (para el botón CERRAR) pero
   NO debe bloquear los clicks del cajón. Mantenemos su ancho normal (75px) para
   que el logo NO se infle/redimensione; solo la hacemos "click-through" y
   dejamos clickeable el botón de cerrar. */
.menu-open .menu-bar {
  background: transparent !important;
  z-index: 9001 !important;
  pointer-events: none !important;
}
.menu-open .menu-bar .menu-icon {
  pointer-events: auto !important;
}

/* ============================================================
   CORRECCIONES DE LAYOUT/ANCHO (feedback JP)
   ============================================================ */

/* (1) HOME: la barra lateral es blanca con borde derecho gris y, fija a lo
   alto, cruza el video/footer oscuro como una línea/franja. En el home la
   hacemos transparente y sin borde (así no cruza ni corta el logo). */
body.home .menu-bar {
  background: transparent !important;
  border-right: none !important;
}
/* PERO en el home con el menú ABIERTO sí mostramos la línea vertical del riel
   (como en las demás páginas): se dibuja sobre el cajón blanco a los 75px. */
body.home.menu-open .menu-bar {
  border-right: 1px solid #ddd !important;
}
/* La línea divisoria de 1px (#ddd) del tema (cruza el footer oscuro del home).
   La quitamos en todos lados (es un divisor sutil, invisible en páginas claras). */
.main::after,
footer.content-info::after {
  display: none !important;
}
/* FOOTER DEL HOME: debe EMPEZAR donde termina la línea vertical del riel del
   menú (75px = 4.6875rem) para que la línea NO lo cruce — igual que las páginas
   internas. El video del hero sí queda a pantalla completa (no se toca .main). */
body.home footer.content-info {
  width: calc(100% - 4.6875rem) !important;
  margin-left: 4.6875rem !important;
  margin-right: 0 !important;
}
/* Reactivamos SOLO en el footer del home la línea divisoria de 1px del tema
   (::after, left:0, alto completo, #ddd). Como el footer ahora empieza en 75px,
   la línea cae justo en su borde izquierdo y lo bordea sin cruzarlo. */
body.home footer.content-info::after {
  display: block !important;
}

/* (2) PÁGINAS INTERNAS: que el contenido llene hasta el borde derecho.
   El tema lo centra con width:calc(100% - 150px); margin:0 auto, dejando
   una franja gris a la derecha. Lo pegamos al borde (solo deja el riel de 75px
   a la izquierda para el menú). */
body:not(.home) main.main,
body:not(.home) footer.content-info {
  width: calc(100% - 4.6875rem) !important;
  margin-left: 4.6875rem !important;
  margin-right: 0 !important;
}

/* ============================================================
   MENÚ CAJÓN (~1/3 a la izquierda) — deslizamiento limpio
   Anula el menú a pantalla completa + paneles de color del tema.
   Clave: el ANCHO es el mismo en cerrado y abierto (no salta), solo
   animamos el transform → entra/sale deslizando sin "drag" raro.
   ============================================================ */
.site-menu {
  width: clamp(300px, 33vw, 480px) !important;
  max-width: none !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  height: 100vh !important;
  background: #ffffff !important;
  z-index: 9000 !important;
  overflow: hidden !important;
  transform: translate3d(-100%, 0, 0) !important; /* cerrado: fuera por la izquierda */
  transition: transform 450ms cubic-bezier(0.86, 0, 0.07, 1) !important;
  transition-delay: 0ms !important;
  box-shadow: none !important;
}
.site-menu.open {
  transform: translate3d(0, 0, 0) !important; /* abierto: a la vista */
  box-shadow: 0 0 60px rgba(13, 33, 14, 0.35) !important;
}
/* Matamos los paneles de color a pantalla completa del tema en TODO estado */
.site-menu::before,
.site-menu::after {
  display: none !important;
}
.site-menu .menu-list {
  padding-left: 3.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* Ítems del menú: aparecen en cascada (fade + suben) al abrir el cajón. */
.site-menu .menu-list .menu-item {
  opacity: 0 !important;
  transform: translate3d(0, 20px, 0) !important;
  transition: opacity 500ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 500ms cubic-bezier(0.19, 1, 0.22, 1) !important;
}
.site-menu.open .menu-list .menu-item {
  opacity: 1 !important;
  transform: none !important;
}
.site-menu.open .menu-list .menu-item:nth-child(1) {
  transition-delay: 220ms !important;
}
.site-menu.open .menu-list .menu-item:nth-child(2) {
  transition-delay: 270ms !important;
}
.site-menu.open .menu-list .menu-item:nth-child(3) {
  transition-delay: 320ms !important;
}
.site-menu.open .menu-list .menu-item:nth-child(4) {
  transition-delay: 370ms !important;
}
.site-menu.open .menu-list .menu-item:nth-child(5) {
  transition-delay: 420ms !important;
}
.site-menu.open .menu-list .menu-item:nth-child(6) {
  transition-delay: 470ms !important;
}
/* Fondo semitransparente detrás del menú (el resto de la página se ve atenuada) */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 33, 14, 0.55);
  z-index: 8990;
  cursor: pointer;
}

/* ============================================================
   FILTRO DE PROYECTOS — fila horizontal
   El tema usaba Flickity (JS) para el carrusel horizontal; sin portarlo, los
   <li> quedaban apilados. Los ponemos en fila que envuelve, y como quitamos el
   indicador deslizante (JS), marcamos el filtro activo directamente.
   ============================================================ */
.projects-nav-list {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  list-style: none !important;
  cursor: default !important;
  gap: 0.75rem 2rem !important;
  padding: 1.25rem 3% 1.5rem !important;
}
.projects-nav-list li {
  width: auto !important;
  margin: 0 !important;
}
.projects-nav-item > a {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}
.projects-nav-item > a {
  opacity: 0.55;
  transition: opacity 200ms;
  cursor: pointer;
}
.projects-nav-item:hover > a,
.projects-nav-item.active > a {
  opacity: 1;
  font-weight: 700;
}

/* Navegación entre fichas: el tema ya estiliza .related-projects/.prev-next.
   Alineamos "siguiente" a la derecha y estilamos el enlace de volver. */
.related-projects .next-project {
  text-align: right;
}
.back-to-projects {
  margin: 1.5rem 0 3.5rem;
  padding: 0 3vw;
}
.back-to-projects a {
  text-decoration: underline;
  font-weight: 500;
}

/* ============================================================
   FICHA DE PROYECTO: estadísticas, galería, tabla técnica, mapa
   (datos reales de la BD; layout de una sola columna)
   ============================================================ */
.services-intro {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.7;
  max-width: 72rem;
  margin: 0 0 1rem;
  padding: 2vw 5% 1vw 5%;
}
.project-stats {
  margin: 2.5rem 0;
}
.project-stats .stats-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.75rem 3rem !important;
  list-style: none !important;
  padding: 0 !important;
}
.project-stats .metadata-item {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}
.project-stats .stats-number {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.05;
  color: #294e2c;
  white-space: normal;
}
.project-stats .stats-title {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.65;
  margin-top: 0.35rem;
}
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
  margin: 2.5rem 0;
}
.project-gallery-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
/* La tabla técnica deja de ser columna lateral del 35% */
.project-data {
  width: 100% !important;
  margin: 2.5rem 0;
}
.project-data .project-data-title h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: #294e2c;
}
/* Tablas técnicas en rejilla de tarjetas: llenan el ancho con filas cortas
   (concepto–valor juntos), en vez de filas larguísimas a todo el ancho. */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem 2.5rem;
}
.tech-card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #294e2c;
}
.tech-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
  line-height: 1.35;
}
.tech-k {
  opacity: 0.8;
}
.tech-v {
  font-weight: 600;
  text-align: right;
}
.project-map {
  margin: 2.5rem 0;
  max-width: 860px;
}
.project-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ============================================================
   HOME ANCLADO: el video queda fijo de fondo y, al hacer scroll, va
   cambiando el texto de las cifras (sin que el hero se mueva). Track alto
   + panel sticky; el progreso del scroll define la cifra activa.
   ============================================================ */
.home-hero {
  position: relative;
  width: 100%;
}
.home-hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #294e2c;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 33, 14, 0.2), rgba(13, 33, 14, 0.66));
}
.hero-texts {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero-fig {
  position: absolute;
  left: 0;
  bottom: 14vh;
  padding: 0 8% 0 10%;
  max-width: 1100px;
  color: #fff;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 650ms cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}
.hero-fig.active {
  opacity: 1;
  transform: none;
}
.hero-figure-title {
  display: block;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.hero-figure-desc {
  display: block;
  margin-top: 1.2rem;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  max-width: 62ch;
  opacity: 0.92;
}
.hero-progress {
  position: absolute;
  right: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 3;
}
.hero-progress li {
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 300ms;
}
.hero-progress li.active {
  background: #fff;
}
@media (max-width: 768px) {
  .hero-fig { padding: 0 1.5rem; bottom: 16vh; }
  .hero-progress { right: 1rem; }
}

/* ============================================================
   FICHA: columna de ancho legible (el contenido ya no se estira a
   todo el ancho ni los valores quedan pegados al borde derecho)
   ============================================================ */
.single-project {
  max-width: 1500px;
  padding: 0 2rem;
}
/* La descripción se mantiene en ancho legible; las rejillas (tablas, galería)
   llenan el ancho del contenedor. */
.single-project .single-content {
  line-height: 1.75;
  max-width: 820px;
}

/* ============================================================
   SERVICIOS (estructura del tema): texto 65% + icono 35%, alternados.
   Los servicios SIN icono ocupan el ancho completo (no dejan media página
   vacía). Los productos van como una lista en columnas para llenar mejor.
   ============================================================ */
.service-container--noicon .main-container {
  width: 100% !important;
}
@media screen and (min-width: 850px) {
  .product-list {
    column-count: 2;
    column-gap: 4%;
  }
  .product-list .service-item {
    break-inside: avoid;
  }
  .service-container--noicon .product-list {
    column-count: 3;
  }
}

/* ============================================================
   CONTACTO: info + formulario (mitad) y mapa (mitad)
   ============================================================ */
.contact-form-section {
  padding: 2.5rem 6% 3rem;
  border-top: 1px solid #ddd;
}
.contact-form-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #294e2c;
  margin: 0 0 1.5rem;
}
.contact-form2 .cf-field {
  margin-bottom: 1.1rem;
}
.contact-form2 label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}
.contact-form2 input,
.contact-form2 textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
  transition: border-color 200ms;
}
.contact-form2 input:focus,
.contact-form2 textarea:focus {
  outline: none;
  border-color: #294e2c;
}
.contact-form2 textarea {
  resize: vertical;
}
.contact-form2 .cf-submit {
  appearance: none;
  border: none;
  background: #294e2c;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 200ms;
}
.contact-form2 .cf-submit:hover {
  background: #1c3a1f;
}
.contact-form2 .cf-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #294e2c;
}
.contact-maps-link {
  margin-top: 1.2rem;
}
.contact-maps-link a {
  text-decoration: underline;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}
@media (max-width: 849px) {
  .contact-map iframe {
    min-height: 320px;
  }
}

/* ============================================================
   HOME — SECCIONES después del hero anclado (áreas, destacados, sobre, CTA)
   Para que el home deje de sentirse "pobre".
   ============================================================ */
.home-section {
  padding: 6rem 2rem;
  background: #fff;
}
/* En el home, el riel del menú (75px) está fijo a la izquierda. Las secciones
   reservan ese espacio para que el icono de hamburguesa no choque con el texto
   (igual que las páginas internas dejan los 75px libres). */
@media (min-width: 850px) {
  body.home .home-section,
  body.home .home-cta-inner {
    padding-left: 4.6875rem;
  }
}
.home-section-inner {
  max-width: 1500px;
  margin: 0 auto;
}
.home-section-head {
  margin-bottom: 3rem;
}
.home-section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.home-section-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: #294e2c;
  opacity: 0.75;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.home-section-title {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 700;
  color: #294e2c;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}
.home-section-link {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #294e2c;
  text-decoration: none;
  border-bottom: 2px solid #294e2c;
  padding-bottom: 2px;
  transition: opacity 200ms;
}
.home-section-link:hover {
  opacity: 0.7;
}

/* Áreas de experiencia */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.area-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.75rem;
  background: #f6f6f4;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: transform 300ms cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 300ms;
  border-top: 3px solid transparent;
}
.area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(13, 33, 14, 0.1);
  border-top-color: #294e2c;
}
.area-icon {
  width: 54px !important; /* anula main.main img{width:100%} del tema */
  height: 54px !important;
  margin-bottom: 1.25rem;
  display: block;
}
.area-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #294e2c;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
.area-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  margin: 0 0 1.4rem;
  flex: 1;
}
.area-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #294e2c;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .areas-grid { grid-template-columns: 1fr; }
}

/* Proyectos destacados */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.75rem;
}
.featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
}
.featured-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}
.featured-card:hover .featured-img {
  transform: scale(1.05);
}
.featured-body {
  padding: 1.25rem 0.1rem 0;
}
.featured-cat {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #294e2c;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.featured-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 0.4rem;
}
.featured-loc {
  font-size: 0.85rem;
  color: #777;
}
@media (max-width: 1000px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* Sobre INAR */
.home-about {
  background: #f6f6f4;
}
.home-about-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem;
  align-items: center;
}
.home-about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
  margin: 1rem 0 1.6rem;
  max-width: 60ch;
}
.home-about-link {
  display: inline-block;
  font-weight: 700;
  color: #294e2c;
  text-decoration: none;
  border-bottom: 2px solid #294e2c;
  padding-bottom: 2px;
}
.home-about-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.home-about-stats li {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border-left: 4px solid #294e2c;
}
.home-about-stats .num {
  font-size: 2.4rem;
  font-weight: 700;
  color: #294e2c;
  line-height: 1;
}
.home-about-stats .lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #555;
  margin-top: 0.5rem;
  font-weight: 600;
}
@media (max-width: 900px) {
  .home-about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* CTA contacto */
.home-cta {
  background: #294e2c;
  color: #fff;
}
.home-cta-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  padding: 4rem 2rem;
}
.home-cta-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}
.home-cta-text {
  margin: 0.6rem 0 0;
  opacity: 0.88;
  font-size: 1.05rem;
}
.home-cta-btn {
  flex: 0 0 auto;
  display: inline-block;
  background: #fff;
  color: #294e2c;
  padding: 1.05rem 2.2rem;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 2px;
  transition: transform 250ms, box-shadow 250ms;
  font-size: 0.95rem;
}
.home-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
@media (max-width: 780px) {
  .home-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FICHA — Hero con foto del proyecto y lightbox para la galería
   ============================================================ */
.ficha-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  margin: 0 0 3rem;
  overflow: hidden;
}
.ficha-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 33, 14, 0.15) 0%, rgba(13, 33, 14, 0.78) 100%);
}
.ficha-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2rem 3rem;
  max-width: 1500px;
  margin: 0 auto;
  color: #fff;
}
.ficha-hero .project-meta {
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.ficha-hero .project-location {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}
.ficha-hero .page-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 1.2rem;
  max-width: 25ch;
}
.ficha-hero .project-category {
  color: #fff;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.ficha-hero .project-client {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
}
.ficha-hero .project-client strong {
  color: #fff;
  font-weight: 700;
}

/* Galería: thumb como botón (reset) */
.gallery-thumb {
  all: unset;
  cursor: pointer;
  display: block;
  border-radius: 2px;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100% !important;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: opacity 250ms, transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}
.gallery-thumb:hover img {
  opacity: 0.92;
  transform: scale(1.04);
}

/* Lightbox: visor en pantalla completa */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: lightboxIn 200ms ease-out;
}
@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-img {
  max-width: 92%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  transition: background 200ms;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 0 0.4rem;
}
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-img { max-width: 95%; max-height: 80vh; }
}

/* ============================================================
   FICHA — Refinamientos de tipografía y espacios (que dejen de
   verse "pegadas" las cosas)
   ============================================================ */
/* Header sin hero (proyectos sin galería) */
.single-project > .single-project-header {
  margin: 2rem 0 3rem;
  padding-top: 1rem;
}
.single-project > .single-project-header .project-meta {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #294e2c;
  opacity: 0.85;
  margin: 0 0 0.4rem;
}
.single-project > .single-project-header .project-location {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
  margin: 0 0 2rem;
}
.single-project > .single-project-header .page-title {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #294e2c;
  margin: 0 0 1.4rem;
  max-width: 22ch;
}
.single-project > .single-project-header .project-category {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #294e2c;
  opacity: 0.85;
  margin: 0 0 1.1rem;
}
.single-project > .single-project-header .project-client {
  font-size: 1rem;
  color: #444;
  margin: 0;
}

/* Banda de estadísticas con bordes (deja de "flotar") */
.project-stats {
  margin: 3rem 0 !important;
}
.project-stats .stats-list {
  padding: 1.75rem 0 !important;
  border-top: 1px solid #ddd !important;
  border-bottom: 1px solid #ddd !important;
}

/* Encabezados del cuerpo de la descripción (RESUMEN, ALCANCE, etc.) */
.single-project .single-content {
  margin: 2.5rem 0 !important;
}
.single-content h2,
.single-content h3,
.single-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #294e2c;
  margin: 2rem 0 0.9rem;
}
.single-content h2:first-child,
.single-content h3:first-child,
.single-content h4:first-child {
  margin-top: 0;
}
.single-content p {
  margin: 0 0 0.9rem;
}

/* Datos técnicos */
.project-data {
  margin: 3.5rem 0 !important;
}
.project-data .project-data-title h3 {
  font-size: 1.05rem !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: 1.2px;
}
.tech-card-title {
  font-size: 1.02rem !important;
}

/* Galería + mapa: más respiro */
.project-gallery-grid {
  margin: 3rem 0 !important;
}
.project-map {
  margin: 3.5rem 0 !important;
}

/* Proyectos siguiente/anterior — FIX CRÍTICO: type y title como bloque */
.related-projects {
  margin: 4rem 0 0.5rem !important;
  padding-top: 2.5rem !important;
}
.related-projects .prev-next .prev-next-type {
  display: block !important;
  font-size: 0.78rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: #294e2c !important;
  opacity: 0.7;
  margin: 0 0 0.7rem !important;
}
.related-projects .prev-next .prev-next-title {
  display: block !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #1a1a1a !important;
  width: auto !important;
}
.back-to-projects {
  margin: 1.5rem 0 4rem !important;
}
