/* R&R Construye — página de la empresa.
   Identidad del logo: azul #0a46aa, amarillo #f0d21e (solo acentos: sobre
   blanco no tiene contraste para texto) y gris #e6e6e6. Primero el celular. */

@font-face {
  font-family: "Newsreader";
  src: url("fuentes/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fuentes/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --azul: #0a46aa;
  --azul-800: #08367f;
  --azul-900: #061f4d;
  --azul-950: #041633;
  --azul-50: #edf2fb;
  --amarillo: #f0d21e;
  --gris: #e6e6e6;
  --tinta: #0f1c2e;
  --tinta-2: #44536a;
  --linea: #dde3ec;
  --papel: #f5f7fa;
  --blanco: #ffffff;
  --verde-wa: #1fa855;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --margen: 20px;
  --radio: 16px;
  --sombra: 0 1px 2px rgb(15 28 46 / 6%), 0 8px 24px rgb(15 28 46 / 8%);
  --alto-encabezado: 68px;
}
@media (min-width: 768px) {
  :root { --margen: 32px; --alto-encabezado: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-encabezado) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icono { width: 1.25em; height: 1.25em; flex: none; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amarillo); color: var(--tinta);
  padding: .7rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.saltar:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .seccion--azul :focus-visible, .cierre :focus-visible,
.pie :focus-visible, .servicio--destacado :focus-visible, .visor :focus-visible,
.encabezado:not(.encabezado--solido) :focus-visible { outline-color: var(--amarillo); }

.contenedor { width: min(1200px, 100% - 2 * var(--margen)); margin-inline: auto; }

/* ── Tipografía ─────────────────────────────────────────────────── */
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.3rem); line-height: 1.07; color: var(--azul-900); }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
p { text-wrap: pretty; }

/* Antetítulo con las dos líneas del techo del logo. */
.antetitulo {
  display: flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 1rem;
}
.antetitulo::before {
  content: ""; width: 30px; height: 15px; flex: none;
  background: var(--amarillo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M1.5 13.5 26 1.5l32.5 27M24.5 6.5l27 22' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M1.5 13.5 26 1.5l32.5 27M24.5 6.5l27 22' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.antetitulo--claro { color: var(--amarillo); }
@media (max-width: 479px) {
  .antetitulo { font-size: .72rem; letter-spacing: .14em; gap: .55rem; }
  .antetitulo::before { width: 24px; height: 12px; }
}

/* ── Botones y enlaces ─────────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .85rem 1.35rem;
  border-radius: 10px; border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.boton:hover { transform: translateY(-1px); }
.boton--amarillo { background: var(--amarillo); color: var(--tinta); box-shadow: 0 6px 20px rgb(240 210 30 / 22%); }
.boton--amarillo:hover { background: #f6dc3c; }
.boton--azul { background: var(--azul); color: var(--blanco); }
.boton--azul:hover { background: var(--azul-800); }
.boton--contorno { border-color: rgb(255 255 255 / 55%); color: var(--blanco); }
.boton--contorno:hover { background: rgb(255 255 255 / 10%); border-color: var(--blanco); }
.boton--claro { background: var(--blanco); color: var(--azul); }
.boton--chico { min-height: 40px; padding: .5rem .85rem; font-size: .9rem; }
.boton--grande { min-height: 58px; padding: 1rem 1.8rem; font-size: 1.0625rem; }

.enlace {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--azul); text-decoration: none;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
}
.enlace .icono { width: 1.05em; height: 1.05em; transition: transform .2s; }
.enlace:hover { border-bottom-color: currentColor; }
.enlace:hover .icono { transform: translateX(3px); }
.enlace--claro { color: var(--amarillo); }

.etiqueta {
  display: inline-block; vertical-align: middle;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  padding: .18rem .5rem; border-radius: 6px;
  background: var(--azul); color: var(--blanco);
}
.etiqueta--suave { background: var(--azul-50); color: var(--azul); letter-spacing: .02em; }

/* ── Encabezado ────────────────────────────────────────────────── */
.encabezado {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--alto-encabezado);
  color: var(--blanco);
  transition: background-color .25s, box-shadow .25s, color .25s;
}
.encabezado--solido, .menu-abierto .encabezado {
  background: rgb(255 255 255 / 98%);
  color: var(--tinta);
  box-shadow: 0 1px 0 var(--linea), 0 6px 20px rgb(15 28 46 / 6%);
}
@supports (backdrop-filter: blur(8px)) {
  .encabezado--solido { background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px) saturate(1.4); }
}
.encabezado--solido .boton--claro, .menu-abierto .encabezado .boton--claro { background: var(--azul); color: var(--blanco); }
.encabezado__fila { height: 100%; display: flex; align-items: center; gap: .6rem; }

.marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; min-width: 0; }
.marca img { width: 40px; height: 40px; flex: none; }
.marca__nombre { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 379px) {
  .encabezado__cotizar span { display: none; }
  .encabezado__cotizar { padding-inline: .6rem; }
}
@media (min-width: 768px) {
  .encabezado__fila { gap: 1rem; }
  .marca { gap: .65rem; }
  .marca img { width: 44px; height: 44px; }
  .marca__nombre { font-size: 1.3rem; }
}

.menu-boton {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
}
.menu-boton .icono { width: 26px; height: 26px; grid-area: 1 / 1; }
.menu-boton .icono--cerrar, .menu-abierto .menu-boton .icono--abrir { display: none; }
.menu-abierto .menu-boton .icono--cerrar { display: block; }

/* En el celular el menú es una hoja que baja desde el encabezado. */
.menu {
  position: fixed; inset: var(--alto-encabezado) 0 auto;
  display: grid; gap: .25rem;
  padding: .75rem var(--margen) 1.5rem;
  background: var(--blanco); color: var(--tinta);
  box-shadow: 0 18px 30px rgb(15 28 46 / 12%);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.menu-abierto .menu { transform: none; opacity: 1; visibility: visible; }
.menu a:not(.boton) {
  padding: .85rem .25rem; border-bottom: 1px solid var(--linea);
  font-size: 1.1rem; font-weight: 500; text-decoration: none;
}
.menu__cotizar { margin-top: 1rem; }

/* El menú completo entra en una línea desde 1180 px; antes se parte. */
@media (max-width: 1179px) {
  .menu__cotizar { background: var(--azul) !important; color: var(--blanco) !important; }
}
@media (min-width: 1180px) {
  .menu-boton, .encabezado__cotizar { display: none; }
  .menu {
    position: static; display: flex; align-items: center; gap: 1.6rem;
    padding: 0; background: none; color: inherit; box-shadow: none;
    transform: none; opacity: 1; visibility: visible;
  }
  .menu a:not(.boton) {
    padding: .4rem 0; border: 0; font-size: .95rem; font-weight: 500; white-space: nowrap;
    border-bottom: 1.5px solid transparent;
  }
  .menu a:not(.boton):hover { border-bottom-color: currentColor; }
  .menu__cotizar { margin: 0 0 0 .5rem; min-height: 44px; padding: .6rem 1.1rem; font-size: .95rem; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--blanco); background: var(--azul-950);
  padding: calc(var(--alto-encabezado) + 2rem) 0 clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}
.hero__fondo { position: absolute; inset: 0; z-index: -1; }
.hero__portada, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 1s ease; }
.hero__video--listo { opacity: 1; }
/* En el celular el texto va abajo: la sombra sube desde el pie. */
.hero__fondo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(4 22 51 / 96%) 0%, rgb(4 22 51 / 82%) 34%, rgb(6 31 77 / 28%) 64%, rgb(6 31 77 / 45%) 100%);
}
.hero__techo {
  position: absolute; z-index: 1;
  right: -14%; top: 15%; width: 92%; aspect-ratio: 2 / 1;
  color: var(--amarillo); stroke-width: 1.5; opacity: .55;
  pointer-events: none;
}
.hero__contenido { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; margin-bottom: 1.25rem; }
.hero__texto { max-width: 36rem; font-size: clamp(1.05rem, .95rem + .45vw, 1.25rem); color: rgb(255 255 255 / 88%); }
.hero__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.25rem; }
.hero__acciones .boton { flex: 1 1 auto; }
.hero__datos {
  display: flex; flex-wrap: wrap; gap: .55rem 1.6rem;
  font-size: .9rem; color: rgb(255 255 255 / 78%);
}
.hero__datos li { display: flex; align-items: center; gap: .55rem; }
.hero__datos li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--amarillo); transform: rotate(45deg); }

