/* ============================================================
   VB MULTISERVEIS — Estilos principales
   Paleta de marca extraída del logo:
     Forest:      #3a4a45  (gris verdoso oscuro del círculo)
     Forest Deep: #1e2d28  (versión oscura para overlays)
     Forest Dark: #111a17  (footer / fondos muy oscuros)
     Cream:       #f5f2ed  (fondo del logo)
     Cream Light: #faf8f4  (secciones claras alternadas)
     Amber:       #c8903a  (acento cálido, complementa la piedra)
     Text:        #1a2421
     Muted:       #6b7c78
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --forest:       #3a4a45;
  --forest-deep:  #1e2d28;
  --forest-dark:  #111a17;
  --cream:        #f5f2ed;
  --cream-light:  #faf8f4;
  --amber:        #c8903a;
  --amber-dark:   #a97330;
  --text:         #1a2421;
  --muted:        #6b7c78;
  --white:        #ffffff;
  --nav-h:        110px;  /* altura compacta: inner pages + scrolled */
  --nav-h-hero:   220px;  /* altura inicial home: acomoda logo 250px ancho */
  --radius:       6px;
  --shadow-sm:    0 2px 12px rgba(26,36,33,.08);
  --shadow-md:    0 8px 32px rgba(26,36,33,.14);
  --shadow-lg:    0 20px 60px rgba(26,36,33,.2);
  --transition:   0.35s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: transparent;
  line-height: 1.65;
  overflow-x: hidden;
  animation: pageFadeIn 0.4s ease-out both;
}

/* ════════════════════════════════════════════════════════════
   BG MESH — fondo animado suave (todas las páginas)
   ════════════════════════════════════════════════════════════ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #f5f2ed;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.b1 {
  width: clamp(380px, 62vw, 720px);
  height: clamp(380px, 62vw, 720px);
  background: rgba(58,74,69,.17);
  top: -18%; left: -12%;
  animation: bFloat1 28s ease-in-out infinite;
}
.b2 {
  width: clamp(300px, 52vw, 620px);
  height: clamp(300px, 52vw, 620px);
  background: rgba(200,144,58,.11);
  top: 38%; right: -10%;
  animation: bFloat2 35s ease-in-out infinite;
}
.b3 {
  width: clamp(330px, 58vw, 680px);
  height: clamp(330px, 58vw, 680px);
  background: rgba(58,74,69,.09);
  bottom: -14%; left: 24%;
  animation: bFloat3 44s ease-in-out infinite;
}
@keyframes bFloat1 {
  0%,100% { transform: translate(0,0); }
  33%     { transform: translate(7vw,5vh); }
  66%     { transform: translate(-4vw,8vh); }
}
@keyframes bFloat2 {
  0%,100% { transform: translate(0,0); }
  40%     { transform: translate(-6vw,-4vh); }
  70%     { transform: translate(4vw,7vh); }
}
@keyframes bFloat3 {
  0%,100% { transform: translate(0,0); }
  30%     { transform: translate(6vw,-5vh); }
  60%     { transform: translate(-5vw,4vh); }
}
/* Sin animación para accesibilidad y batería en móvil */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-fade-out {
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Utilidades ───────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  transition: var(--transition);
}
.btn-amber {
  background: var(--amber);
  color: var(--white);
}
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,144,58,.35); }
.btn-primary {
  background: var(--forest);
  color: var(--white);
}
.btn-primary:hover { background: var(--forest-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

/* ── Section headers ──────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }
.section-header--light h2,
.section-header--light .section-sub { color: var(--white); }
.section-header--light .section-sub { opacity: .8; }

/* ── Animaciones de entrada ───────────────────────────────── */
.reveal, .fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible, .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1, .reveal-d1 { transition-delay: .15s; }
.reveal-delay-2, .reveal-d2 { transition-delay: .3s; }
.reveal-delay-3, .reveal-d3 { transition-delay: .45s; }

/* ════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════ */
/* ── NAVBAR — transparente sobre hero, sólido al hacer scroll ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled,
#navbar.nav-solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
}

.nav-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-h-hero);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.4s ease;
}
#navbar.scrolled .nav-inner,
#navbar.nav-solid .nav-inner {
  height: var(--nav-h);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  width: 250px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: width 0.4s ease, filter 0.4s ease;
}
#navbar.scrolled .nav-logo img,
#navbar.nav-solid .nav-logo img {
  width: 175px;
  filter: none;
}

/* Links — blancos sobre hero transparente */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  letter-spacing: .04em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

/* Links — oscuros sobre navbar sólido */
#navbar.scrolled .nav-links a,
#navbar.nav-solid .nav-links a {
  color: var(--text);
}
#navbar.scrolled .nav-links a:hover,
#navbar.nav-solid .nav-links a:hover {
  color: var(--forest);
}

