:root {
  --color-primary: #1B2A41;
  --color-primary-hover: #121E30;
  --color-accent: #D9772E;
  --color-accent-hover: #A0500F;
  --color-text: #211F1A;
  --color-text-muted: #5C5A52;
  --color-bg: #FAF8F4;
  --color-bg-alt: #EDE4D3;
  --color-border: #E2DACB;
  --color-dark-bg: #1B2A41;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(30, 26, 16, 0.07);
  --shadow-lg: 0 20px 48px rgba(30, 26, 16, 0.14);
  --container-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
svg[stroke="currentColor"] { stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.5rem, 4.5vw + 1rem, 4.2rem); line-height: 1.02; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--color-text-muted); font-size: 1.0625rem; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--color-accent-hover);
  font-weight: 500;
  background: rgba(217, 119, 46, 0.09);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.eyebrow--center { margin-left: auto; margin-right: auto; }
.confianza .eyebrow--center { display: flex; justify-content: center; background: none; padding: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--color-text-muted); }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

.section-head p.lead { margin-top: 6px; max-width: 420px; }
.section-head .link-arrow { margin-top: 12px; display: inline-block; }

.link-arrow {
  color: var(--color-accent-hover);
  font-weight: 600;
  font-size: 0.95rem;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.btn--primary { background: var(--color-accent-hover); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--color-primary); }

.btn--ghost { border-color: var(--color-primary); color: var(--color-primary); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--color-primary); background: var(--color-bg-alt); }

.btn--full { width: 100%; text-align: center; border: none; cursor: pointer; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.header__logo { height: 76px; width: auto; }

.nav {
  display: none;
  align-items: center;
  gap: 32px;
  font-weight: 500;
}

.nav a { color: var(--color-primary); font-size: 1rem; }
.nav a:hover { color: var(--color-accent); }

.nav a.nav__cta {
  background: var(--color-accent-hover);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius);
}
.nav a.nav__cta:hover { background: var(--color-primary); color: #fff; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 0; overflow: hidden; }

.hero__inner {
  display: grid;
  gap: 32px;
}

.hero__col { padding: 40px 0 48px; }
.hero__col h1 { font-size: clamp(2rem, 2.6vw + 1rem, 2.9rem); }

.hero__lead {
  max-width: 460px;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__media { position: relative; }
.hero__media img { width: 100%; height: auto; display: block; }
.hero__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.hero__points {
  display: grid;
  gap: 18px;
  padding-top: 32px;
  padding-bottom: 40px;
}
.hero__point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-primary);
}
.hero__point svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ---------- Cómo trabajamos ---------- */
.proceso { background: var(--color-bg-alt); }

.proceso__paso { display: flex; gap: 18px; min-width: 0; }
.proceso__paso > div { min-width: 0; }

.proceso__circulo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.proceso__paso h3 { margin-bottom: 6px; font-size: 1.1rem; }
.proceso__paso p { font-size: 0.95rem; }

/* ---------- Servicios ---------- */
.servicios { background: var(--color-bg); }

.card-servicio {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}
.card-servicio:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-servicio__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-servicio__media img { width: 100%; height: 100%; object-fit: cover; }
.card-servicio__media img.img--pos-bim { object-position: 55% 50%; }
.card-servicio__media img.img--pos-topo { object-position: 15% 50%; }

.card-servicio__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-servicio__body .link-arrow { margin-top: auto; padding-top: 6px; }

.card-servicio__icon {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.card-servicio h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card-servicio p { font-size: 0.92rem; margin-bottom: 14px; }

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--color-accent-hover);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
}

.badge--pais { background: var(--color-primary); }
.badge--construido { background: var(--color-primary); }
.badge--diseno { background: rgba(255, 255, 255, 0.94); color: var(--color-primary); border: 1px solid var(--color-border); }

/* ---------- Proyectos ---------- */
.proyectos { background: var(--color-bg-alt); }

.caso-featured {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 32px;
}
.caso-featured__head h3 { margin: 12px 0 6px; }
.caso-featured__head p { font-size: 0.95rem; max-width: 480px; }

.caso-featured__secuencia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
.caso-featured__paso {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
  aspect-ratio: 5 / 4;
}
.caso-featured__paso img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.caso-featured__paso:hover img, .caso-featured__paso:focus-visible img { transform: scale(1.04); }
.caso-featured__paso-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(0deg, rgba(27, 42, 65, 0.88) 0%, rgba(27, 42, 65, 0) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 24px 12px 10px;
  text-align: left;
}
.caso-featured__paso-tag em {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  color: var(--color-accent);
  font-size: 0.72rem;
}

.casos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 56px;
}
.casos.casos--1 { grid-template-columns: 1fr; max-width: 620px; }