@media (min-width: 560px) {
  .hero__acciones .boton { flex: 0 0 auto; }
}
@media (min-aspect-ratio: 1/1) and (min-width: 768px) {
  .hero { align-items: center; padding-bottom: 4rem; }
  .hero__fondo::after {
    background:
      linear-gradient(90deg, rgb(4 22 51 / 94%) 0%, rgb(4 22 51 / 80%) 38%, rgb(6 31 77 / 30%) 70%, rgb(6 31 77 / 12%) 100%),
      linear-gradient(to top, rgb(4 22 51 / 55%) 0%, transparent 30%);
  }
  .hero__techo { right: -4%; top: auto; bottom: 6%; width: 54%; opacity: .45; }
}

/* ── Secciones ─────────────────────────────────────────────────── */
.seccion { position: relative; padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); }
.seccion--papel { background: var(--papel); }
.seccion--azul {
  color: var(--blanco); overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #0b4fb8 0%, var(--azul-800) 38%, var(--azul-900) 100%);
}
.seccion--azul h2 { color: var(--blanco); }
.seccion__techo {
  position: absolute; left: -12%; bottom: -4%; width: 70%; aspect-ratio: 2 / 1;
  color: var(--amarillo); stroke-width: 1.2; opacity: .22; pointer-events: none;
}