/* Btn-nav — outline blanco sobre hero */
.btn-nav {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.65);
  padding: 9px 22px;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-nav:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
}

/* Btn-nav — outline forest sobre navbar sólido */
#navbar.scrolled .btn-nav,
#navbar.nav-solid .btn-nav {
  color: var(--forest);
  border-color: var(--forest);
}
#navbar.scrolled .btn-nav:hover,
#navbar.nav-solid .btn-nav:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.9); /* blanco sobre hero transparente */
  border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .nav-hamburger span,
#navbar.nav-solid .nav-hamburger span {
  background: var(--text); /* oscuro sobre navbar blanco */
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h-hero); /* espacio para el logo transparente de 180px */
  padding-bottom: 72px; /* altura del hero-strip para que los botones no queden debajo */
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Las fotos reales de construcción no necesitan filtro agresivo */
  filter: brightness(.88) contrast(1.05) saturate(.9);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(17,26,23,.82) 0%,
    rgba(30,45,40,.68) 55%,
    rgba(58,74,69,.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 0;
}
.hero-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-content h1 span { color: var(--amber); }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.82);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: .6;
}
.hero-scroll-hint span {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ════════════════════════════════════════════════════════════
   PROMESAS
   ════════════════════════════════════════════════════════════ */
.promises {
  background: var(--forest);
  padding: 36px 0;
}
.promises .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.promise-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  flex: 1;
  min-width: 200px;
}
.promise-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promise-icon svg { width: 20px; height: 20px; color: var(--amber); }
.promise-item strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.promise-item span { font-size: .82rem; color: rgba(255,255,255,.6); }
.promise-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   SERVICIOS
   ════════════════════════════════════════════════════════════ */
.service-block { background: rgba(255,255,255,.82); }
.service-block--alt { background: rgba(248,246,242,.82); }

.service-block-banner {
  position: relative;
  height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
/* Tratamiento de imagen de banner: cohesión visual de marca */
.service-block-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Filtro de color de marca sobre las imágenes reales */
  background: inherit;
  filter: brightness(.75) contrast(1.08) saturate(.8);
  background-size: cover;
  background-position: center;
}
.service-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,26,23,.92) 0%,
    rgba(30,45,40,.6) 45%,
    rgba(58,74,69,.15) 100%
  );
}
.service-block-header {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 720px;
}
.service-category-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,.28);
  line-height: 1;
  margin-bottom: -10px;
}
.service-block-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
}
.service-block-header p {
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  max-width: 540px;
}

.service-cards-wrap {
  padding: 60px 0;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-cards--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(58,74,69,.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(58,74,69,.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition);
}
.service-card:hover .service-card-icon { background: rgba(200,144,58,.12); }
.service-card-icon svg { width: 22px; height: 22px; color: var(--forest); transition: color var(--transition); }
.service-card:hover .service-card-icon svg { color: var(--amber); }
.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ════════════════════════════════════════════════════════════
   PORTFOLIO
   ════════════════════════════════════════════════════════════ */
.portfolio {
  background: rgba(245,242,237,.82);
  padding: 100px 0;
}
.own-work-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(58,74,69,.07);
  border: 1px solid rgba(58,74,69,.18);
  border-radius: 100px;
  padding: 10px 22px;
  width: fit-content;
  margin: 0 auto 40px;
  font-size: .875rem;
  color: var(--forest);
  font-weight: 500;
}
.own-work-callout svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
  flex-shrink: 0;
}
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 24px;
  border-radius: 100px;
  color: var(--muted);
  background: rgba(58,74,69,.07);
  transition: var(--transition);
}
.tab-btn:hover { background: rgba(58,74,69,.14); color: var(--text); }
.tab-btn.active { background: var(--forest); color: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.p-item--tall { grid-row: span 2; }

.p-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--forest-deep);
}
.p-item.hidden {
  display: none;
}