.caso { background: var(--color-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.caso__media { aspect-ratio: 4 / 3; position: relative; cursor: pointer; }
.caso__media--alto { aspect-ratio: 16 / 9; }
.caso__media img { width: 100%; height: 100%; object-fit: cover; }
.caso__media--contain img { object-fit: contain; background: var(--color-bg-alt); }

.topo-proyectos .caso__media { aspect-ratio: auto; height: 220px; }
.topo-proyectos .caso__media--alto { aspect-ratio: auto; height: 290px; }
.caso__contador {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(20, 24, 32, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}
.caso__body { padding: 22px 24px 26px; }
.caso h3 { margin-bottom: 6px; font-size: 1.2rem; }
.caso p { font-size: 0.92rem; margin-bottom: 14px; }

.caso__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(20, 30, 45, 0.2);
  transition: background 0.15s ease;
}
.caso__nav:hover, .caso__nav:focus-visible { background: #fff; }
.caso__nav--prev { left: 10px; }
.caso__nav--next { right: 10px; }

.caso__galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.caso__video { margin-top: 12px; }
.caso__video video { width: 100%; max-height: 320px; border-radius: 4px; display: block; background: var(--color-dark-bg); }
.caso__video-caption { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 6px; }

.caso__foto-extra { margin-top: 12px; }
.caso__foto-extra img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 4px; display: block; }
.caso__foto-extra figcaption { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 6px; }
.caso__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.caso__thumb:hover, .caso__thumb:focus-visible { opacity: 1; transform: translateY(-2px); }
.caso__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--color-accent); }
.caso__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.caso__thumb--contain img { object-fit: contain; background: #fff; }

.caso__thumb--more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 42, 65, 0.62);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.caso__thumb--more:hover::after, .caso__thumb--more:focus-visible::after { background: rgba(27, 42, 65, 0.75); }

.topo-proyectos { border-top: 1px solid var(--color-border); padding-top: 36px; margin-bottom: 56px; }
.topo-proyectos > h3 { font-size: 1.4rem; margin-bottom: 8px; }
.topo-proyectos > p { max-width: 560px; margin-bottom: 28px; }
.topo-proyectos .casos { margin-bottom: 0; }