.cabeza { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.cabeza__texto { margin-top: 1.1rem; font-size: 1.125rem; color: var(--tinta-2); }
@media (min-width: 900px) {
  .cabeza--fila { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
  .cabeza--fila .cabeza__texto { max-width: 26rem; margin: 0; }
}

/* ── Servicios ─────────────────────────────────────────────────── */
.servicios { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.servicio {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.servicio:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: #cdd6e3; }
.servicio__icono {
  width: 48px; height: 48px; padding: 11px; margin-bottom: .6rem;
  border-radius: 12px; background: var(--azul-50); color: var(--azul);
}
.servicio h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; letter-spacing: -.01em; color: var(--azul-900); }
.servicio__sub { font-size: .9rem; font-weight: 600; color: var(--azul); }
.servicio p:not(.servicio__sub) { color: var(--tinta-2); }
.servicio .enlace, .servicio .boton { margin-top: auto; padding-top: .9rem; align-self: flex-start; }
.servicio .boton { margin-top: 1rem; padding-top: .85rem; }

.servicio--destacado {
  color: var(--blanco); border-color: transparent;
  background: radial-gradient(130% 120% at 100% 0%, #0b52c2 0%, var(--azul) 35%, var(--azul-900) 100%);
}
.servicio--destacado h3 { color: var(--blanco); font-size: 1.9rem; }
.servicio--destacado .servicio__sub { color: var(--amarillo); }
.servicio--destacado p:not(.servicio__sub) { color: rgb(255 255 255 / 85%); max-width: 34rem; }
.servicio--destacado .servicio__icono { background: rgb(255 255 255 / 12%); color: var(--blanco); }
.servicio__techo {
  position: absolute; right: -10%; top: -8%; width: 70%; aspect-ratio: 2 / 1;
  color: var(--amarillo); stroke-width: 1.5; opacity: .5; pointer-events: none;
}

@media (min-width: 680px) {
  .servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .servicio--destacado { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .servicios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .servicio { padding: 2rem 1.9rem 1.8rem; }
}

/* ── Tarjetas de video ─────────────────────────────────────────── */
.reel { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.reel__marco {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 9 / 16; border-radius: var(--radio);
  background: var(--azul-900);
  box-shadow: 0 2px 4px rgb(4 22 51 / 12%), 0 18px 40px rgb(4 22 51 / 18%);
}
.reel__marco img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.reel__marco::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(4 22 51 / 55%), transparent 35%);
}
.reel:hover .reel__marco img { transform: scale(1.04); }
.reel__play {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgb(255 255 255 / 92%); color: var(--azul);
  box-shadow: 0 8px 24px rgb(4 22 51 / 30%);
  transition: transform .25s;
}
.reel__play .icono { width: 26px; height: 26px; margin-left: 3px; }
.reel:hover .reel__play { transform: scale(1.08); }
.reel__duracion {
  position: absolute; z-index: 1; left: .75rem; bottom: .75rem;
  padding: .2rem .5rem; border-radius: 6px;
  background: rgb(4 22 51 / 70%); color: var(--blanco);
  font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.reel__titulo { display: block; margin-top: 1rem; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.reel__texto { display: block; margin-top: .25rem; font-size: .95rem; color: var(--tinta-2); }
.reel:focus-visible { outline: none; }
.reel:focus-visible .reel__marco { outline: 3px solid var(--amarillo); outline-offset: 4px; }

/* ── Guadua ────────────────────────────────────────────────────── */
.guadua { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.guadua__texto p:not(.antetitulo) { max-width: 34rem; color: rgb(255 255 255 / 86%); }
.guadua__texto h2 { margin-bottom: 1.4rem; }
.guadua__texto p + p { margin-top: 1rem; }
.guadua__usos { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0; }
.guadua__usos li {
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 28%); font-size: .92rem; font-weight: 500;
}
.guadua__nota {
  margin: 0 0 1.8rem !important; padding-left: .9rem;
  border-left: 2px solid var(--amarillo); font-size: .95rem;
}
.guadua__videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.guadua__videos .reel__titulo { color: var(--blanco); }
.reel--bajo { margin-top: 2.5rem; }
@media (min-width: 960px) {
  .guadua { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 4.5rem; }
  .guadua__videos { gap: 1.5rem; }
  .reel--bajo { margin-top: 4.5rem; }
}

/* ── Obras ─────────────────────────────────────────────────────── */
/* En el celular las obras se pasan de lado, sin mover la página. */
.obras {
  display: flex; gap: 1rem;
  margin-inline: calc(-1 * var(--margen)); padding: .5rem var(--margen) 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margen);
  scrollbar-width: thin;
}
.obras .reel { flex: 0 0 74%; scroll-snap-align: start; }
@media (min-width: 680px) {
  .obras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 1024px) {
  .obras { gap: 1.5rem; }
}

.recientes {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: 2.5rem; border-top: 1px solid var(--linea);
}
.recientes__titulo { font-family: var(--serif); font-size: 1.75rem; color: var(--azul-900); margin-bottom: 1.25rem; }
.recientes__lista { margin-bottom: 1.75rem; }
.recientes__lista li {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--linea);
}
.recientes__obra { font-weight: 600; }
.recientes__lugar { grid-column: 1; color: var(--tinta-2); font-size: .95rem; }
.recientes__lista .etiqueta { grid-column: 2; grid-row: 1 / span 2; }
@media (min-width: 768px) and (max-width: 1099px) {
  .recientes__lista li { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 8.5rem; }
  .recientes__lugar { grid-column: auto; }
  .recientes__lista .etiqueta { grid-column: auto; grid-row: auto; justify-self: end; }
}
/* En pantalla ancha la lista va al lado de los videos, como columna. */
@media (min-width: 1100px) {
  .obras-bloque { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .recientes { margin-top: 0; padding-top: 0; border-top: 0; }
  .recientes__titulo { font-size: 1.5rem; padding-bottom: 1rem; margin-bottom: 0; border-bottom: 1px solid var(--linea); }
  .recientes__lista li { padding: .95rem 0; }
}

/* ── Cómo trabajamos ───────────────────────────────────────────── */
.pasos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }
.paso {
  position: relative; padding: 1.25rem 0 1.35rem; border-top: 1px solid #cfd7e3;
  display: grid; grid-template-columns: 3.4rem 1fr; align-content: start;
}
.paso::before {
  content: ""; position: absolute; left: 0; top: -2px;
  width: 44px; height: 3px; background: var(--amarillo);
}
.paso__num { grid-row: span 2; font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--azul); }
.paso h3 { margin-bottom: .3rem; color: var(--azul-900); }
.paso p { grid-column: 2; color: var(--tinta-2); font-size: .98rem; }
@media (min-width: 640px) {
  .paso { display: block; padding: 1.6rem 0 1.7rem; }
  .paso__num { display: block; font-size: 2.2rem; margin-bottom: .9rem; }
}
@media (min-width: 640px) { .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pasos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem 2.5rem; } }

/* ── Zona ──────────────────────────────────────────────────────── */
/* minmax(0, …): sin esto una palabra larga ("Fusagasugá") ensancha la
   cuadrícula y la página se corre de lado en pantallas de 360 px. */
.zona { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.zona__texto p:not(.antetitulo) { margin: 1.25rem 0 2rem; max-width: 32rem; color: var(--tinta-2); font-size: 1.1rem; }
.zona__lugares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-content: start; }
.zona__lugares li {
  display: grid; grid-template-columns: auto 1fr; gap: 0 .65rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: 12px; background: var(--papel); border: 1px solid var(--linea);
  min-width: 0;
}
@media (max-width: 399px) {
  .zona__lugares li { padding: .85rem .8rem; gap: 0 .5rem; }
  .zona__lugares .icono { width: 22px; height: 22px; }
}
.zona__lugares .icono { grid-row: span 2; width: 26px; height: 26px; color: var(--azul); }
.zona__lugares span { font-weight: 600; line-height: 1.25; }
.zona__lugares small { color: var(--tinta-2); font-size: .85rem; }
.exterior {
  grid-column: 1 / -1;
  display: grid; gap: .5rem; padding: 1.6rem 1.6rem 1.5rem;
  border-radius: var(--radio); color: rgb(255 255 255 / 86%);
  background: linear-gradient(120deg, var(--azul-900), var(--azul-800));
}
.exterior__titulo { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--blanco); }
.exterior .enlace { margin-top: .4rem; justify-self: start; }
@media (min-width: 960px) {
  .zona { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 4.5rem; align-items: center; }
  .zona__lugares { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exterior { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 1.6rem 2rem; }
  .exterior .enlace { margin: 0; }
}

/* ── Quiénes somos ─────────────────────────────────────────────── */
.nosotros { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.nosotros__foto { position: relative; max-width: 440px; }
.nosotros__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; box-shadow: var(--sombra); }
.nosotros__foto figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .45rem .8rem; border-radius: 8px;
  background: rgb(4 22 51 / 78%); color: var(--blanco); font-size: .88rem; font-weight: 500;
}
.nosotros__techo {
  position: absolute; z-index: -1; left: -14%; top: -9%; width: 82%; aspect-ratio: 2 / 1;
  color: var(--amarillo); stroke-width: 2; pointer-events: none;
}
.nosotros__foto { isolation: isolate; }
.nosotros__texto > p:not(.antetitulo) { margin-top: 1.1rem; max-width: 36rem; color: var(--tinta-2); font-size: 1.1rem; }
.nosotros__texto h2 { max-width: 18ch; }
.ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin: 2.2rem 0 1.8rem; padding-top: 1.8rem; border-top: 1px solid #cfd7e3; }
.ficha dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); margin-bottom: .2rem; }
.ficha dd { font-weight: 600; overflow-wrap: anywhere; }
.redes { display: flex; flex-wrap: wrap; gap: .75rem; }
.redes a {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1rem; border-radius: 10px; border: 1px solid #cfd7e3;
  background: var(--blanco); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--azul-900);
  transition: border-color .2s, color .2s;
}
.redes a:hover { border-color: var(--azul); color: var(--azul); }
@media (min-width: 900px) {
  .nosotros { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 5rem; align-items: center; }
}