/* Tratamiento de imagen unificado:
   - brightness/contrast/saturate hace que las fotos de banco
     parezcan más editoriales y menos "comerciales de stock"
   - El gradient overlay cubre esquinas con posibles watermarks */
.p-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.92) contrast(1.06) saturate(.78);
  transition: transform .6s cubic-bezier(.4,0,.2,1), filter .6s ease;
  display: block;
}
.p-item:hover img {
  transform: scale(1.07);
  filter: brightness(.6) contrast(1.1) saturate(.7);
}

/* Overlay de color de marca — también cubre watermarks en bordes/esquinas */
.p-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,26,23,.9) 0%,
    rgba(30,45,40,.4) 40%,
    transparent 65%
  );
  /* Esquinas: degradado radial extra para cubrir watermarks en corners */
  /* background-image se combina aquí vía box-shadow trick en ::after */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.p-item:hover .p-overlay { opacity: 1; }

/* Corner watermark cover — esquina inferior derecha */
.p-item::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle at bottom right, rgba(17,26,23,.85) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.p-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 2;
}
.p-overlay em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 3px;
  position: relative;
  z-index: 2;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,15,12,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  /* En lightbox, quitamos el filtro para ver la imagen real */
  filter: none;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 20px; right: 20px; font-size: 1rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ════════════════════════════════════════════════════════════
   NOSOTROS
   ════════════════════════════════════════════════════════════ */
.about {
  background: rgba(255,255,255,.82);
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Tratamiento editorial: imágenes reales mejoradas */
  filter: brightness(.95) contrast(1.06) saturate(.88);
  transition: transform .8s ease;
}
.about-img-wrap:hover img { transform: scale(1.03); }
/* Detalle decorativo en esquina */
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  width: 60px; height: 60px;
  border-top: 3px solid var(--amber);
  border-left: 3px solid var(--amber);
  border-radius: 3px 0 0 0;
  z-index: 2;
  pointer-events: none;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 60px; height: 60px;
  border-bottom: 3px solid var(--forest);
  border-right: 3px solid var(--forest);
  border-radius: 0 0 3px 0;
  z-index: 2;
  pointer-events: none;
}

.about-content .section-tag { display: block; }
.about-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 24px;
}
.about-content > p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 36px;
}
.about-values li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 1px;
}
.about-values strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.about-values span { font-size: .85rem; color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════════════════════════ */
.contact {
  background: var(--forest-deep);
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--forest-deep); color: var(--white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255,255,255,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-legal {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}
.form-legal a { color: var(--amber); text-decoration: underline; }
.form-success {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--forest-deep);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 40px;
}
.form-success.show { display: flex; }
.form-success svg { width: 52px; height: 52px; color: var(--amber); }
.form-success p { color: var(--white); font-size: 1.1rem; font-weight: 600; }

/* Info de contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
a.contact-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(200,144,58,.4);
  transform: translateY(-2px);
}
.contact-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(200,144,58,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card-icon svg { width: 18px; height: 18px; color: var(--amber); }
.contact-card strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.contact-card span {
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

.contact-whatsapp {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #25D366;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 4px;
  transition: background var(--transition), transform var(--transition);
}
.contact-whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.contact-whatsapp svg { width: 28px; height: 28px; color: var(--white); flex-shrink: 0; }
.contact-whatsapp strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
}
.contact-whatsapp span { font-size: .82rem; color: rgba(255,255,255,.8); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  background: var(--forest-dark);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand img,
.footer-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) invert(1); /* fondo oscuro: logo en blanco */
}
.footer-brand > p {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
}
.footer-copy-mobile { display: none; }

.footer-nav h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-nav a {
  display: block;
  font-size: .87rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--amber); }
.footer-address {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
  font-style: italic;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.25); }
.footer-legal-links {
  display: flex;
  gap: 1.25rem;
}
.footer-legal-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.25);
  text-decoration: none;
  transition: color .2s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,.6); }