.trayectoria { border-top: 1px solid var(--color-border); padding-top: 36px; }
.trayectoria h3 { margin-bottom: 18px; font-size: 1.05rem; }
.trayectoria__lista {
  list-style: none;
  display: grid;
  gap: 10px 32px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.trayectoria__lista li { padding-left: 16px; position: relative; }
.trayectoria__lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.topo-teaser {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 28px;
}
.topo-teaser__texto h3 { margin: 10px 0 8px; }
.topo-teaser__texto p { font-size: 0.95rem; max-width: 460px; }

/* ---------- Carrusel "Así trabajamos en campo" ---------- */
.campo-carrusel-wrap { position: relative; min-width: 0; }
.campo-carrusel-wrap::before,
.campo-carrusel-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
}
.campo-carrusel-wrap::before { left: 0; background: linear-gradient(to right, var(--color-bg-alt, #faf8f4), transparent); }
.campo-carrusel-wrap::after { right: 0; background: linear-gradient(to left, var(--color-bg-alt, #faf8f4), transparent); }

.campo-carrusel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 6px 14px;
  margin: 0 -6px;
  scrollbar-width: none;
}
.campo-carrusel::-webkit-scrollbar { display: none; }

.campo-carrusel__item {
  flex: 0 0 auto;
  width: min(76vw, 300px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-bg);
  opacity: 0.55;
  transform: scale(0.93);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.campo-carrusel__item.is-active { opacity: 1; transform: scale(1); }
.campo-carrusel__item img,
.campo-carrusel__item video { width: 100%; height: 260px; object-fit: cover; display: block; }
.campo-carrusel__item--contain img { object-fit: contain; background: var(--color-bg-alt); }
.campo-carrusel__item--top img { object-position: top; }
.campo-carrusel__item--right img { object-position: right; }
.campo-carrusel__item--video video { object-fit: contain; background: var(--color-dark-bg); }
.campo-carrusel__item figcaption { padding: 10px 14px; font-size: 0.82rem; color: var(--color-text-muted); }

.campo-carrusel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.campo-carrusel__nav:hover { background: #fff; }
.campo-carrusel__nav--prev { left: -6px; }
.campo-carrusel__nav--next { right: -6px; }
@media (max-width: 640px) {
  .campo-carrusel__nav { display: none; }
}

/* ---------- Historia destacada ---------- */
.proyectos { padding-bottom: 48px; }
.historia { background: var(--color-bg); padding-top: 48px; }

.historia__video-block {
  display: grid;
  gap: 28px;
  align-items: center;
}
.historia__video {
  width: 100%;
  max-width: 340px;
  max-height: 60vh;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--color-dark-bg);
}

.historia__disenador-foto { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }
.historia__disenador blockquote { margin: 0 0 12px; font-size: 0.95rem; line-height: 1.65; color: var(--color-primary); font-style: italic; font-weight: 400; }
.historia__disenador cite { font-style: normal; font-size: 0.85rem; color: var(--color-text-muted); }

@media (min-width: 768px) {
  .historia__video-block { grid-template-columns: 1fr 1.618fr; gap: 48px; }
}

/* ---------- Carrusel ---------- */
.carrusel {
  margin-top: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.carrusel__track {
  display: flex;
  gap: 16px;
  width: max-content;
}
@media (hover: hover) {
  .carrusel__track { animation: carrusel-desplazar 48s linear infinite; }
}
.carrusel:hover .carrusel__track { animation-play-state: paused; }

.carrusel__item {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
}
.carrusel__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.carrusel__item:hover img, .carrusel__item:focus-visible img { transform: scale(1.06); }
.carrusel__tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(27, 42, 65, 0.88) 0%, rgba(27, 42, 65, 0) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 24px 12px 10px;
  text-align: left;
}

@keyframes carrusel-desplazar {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .carrusel__track { animation: none; }
}

@media (hover: none) {
  .carrusel { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .carrusel::-webkit-scrollbar { display: none; }
  .carrusel__track { scroll-snap-type: x proximity; }
  .carrusel__item { scroll-snap-align: start; }
}

/* ---------- Confianza ---------- */
.confianza { background: var(--color-bg-alt); }
.confianza__lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

.confianza__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 56px;
}
.confianza__logo {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.confianza__logo:hover { filter: none; opacity: 1; }
.confianza__logo--grande { height: 84px; max-width: 300px; }

.confianza__extra {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 24px;
}

/* ---------- FAQ ---------- */
.faq { background: var(--color-bg); }

.acordeon { max-width: 760px; }

.acordeon__item { border-bottom: 1px solid var(--color-border); }

.acordeon__pregunta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-primary);
  transition: color 0.2s ease;
}
.acordeon__pregunta:hover,
.acordeon__pregunta:focus-visible { color: var(--color-accent); }
.acordeon__pregunta:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.acordeon__icono {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}
.acordeon__pregunta[aria-expanded="true"] .acordeon__icono { transform: rotate(180deg); }

.acordeon__respuesta { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.acordeon__respuesta p { padding: 0 4px 22px; font-size: 0.96rem; }

/* ---------- Nosotros ---------- */
.nosotros { background: var(--color-bg-alt); }

.nosotros__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 28px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.nosotros__stats dt { font-size: 1.9rem; font-weight: 700; color: var(--color-primary); }
.nosotros__stats dd { font-size: 0.85rem; color: var(--color-text-muted); }

.nosotros__media { position: relative; min-height: 320px; }
.nosotros__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.nosotros__quote {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  max-width: 240px;
  margin-left: auto;
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .nosotros__quote { right: -12px; bottom: -20px; left: auto; }
}

.equipo {
  margin-top: 40px;
  display: grid;
  gap: 32px;
}
.equipo--sin-banner {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}
.equipo__persona img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.equipo__persona h3 { margin-bottom: 2px; }
.equipo__cargo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-accent-hover);
  font-weight: 500;
  margin-bottom: 10px;
}
.equipo__persona p:not(.equipo__cargo) { font-size: 0.92rem; }

@media (min-width: 600px) {
  .equipo { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .equipo { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
@media (min-width: 1150px) {
  .equipo--sin-banner { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

/* ---------- Contacto ---------- */
.contacto { background: var(--color-bg-alt); }
.contacto__lead { margin-bottom: 24px; }

.contacto__oficinas {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.oficina { display: flex; flex-direction: column; }
.oficina h3 { margin-bottom: 8px; font-size: 1rem; }
.oficina p { font-size: 0.9rem; margin-bottom: 4px; }
.oficina a:hover { color: var(--color-accent); }

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}
.whatsapp-link svg { width: 16px; height: 16px; color: var(--color-accent); }
.whatsapp-link:hover { color: var(--color-accent); }

.contacto__email a { font-weight: 600; color: var(--color-primary); }
.contacto__email a:hover { color: var(--color-accent); }

.form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}

.form__grupo { display: flex; flex-direction: column; gap: 6px; }
.form__grupo label { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); }

.form__grupo input,
.form__grupo select,
.form__grupo textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
}

.form__grupo input:focus-visible,
.form__grupo select:focus-visible,
.form__grupo textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form__consentimiento {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
}
.form__consentimiento input { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; }
.form__consentimiento label { font-size: 0.82rem; color: var(--color-text-muted); font-weight: 400; line-height: 1.5; }
.form__consentimiento a { color: var(--color-accent-hover); }

.form__grupo input.is-invalid,
.form__grupo textarea.is-invalid { border-color: #C0392B; background: rgba(192, 57, 43, 0.04); }

.form__nota { font-size: 0.85rem; color: var(--color-accent-hover); min-height: 1em; }

/* ---------- Banner ---------- */
.banner { position: relative; padding: 0; overflow: hidden; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 42, 65, 0.88) 0%, rgba(27, 42, 65, 0.94) 100%); z-index: 1; }

.banner__content {
  position: relative;
  z-index: 2;
  padding: 64px 0;
  display: grid;
  gap: 32px;
}
.banner__content h2 { color: #fff; margin: 10px 0 24px; }
.banner__content .eyebrow { color: rgba(255, 255, 255, 0.75); }
.banner__content .eyebrow::before { background: var(--color-accent); }

.banner__contacto {
  display: grid;
  gap: 14px;
  align-content: start;
}
.banner__contacto a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}
.banner__contacto a:hover { color: var(--color-accent); }
.banner__contacto svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
.banner__contacto-destacado { font-weight: 700; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--color-dark-bg); padding: 32px 0; }
.footer__logo { height: 44px; width: auto; margin-bottom: 4px; align-self: flex-start; }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer__nav a { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; }
.footer__nav a:hover { color: var(--color-accent); }

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}
.footer__social svg { width: 17px; height: 17px; }
.footer__social:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ==========================================================
   Tablet / Desktop
   ========================================================== */
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }

  .grid--2 { grid-template-columns: 1fr 1fr; gap: 56px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .casos { grid-template-columns: repeat(2, 1fr); }
  .caso-featured { padding: 40px; }
  .caso-featured__secuencia { grid-template-columns: repeat(4, 1fr); gap: 16px; }

  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .section-head p.lead { margin-left: auto; text-align: right; }
  .section-head .link-arrow { display: block; text-align: right; }

  .contacto__oficinas { flex-direction: row; }
  .oficina { flex: 1; }

  .topo-teaser { grid-template-columns: 0.7fr 1.7fr; align-items: start; }

  .hero__points { grid-template-columns: repeat(3, 1fr); }

  .banner__content { grid-template-columns: 1.3fr 1fr; align-items: center; }
}

@media (min-width: 1024px) {
  .hero { position: relative; padding: 0; overflow: hidden; }
  .hero__inner { display: block; padding: 64px 0 16px; }
  .hero__actions { margin-bottom: 0; }
  .hero__points { padding-top: 40px; }
  .hero__col { max-width: 440px; padding: 0; }
  .hero__media {
    --hero-gutter: max(24px, calc((100vw - 1180px) / 2));
    position: absolute;
    top: 64px;
    right: var(--hero-gutter);
    left: max(calc(100vw - var(--hero-gutter) - min(56vw, 860px)), calc(var(--hero-gutter) + 512px));
  }
  .hero__media img { width: 100%; height: auto; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 18, 24, 0.92);
  padding: 24px;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
body.lightbox-open { overflow: hidden; }

.lightbox__figure {
  max-width: min(920px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}
.lightbox__caption { color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; text-align: center; }

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover,
.lightbox__close:focus-visible, .lightbox__prev:focus-visible, .lightbox__next:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 10px; right: 10px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Páginas legales ---------- */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 760px; }
.legal h1 { margin-bottom: 6px; }
.legal__actualizado { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--color-text); line-height: 1.7; margin-bottom: 14px; }
.legal ul { padding-left: 20px; margin-bottom: 14px; }
.legal a { color: var(--color-accent-hover); }
.legal strong { color: var(--color-primary); }
.legal__pendiente { background: #fff3e0; border: 1px solid var(--color-accent); border-radius: var(--radius); padding: 12px 16px; font-size: 0.9rem; }

/* ---------- Banner de cookies ---------- */
.cookiebar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: none;
}
.cookiebar.is-visible { display: block; }
.cookiebar p { font-size: 0.88rem; line-height: 1.5; margin-bottom: 14px; color: rgba(255,255,255,0.92); }
.cookiebar a { color: #fff; text-decoration: underline; }
.cookiebar__acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.cookiebar__acciones button {
  flex: 1;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.4);
}
.cookiebar__aceptar { background: var(--color-accent-hover); color: #fff; border-color: var(--color-accent-hover) !important; }
.cookiebar__rechazar { background: transparent; color: #fff; }

/* ---------- CTA en línea (entre secciones) ---------- */
.cta-inline {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.cta-inline p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .whatsapp-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}