/* ── Llamado final ─────────────────────────────────────────────── */
.cierre {
  position: relative; overflow: hidden; text-align: center; color: var(--blanco);
  padding-block: clamp(4.5rem, 3rem + 6vw, 8rem);
  background: radial-gradient(100% 140% at 50% 0%, #0b4fb8 0%, var(--azul-800) 40%, var(--azul-950) 100%);
}
.cierre__techo {
  position: absolute; left: 50%; top: 10%; width: min(1100px, 130%); aspect-ratio: 2 / 1;
  transform: translateX(-46%);
  color: var(--amarillo); stroke-width: 1.3; opacity: .28; pointer-events: none;
}
.cierre__contenido { position: relative; }
.cierre h2 { color: var(--blanco); max-width: 20ch; margin-inline: auto; }
.cierre p { max-width: 34rem; margin: 1.2rem auto 2.2rem; color: rgb(255 255 255 / 85%); font-size: 1.125rem; }
.cierre__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
@media (max-width: 559px) {
  .cierre__acciones .boton { width: 100%; }
}

/* ── Pie ───────────────────────────────────────────────────────── */
.pie { background: var(--azul-950); color: rgb(255 255 255 / 72%); font-size: .95rem; }
.pie__fila { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: 3rem 2rem; }
.pie__marca { display: flex; align-items: center; gap: 1rem; }
.pie__marca img { width: 56px; height: 56px; }
.pie__nombre { color: var(--blanco); font-weight: 600; letter-spacing: .04em; }
.pie__contacto { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.pie__contacto a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: rgb(255 255 255 / 85%); }
.pie__contacto a:hover { color: var(--blanco); }
.pie__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding-block: 1.25rem 2rem; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .85rem;
}
.pie__legal a { color: var(--blanco); }
@media (min-width: 900px) {
  .pie__fila { grid-template-columns: auto 1fr; align-items: center; }
  .pie__contacto { justify-content: flex-end; }
}