.footer-credit {
  text-align: center;
  padding: 14px 0 22px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-credit a {
  font-size: .78rem;
  color: rgba(255,255,255,.2);
  transition: color .2s;
}
.footer-credit a:hover { color: var(--amber); }

/* ── Banner de cookies ─────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--forest-dark);
  color: rgba(255,255,255,.85);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--amber); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-btn {
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s;
}
.cookie-btn-accept {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.cookie-btn-accept:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.cookie-btn-reject {
  background: transparent;
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.25);
}
.cookie-btn-reject:hover { border-color: rgba(255,255,255,.6); color: #fff; }

/* ════════════════════════════════════════════════════════════
   WHATSAPP FLOTANTE
   ════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,.55);
}
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }
/* Pulso de llamada de atención */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .contact-card, .contact-whatsapp { flex: 1; min-width: 220px; }
}

@media (max-width: 768px) {
  /* Nav móvil — siempre compacta y sólida */
  .nav-inner {
    height: 110px !important; /* más alta en móvil para logo grande */
  }
  .nav-logo img {
    width: auto !important;
    max-width: 300px !important;
    max-height: 100px !important;
    height: auto !important;
    filter: none !important;
    transition: none;
  }
  .nav-links {
    position: fixed;
    top: 110px; /* alineado con nav móvil */
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 8px;
    box-shadow: var(--shadow-md);
    /* Visibility en vez de translateY(-110%): evita que overflow-x:hidden del body lo corte en iOS Safari */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 99;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--text) !important; /* siempre oscuro en menú móvil */
  }
  .nav-links a:hover { background: var(--cream); color: var(--forest) !important; }
  .btn-nav {
    text-align: center;
    color: var(--forest) !important;
    border-color: var(--forest) !important;
  }
  .nav-hamburger { display: flex; }
  /* Hamburger oscuro: el navbar es blanco en móvil, las líneas deben ser visibles */
  .nav-hamburger span { background: var(--text); }
  /* En móvil el navbar es siempre sólido visualmente */
  #navbar { background: rgba(255,255,255,0.97) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

  /* Hero */
  .hero { padding-top: var(--nav-h); padding-bottom: 220px; } /* strip vertical en móvil ocupa ~210px */
  .hero-content { padding: 40px 0 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; width: 100%; }

  /* Promises */
  .promise-divider { display: none; }
  .promise-item { padding: 14px 20px; }

  /* Service blocks */
  .service-block-banner { height: 280px; }
  .service-block-header { padding: 28px 24px; }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .p-item--tall { grid-row: span 1; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { aspect-ratio: 16/9; }
  .about-img-wrap::before, .about-img-wrap::after { display: none; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Secciones — padding reducido en móvil */
  .sp-section { padding: 60px 0; }
  .pt-section { padding: 60px 0; }
  .cl-section { padding: 60px 0; }
  .cl-grid { grid-template-columns: 1fr !important; max-width: 420px; gap: 14px; }
  .cl-card { padding: 24px 22px; }
  .cl-icon { width: 40px; height: 40px; }
  .cl-card h3 { font-size: 1rem; margin-bottom: 0; }
  .cl-card p { display: none; }
  .about-teaser { padding: 60px 0; }
  .portfolio { padding: 60px 0; }
  .about { padding: 60px 0; }
  .stats-section { padding: 48px 0; }
  .contact-page-only { padding: 60px 0; }
  .service-cards-wrap { padding: 36px 0; }
  .cta-banner { padding: 60px 0; }
}

@media (max-width: 480px) {
  /* Hero — iPhone SE y similares */
  .hero-content h1 { font-size: 2rem; }
  .hero-content { padding: 28px 0 0; }
  .hero { padding-bottom: 240px; }
  .hero-tag { font-size: .72rem; }
  .hero-sub { font-size: .95rem; }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copy-mobile { display: block; font-size: .8rem; color: rgba(255,255,255,.3); margin-top: 6px; }
  .footer-bottom { justify-content: center; }
  .footer-bottom p { display: none; }
  .whatsapp-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }

  /* Botones más compactos */
  .btn { padding: 12px 24px; font-size: .9rem; }
}

/* ════════════════════════════════════════════════════════════
   HERO STRIP — barra blanca en la base del hero
   Crea transición limpia entre hero oscuro y sección blanca
   ════════════════════════════════════════════════════════════ */
.hero-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.3);
}
.hero-strip-items {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 0;
}
.hsi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 32px;
  flex: 1;
  min-width: 180px;
}
.hsi svg { width: 18px; height: 18px; color: var(--forest); flex-shrink: 0; }
.hsi span {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.hsi-divider { width: 1px; height: 28px; background: rgba(58,74,69,.15); flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   SP — SERVICE PREVIEW (homepage, 3 tarjetas grandes)
   ════════════════════════════════════════════════════════════ */
.sp-section {
  background: rgba(255,255,255,.82);
  padding: 100px 0;
}
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sp-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(58,74,69,.1);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.sp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sp-card-img {
  height: 260px;
  overflow: hidden;
}
.sp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.92) contrast(1.06) saturate(.78);
  transition: transform .6s ease;
}
.sp-card:hover .sp-card-img img { transform: scale(1.06); }
.sp-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sp-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(200,144,58,.38);
  line-height: 1;
  margin-bottom: -8px;
}
.sp-card-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.sp-card-body p { font-size: .9rem; color: var(--muted); line-height: 1.7; flex: 1; }
.sp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--forest);
  transition: gap var(--transition), color var(--transition);
}
.sp-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.sp-card:hover .sp-link { color: var(--amber); gap: 10px; }
.sp-card:hover .sp-link svg { transform: translateX(3px); }

/* ════════════════════════════════════════════════════════════
   PT — PORTFOLIO TEASER (homepage, 6 fotos)
   ════════════════════════════════════════════════════════════ */
.pt-section {
  background: rgba(245,242,237,.82);
  padding: 100px 0;
}
.pt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
  margin-bottom: 40px;
}
.pt-item--tall { grid-row: span 2; }
.pt-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--forest-deep);
}
.pt-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.92) contrast(1.06) saturate(.78);
  transition: transform .6s ease, filter .6s ease;
}
.pt-item:hover img { transform: scale(1.07); filter: brightness(.6) contrast(1.1) saturate(.7); }
.pt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,26,23,.88) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity var(--transition);
}
.pt-item:hover .pt-overlay { opacity: 1; }
/* Cubre esquinas con posibles watermarks */
.pt-item::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 28%; height: 28%;
  background: radial-gradient(circle at bottom right, rgba(17,26,23,.8) 0%, transparent 70%);
  pointer-events: none;
}
.pt-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.pt-cta { text-align: center; }

/* ════════════════════════════════════════════════════════════
   CL — CLIENTES (homepage, 3 tarjetas sobre fondo oscuro)
   ════════════════════════════════════════════════════════════ */
.cl-section {
  background: rgba(17, 26, 23, .92);
  padding: 100px 0;
}
.cl-section .section-tag { color: var(--amber); }
.cl-section .section-header h2 { color: #fff; }
.cl-section .section-sub { color: rgba(255,255,255,.6); }
.cl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
}
@media (min-width: 769px) {
  .cl-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 920px;
  }
}
.cl-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 40px 28px 36px;
  text-align: center;
  transition: background .25s, border-color .25s;
}
.cl-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(200,144,58,.45);
}
.cl-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: var(--amber);
}
.cl-icon svg { width: 100%; height: 100%; }
.cl-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cl-card p {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════
   ABOUT TEASER (homepage, 2 columnas)
   ════════════════════════════════════════════════════════════ */
.about-teaser {
  background: rgba(255,255,255,.82);
  padding: 100px 0;
}
.at-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.at-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.at-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.95) contrast(1.06) saturate(.88);
  transition: transform .8s ease;
}
.at-img:hover img { transform: scale(1.03); }
/* Detalle decorativo */
.at-img::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  width: 56px; height: 56px;
  border-top: 3px solid var(--amber);
  border-left: 3px solid var(--amber);
  border-radius: 3px 0 0 0;
  z-index: 2; pointer-events: none;
}
.at-img::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 56px; height: 56px;
  border-bottom: 3px solid var(--forest);
  border-right: 3px solid var(--forest);
  border-radius: 0 0 3px 0;
  z-index: 2; pointer-events: none;
}
.at-content > h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
}
.at-content > p {
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.at-content .btn { margin-top: 24px; }

/* ════════════════════════════════════════════════════════════
   PAGE HERO — banner para páginas internas
   ════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  margin-top: var(--nav-h);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,26,23,.92) 0%,
    rgba(30,45,40,.6) 50%,
    rgba(58,74,69,.2) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 52px 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-content .section-tag { display: block; margin-bottom: 10px; }
.page-hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
}

/* ════════════════════════════════════════════════════════════
   SERVICE BLOCKS (para servicios.html)
   ════════════════════════════════════════════════════════════ */
.service-block { background: rgba(255,255,255,.82); }
.service-block--alt { background: rgba(248,246,242,.82); }

.service-block-banner {
  position: relative;
  height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.service-block-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  filter: brightness(.75) contrast(1.08) saturate(.8);
  background: inherit;
  background-size: cover;
  background-position: center;
}
.service-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,26,23,.92) 0%,
    rgba(30,45,40,.6) 45%,
    rgba(58,74,69,.15) 100%
  );
}
.service-block-header {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 720px;
}
.service-category-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,.28);
  line-height: 1;
  margin-bottom: -10px;
}
.service-block-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
}
.service-block-header p { color: rgba(255,255,255,.78); font-size: .98rem; max-width: 540px; }