/* ── Botón flotante de WhatsApp ────────────────────────────────── */
.flotante {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde-wa); color: var(--blanco);
  box-shadow: 0 10px 28px rgb(4 22 51 / 30%);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.flotante .icono { width: 30px; height: 30px; }
.flotante--visible { opacity: 1; transform: none; pointer-events: auto; }
.flotante:hover { transform: scale(1.06); }

/* ── Visor de videos ───────────────────────────────────────────── */
.visor {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--blanco);
}
.visor::backdrop { background: rgb(3 10 25 / 90%); }
.visor[open] { display: grid; place-items: center; }
.visor__caja {
  display: grid; gap: .75rem; justify-items: center;
  width: min(100% - 24px, 520px); padding-block: 12px;
}
.visor__barra { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.visor__titulo { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.visor__detalle { font-size: .88rem; color: rgb(255 255 255 / 72%); margin-top: .2rem; }
.visor__video {
  width: auto; height: min(74vh, (100vw - 24px) * 16 / 9); height: min(74dvh, (100vw - 24px) * 16 / 9);
  aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 14px; background: #000;
}
.visor__nav { display: flex; align-items: center; gap: 1rem; }
.visor__cuenta { font-size: .9rem; color: rgb(255 255 255 / 72%); font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: center; }
.visor__boton {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / 30%); border-radius: 50%;
  background: rgb(255 255 255 / 8%); cursor: pointer;
}
.visor__boton:hover { background: rgb(255 255 255 / 18%); }
.visor__boton .icono { width: 22px; height: 22px; }
.visor-abierto { overflow: hidden; }

/* ── Movimiento reducido ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Página 404: la franja azul ocupa toda la pantalla. */
.pagina-404 { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