.service-cards-wrap { padding: 60px 0; }
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-cards--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service-card {
  background: var(--white);
  border: 1px solid rgba(58,74,69,.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--amber); }
.service-card-icon {
  width: 48px; height: 48px;
  background: rgba(58,74,69,.07);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition);
}
.service-card:hover .service-card-icon { background: rgba(200,144,58,.12); }
.service-card-icon svg { width: 22px; height: 22px; color: var(--forest); transition: color var(--transition); }
.service-card:hover .service-card-icon svg { color: var(--amber); }
.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; }
/* Detalle con bullet de descripción */
.service-card .detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(58,74,69,.08);
}
.service-card .detail li {
  font-size: .85rem;
  color: var(--muted);
  padding: 4px 0 4px 14px;
  position: relative;
}
.service-card .detail li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 5px;
  background: var(--amber);
  border-radius: 50%;
}

/* ════════════════════════════════════════════════════════════
   FULL PORTFOLIO (trabajos.html)
   ════════════════════════════════════════════════════════════ */
.portfolio {
  background: rgba(245,242,237,.82);
  padding: 80px 0;
}
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 24px;
  border-radius: 100px;
  color: var(--muted);
  background: rgba(58,74,69,.07);
  transition: var(--transition);
}
.tab-btn:hover { background: rgba(58,74,69,.14); color: var(--text); }
.tab-btn.active { background: var(--forest); color: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.p-item--tall { grid-row: span 2; }
.p-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--forest-deep);
}
.p-item.hidden { display: none; }
.p-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.92) contrast(1.06) saturate(.78);
  transition: transform .6s ease, filter .6s ease;
}
.p-item:hover img { transform: scale(1.07); filter: brightness(.6) contrast(1.1) saturate(.7); }
.p-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,26,23,.9) 0%, rgba(30,45,40,.4) 40%, transparent 65%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.p-item:hover .p-overlay { opacity: 1; }
.p-item::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 30%; height: 30%;
  background: radial-gradient(circle at bottom right, rgba(17,26,23,.85) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.p-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem; font-weight: 700;
  color: var(--white);
  position: relative; z-index: 2;
}
.p-overlay em {
  font-style: normal;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber);
  margin-top: 3px;
  position: relative; z-index: 2;
}

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(10,15,12,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img-wrap { max-width: 90vw; max-height: 85vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img-wrap img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); filter: none; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: none; border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 20px; right: 20px; font-size: 1rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ════════════════════════════════════════════════════════════
   NOSOTROS PAGE
   ════════════════════════════════════════════════════════════ */
.about-page { background: rgba(255,255,255,.82); padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.95) contrast(1.06) saturate(.88);
  transition: transform .8s ease;
}
.about-img-wrap:hover img { transform: scale(1.03); }
.about-img-wrap::before {
  content: '';
  position: absolute; top: -12px; left: -12px;
  width: 56px; height: 56px;
  border-top: 3px solid var(--amber); border-left: 3px solid var(--amber);
  border-radius: 3px 0 0 0; z-index: 2; pointer-events: none;
}
.about-img-wrap::after {
  content: '';
  position: absolute; bottom: -12px; right: -12px;
  width: 56px; height: 56px;
  border-bottom: 3px solid var(--forest); border-right: 3px solid var(--forest);
  border-radius: 0 0 3px 0; z-index: 2; pointer-events: none;
}
.about-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900; color: var(--text);
  line-height: 1.15; margin-bottom: 20px;
}
.about-content > p { font-size: .98rem; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.about-values { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 32px; }
.about-values li { display: flex; align-items: flex-start; gap: 14px; }
.value-check {
  flex-shrink: 0; width: 26px; height: 26px;
  background: var(--forest); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; margin-top: 1px;
}
.about-values strong { display: block; font-family: 'Montserrat', sans-serif; font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.about-values span { font-size: .85rem; color: var(--muted); }

/* Valores en grid (nosotros.html) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 0;
  border-top: 1px solid rgba(58,74,69,.1);
}
.value-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--cream-light);
  border-radius: var(--radius);
}
.value-card-icon {
  width: 60px; height: 60px;
  background: var(--forest);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.value-card-icon svg { width: 26px; height: 26px; color: var(--white); }
.value-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 800;
  color: var(--text); margin-bottom: 10px;
}
.value-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* CTA banner */
.cta-banner {
  background: var(--forest);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; color: var(--white);
  margin-bottom: 14px;
}
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: 32px; }
.cta-banner .btn-amber { display: inline-flex; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE ADICIONAL
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sp-grid { grid-template-columns: 1fr; gap: 20px; }
  .sp-card { flex-direction: row; }
  .sp-card-img { width: 280px; height: auto; flex-shrink: 0; }
  .pt-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .at-grid { grid-template-columns: 1fr; gap: 40px; }
  .at-img { aspect-ratio: 16/9; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { aspect-ratio: 16/9; }
  .about-img-wrap::before, .about-img-wrap::after { display: none; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sp-grid { grid-template-columns: 1fr; }
  .sp-card { flex-direction: column; }
  .sp-card-img { width: 100%; height: 220px; }
  .pt-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .pt-item--tall { grid-row: span 1; }
  .at-img::before, .at-img::after { display: none; }
  .hero-strip-items { flex-direction: column; gap: 0; padding: 16px 0; }
  .hsi { padding: 10px 24px; min-width: unset; }
  .hsi-divider { width: 80%; height: 1px; margin: 0 auto; }
  .service-block-banner { height: 280px; }
  .service-block-header { padding: 28px 24px; }
  .values-grid { grid-template-columns: 1fr; }
  .page-hero { height: 280px; }

  /* Jump nav — submenu vertical en móvil */
  .jump-nav {
    position: static;
    background: var(--white);
    box-shadow: none;
  }
  .jump-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px;
    gap: 0;
  }
  .jump-link {
    flex: none;
    width: 100%;
    text-align: left;
    padding: 9px 0 9px 12px;
    font-size: .7rem;
    white-space: nowrap;
    border-radius: 0;
    border: none;
    border-bottom: none;
    border-left: 3px solid rgba(58,74,69,.1);
  }
  .jump-link.jl-active {
    color: var(--amber) !important;
    background: none;
    border-left-color: var(--amber);
  }

  /* Service blocks — banner más compacto y legible */
  .service-block-banner { height: 200px; }
  .service-block-header { padding: 20px 20px; }
  .service-category-tag { font-size: 2rem; margin-bottom: -6px; }
  .service-block-header h2 { font-size: 1.3rem; margin-bottom: 6px; }
  .service-block-header p { font-size: .85rem; }

  /* Cards — 1 columna forzada en móvil */
  .service-cards,
  .service-cards--2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .pt-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .pt-item--tall { grid-row: span 1; }
}

/* ════════════════════════════════════════════════════════════
   JUMP NAV — navegación interna sticky (servicios.html)
   ════════════════════════════════════════════════════════════ */
.jump-nav {
  background: var(--white);
  border-bottom: none;
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  box-shadow: 0 2px 8px rgba(26,36,33,.04);
}
.jump-nav-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.jump-nav-inner::-webkit-scrollbar { display: none; }
.jump-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 28px 6px;
  border: none;
  background: none;
  border-bottom: 3px solid rgba(58,74,69,.1);
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.jump-link:hover { color: var(--forest); border-bottom-color: rgba(58,74,69,.28); }
.jump-link.jl-active { color: var(--amber); border-bottom-color: var(--amber); }

/* ════════════════════════════════════════════════════════════
   STATS — métricas (nosotros.html)
   ════════════════════════════════════════════════════════════ */
.stats-section {
  background: var(--forest);
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 32px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.45;
}

/* Nav active state */
.nav-links a.nav-active { color: var(--amber); }

/* ════════════════════════════════════════════════════════════
   CONTACT PAGE ONLY — contacto.html (sin formulario)
   ════════════════════════════════════════════════════════════ */
.contact-page-only {
  background: var(--forest-deep);
  padding: 100px 0;
}
.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-page-col h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin: 10px 0 14px;
}
.contact-page-col > p {
  color: rgba(255,255,255,.62);
  font-size: .98rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.contact-wa-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #25D366;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 12px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 32px rgba(37,211,102,.32);
}
.contact-wa-hero:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,.44);
}
.contact-wa-hero svg { width: 36px; height: 36px; color: var(--white); flex-shrink: 0; }
.contact-wa-hero strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.contact-wa-hero span { font-size: .88rem; color: rgba(255,255,255,.88); }
.contact-page-cards { display: flex; flex-direction: column; gap: 10px; }
.contact-ig {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: background var(--transition), border-color var(--transition);
}
.contact-ig:hover { background: rgba(255,255,255,.1); border-color: rgba(200,144,58,.4); }
.contact-ig-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: rgba(200,144,58,.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.contact-ig-icon svg { width: 18px; height: 18px; color: var(--amber); }
.contact-ig strong {
  display: block; font-family: 'Montserrat', sans-serif;
  font-size: .85rem; font-weight: 700; color: var(--white); margin-bottom: 3px;
}
.contact-ig span { font-size: .82rem; color: rgba(255,255,255,.5); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — nuevas secciones
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .contact-page-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child { border-bottom: none; }
  .jump-link { padding: 14px 20px; font-size: .75rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .p-item--tall { grid-row: span 1; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
}

/* ── TYPEWRITER — hero index ────────────────────────────────── */
.tw-wrap {
  display: inline-block;
  color: var(--amber);
  min-width: 2px; /* evita colapso cuando el texto está vacío */
}
.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--amber);
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 1px;
  animation: tw-blink .75s step-end infinite;
}
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Overlay reforzado para imágenes con zonas muy iluminadas (arco, cielo) */
.page-hero--custom-overlay::before {
  background: linear-gradient(
    to top,
    rgba(15,23,20,.97) 0%,
    rgba(15,23,20,.80) 40%,
    rgba(15,23,20,.60) 70%,
    rgba(15,23,20,.40) 100%
  );
}

/* ── LANG SWITCHER ───────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
  background: rgba(58, 74, 69, 0.08);
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 5px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 16px;
}

.flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.lang-btn:hover {
  color: var(--forest);
  background: rgba(58, 74, 69, 0.08);
}

.lang-btn.lang-active {
  background: #fff;
  color: var(--forest);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

/* En navbar transparente (hero home) los botones van en blanco */
#navbar:not(.scrolled):not(.nav-solid) .lang-switcher {
  background: rgba(255, 255, 255, 0.15);
}

#navbar:not(.scrolled):not(.nav-solid) .lang-btn {
  color: rgba(255, 255, 255, 0.8);
}

#navbar:not(.scrolled):not(.nav-solid) .lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#navbar:not(.scrolled):not(.nav-solid) .lang-btn.lang-active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: none;
}

/* Móvil: el selector va dentro del menú desplegable */
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(58, 74, 69, 0.12);
    width: 100%;
    justify-content: flex-start;
    background: none;
    border-radius: 0;
    padding: 12px 0 0;
  }

  .lang-btn {
    font-size: 12px;
    padding: 7px 12px;
  }

  .lang-btn.lang-active {
    background: rgba(58, 74, 69, 0.1);
    box-shadow: none;
  }
}
