/* =============================================================================
   RENOVA ARQUITECTURA
   =============================================================================
   Paleta tomada del propio logotipo: hueso, arena, piedra, tinta y oro.
   Nada de colores ajenos a la marca.

   Tipografía: Jost para títulos y etiquetas (geométrica, como el logotipo) e
   Inter para el texto corrido, que se lee mejor en cuerpos pequeños.
   ========================================================================== */

:root {
  --hueso: #faf8f4;
  --arena: #efe9e1;
  --piedra: #d9cfc2;
  --oro: #b08954;
  --oro-claro: #c8a878;
  --tinta: #14120f;
  --grafito: #4a443d;
  --gris: #857c70;
  --linea: #e2dad0;
  --linea-oscura: rgba(250, 248, 244, 0.16);

  --ancho: 1240px;
  --cabeza: 76px;

  --display: 'Jost', 'Segoe UI', sans-serif;
  --texto: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;

  --toque: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Deja hueco a la cabecera fija al saltar a una sección. */
  scroll-padding-top: calc(var(--cabeza) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.65;
  color: var(--grafito);
  background: var(--hueso);
  /* Hueco para la barra fija de accesos en móvil. */
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--oro); color: var(--hueso); }

/* Foco visible en todo lo que se puede usar con teclado. */
:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
}

/* Enlace de salto, oculto hasta que alguien navega con teclado. */
.salta {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--tinta);
  color: var(--hueso);
  padding: 14px 20px;
  font-family: var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  text-decoration: none;
}
.salta:focus { left: 0; }

/* =============================================================================
   TIPOGRAFÍA
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  color: var(--tinta);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--oro);
  letter-spacing: 0;
}

.titulo {
  font-size: clamp(28px, 4vw, 50px);
  max-width: 20ch;
}

.eyebrow,
.num,
.mini-titulo {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro);
}

.num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.num::after {
  content: '';
  width: 42px;
  height: 1px;
  background: var(--oro);
  opacity: 0.6;
}

.entrada {
  margin-top: 18px;
  font-size: 17px;
  color: var(--grafito);
  max-width: 62ch;
}

.destacado {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--tinta);
  margin: 22px 0 18px;
  max-width: 26ch;
}

.sello {
  margin-top: 34px;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hueso);
}
.sello em { display: block; font-size: 1.06em; }
.sello--tinta { color: var(--tinta); }

.nota {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--gris);
  max-width: 70ch;
}

/* =============================================================================
   BOTONES
   ========================================================================== */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 30px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.boton:active { transform: translateY(1px); }

.boton--tinta { background: var(--tinta); color: var(--hueso); border-color: var(--tinta); }
.boton--tinta:hover { background: #000; border-color: #000; }

.boton--oro { background: var(--oro); color: #fff; border-color: var(--oro); }
.boton--oro:hover { background: #9c7748; border-color: #9c7748; }

.boton--linea { background: transparent; color: var(--tinta); border-color: rgba(20, 18, 15, 0.28); }
.boton--linea:hover { border-color: var(--tinta); background: rgba(20, 18, 15, 0.04); }

.boton--claro { color: var(--hueso); border-color: rgba(250, 248, 244, 0.34); }
.boton--claro:hover { border-color: var(--hueso); background: rgba(250, 248, 244, 0.07); }

.boton--chico { min-height: 42px; padding: 11px 20px; font-size: 11.5px; }
.boton--ancho { width: 100%; }

/* =============================================================================
   CABECERA
   ========================================================================== */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cabecera--pegada {
  border-bottom-color: var(--linea);
  box-shadow: 0 1px 20px rgba(20, 18, 15, 0.05);
}

.cabecera__interior {
  max-width: var(--ancho);
  margin: 0 auto;
  height: var(--cabeza);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* La marca se compone con tipografía, no con una imagen: el logotipo del cliente
   solo existe como fotografía y se vería borroso y pesado en la cabecera. */
.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: var(--toque);
}

.marca__nombre {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--tinta);
  line-height: 1;
}

.marca__linea {
  width: 1px;
  height: 26px;
  background: var(--piedra);
}

.marca__sub {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--gris);
  line-height: 1;
  padding-top: 2px;
}

.nav { display: none; gap: 30px; }

.nav__enlace {
  position: relative;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--grafito);
  text-decoration: none;
  padding: 6px 0;
  min-height: var(--toque);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.nav__enlace::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 0;
  height: 1px;
  background: var(--oro);
  transition: width 0.25s;
}
.nav__enlace:hover { color: var(--tinta); }
.nav__enlace:hover::after { width: 100%; }

.cabecera__acciones { display: flex; align-items: center; gap: 12px; }
.cabecera__cta { display: none; }

.menu-boton {
  width: var(--toque);
  height: var(--toque);
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--linea);
  cursor: pointer;
  border-radius: 0;
}
.menu-boton span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--tinta);
  transition: transform 0.25s, opacity 0.2s;
}
.menu-boton[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-boton[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil */
.menu-movil {
  position: fixed;
  inset: var(--cabeza) 0 0 0;
  z-index: 55;
  background: var(--hueso);
  padding: 34px 24px calc(90px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.menu-movil[hidden] { display: none; }

.menu-movil__enlace {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 300;
  color: var(--tinta);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--linea);
  min-height: var(--toque);
  display: flex;
  align-items: center;
}
.menu-movil__enlace:hover { color: var(--oro); }

.menu-movil__cta { margin-top: 26px; }

/* =============================================================================
   ESTRUCTURA DE SECCIONES
   ========================================================================== */

.seccion { padding: 78px 0; }

.seccion__interior {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
}

.seccion--arena { background: var(--arena); }

.seccion--oscura {
  background: var(--tinta);
  color: #cfc7bc;
}
.seccion--oscura h2,
.seccion--oscura h3 { color: var(--hueso); }
.seccion--oscura .num { color: var(--oro-claro); }
.seccion--oscura .entrada { color: #b9b0a4; }

.dos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: start;
}

.encabezado { margin-bottom: 44px; }
.encabezado--claro .titulo { color: var(--hueso); }

/* Figuras: las imágenes son verticales, así que se usan como panel editorial. */
.dos__figura {
  margin: 0;
  position: relative;
  overflow: hidden;
}
.dos__figura img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dos__figura:hover img { transform: scale(1.03); }

.dos__figura figcaption {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
}
.seccion--oscura .dos__figura figcaption { color: #8c8478; }

/* =============================================================================
   01 · PORTADA
   ========================================================================== */

.hero { padding: 44px 0 60px; }

.hero__interior {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero__titulo {
  font-size: clamp(33px, 8.4vw, 66px);
  font-weight: 300;
  line-height: 1.04;
  margin: 20px 0 0;
  letter-spacing: -0.02em;
}
.hero__titulo em { display: block; }

.hero__parrafo {
  margin-top: 24px;
  font-size: 16.5px;
  max-width: 44ch;
}

.hero__dato {
  margin-top: 26px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--grafito);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__dato span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  color: var(--oro);
  line-height: 1;
}
.hero__dato em { font-size: 15px; }

.hero__botones {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__figura { margin: 0; position: relative; }
.hero__figura img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* =============================================================================
   03 · SERVICIOS
   ========================================================================== */

.rejilla-servicios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--linea);
}

.servicio {
  padding: 26px 0;
  border-bottom: 1px solid var(--linea);
}

.servicio__titulo {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.005em;
}

.servicio p {
  font-size: 14.5px;
  color: var(--grafito);
  max-width: 42ch;
}

/* =============================================================================
   LISTAS
   ========================================================================== */

.lista-doble,
.lista-columnas,
.lista-columnas li {
  list-style: none;
}

.lista-doble {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 26px;
  margin-top: 20px;
}

.lista-doble li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(20, 18, 15, 0.07);
}
.seccion--oscura .lista-doble li { border-bottom-color: var(--linea-oscura); }

.lista-doble li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 1px;
  background: var(--oro);
}

.lista-columnas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--linea-oscura);
}

.lista-columnas li {
  padding: 16px 0;
  border-bottom: 1px solid var(--linea-oscura);
  font-size: 15.5px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.lista-columnas li::before {
  content: '—';
  color: var(--oro);
  font-size: 13px;
}

/* =============================================================================
   10 · PROCESO
   ========================================================================== */

.proceso {
  list-style: none;
  border-top: 1px solid var(--linea);
}

.etapa {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--linea);
  align-items: start;
}

.etapa__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--oro);
  line-height: 1;
}

.etapa__titulo {
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.etapa__cuerpo p {
  font-size: 14.5px;
  color: var(--grafito);
  max-width: 58ch;
}

/* =============================================================================
   11 · PILARES
   ========================================================================== */

.pilares {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--linea);
}

.pilar {
  padding: 26px 0 26px 20px;
  border-bottom: 1px solid var(--linea);
  border-left: 1px solid var(--oro);
}

.pilar__titulo {
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.pilar p { font-size: 14.5px; max-width: 40ch; }

/* =============================================================================
   13 · PORTAFOLIO
   ========================================================================== */

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filtro {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 18px;
  min-height: 42px;
  background: transparent;
  border: 1px solid var(--linea);
  color: var(--grafito);
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filtro:hover { border-color: var(--piedra); color: var(--tinta); }
.filtro.activo {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--hueso);
}

.galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pieza {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--piedra);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
}
.pieza[hidden] { display: none; }

.pieza img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pieza__velo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 9, 7, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.pieza__texto {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.pieza:hover img { transform: scale(1.05); }
.pieza:hover .pieza__velo,
.pieza:focus-visible .pieza__velo { opacity: 1; }

/* =============================================================================
   14 · TIPOS DE PROYECTO
   ========================================================================== */

.tipos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--linea-oscura);
}

.tipo {
  padding: 28px 0;
  border-bottom: 1px solid var(--linea-oscura);
}

.tipo__titulo {
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--oro-claro);
  margin-bottom: 10px;
}

.tipo p { font-size: 14.5px; color: #b9b0a4; max-width: 46ch; }

/* =============================================================================
   15 · CIERRE
   ========================================================================== */

.cierre {
  background: var(--tinta);
  color: var(--hueso);
  padding: 84px 0;
  text-align: center;
}
.cierre__interior { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.cierre__marca {
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.36em;
  color: var(--oro-claro);
  margin-bottom: 22px;
}

.cierre__titulo {
  color: var(--hueso);
  font-size: clamp(28px, 5.4vw, 54px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cierre__texto {
  margin: 24px auto 0;
  max-width: 54ch;
  color: #b9b0a4;
  font-size: 16px;
}

.cierre__pregunta {
  margin-top: 34px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--hueso);
}

.cierre__botones {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* =============================================================================
   16 · CONTACTO
   ========================================================================== */

.contacto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: start;
}

.formulario {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.campo { display: flex; flex-direction: column; }

.campo__etiqueta {
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grafito);
  margin-bottom: 8px;
}

.req { color: var(--oro); }

.campo__control {
  font-family: var(--texto);
  font-size: 15px;
  color: var(--tinta);
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 0;
  padding: 14px 14px;
  min-height: 50px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo__control::placeholder { color: #a89e91; }
.campo__control:hover { border-color: var(--piedra); }
.campo__control:focus {
  outline: none;
  border-color: var(--oro);
  box-shadow: 0 0 0 3px rgba(176, 137, 84, 0.16);
}

textarea.campo__control { resize: vertical; min-height: 120px; line-height: 1.55; }

.campo--error .campo__control { border-color: #b3261e; }

.campo__error {
  font-size: 12.5px;
  color: #b3261e;
  margin-top: 6px;
  min-height: 0;
}

.formulario__aviso {
  font-size: 12.5px;
  color: var(--gris);
  line-height: 1.6;
}

.formulario__estado {
  font-size: 14px;
  color: var(--tinta);
  min-height: 20px;
}
.formulario__estado:empty { display: none; }

.contacto__lado {
  display: grid;
  gap: 22px;
  padding-top: 4px;
}

.dato-contacto__etiqueta {
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 4px;
}

.dato-contacto__valor {
  font-size: 16px;
  color: var(--tinta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  word-break: break-word;
}
.dato-contacto__valor:hover { border-bottom-color: var(--oro); }

.contacto__cita {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--oro);
  border-top: 1px solid var(--linea);
  padding-top: 18px;
}

/* =============================================================================
   17 · PIE
   ========================================================================== */

.pie {
  background: #0e0d0b;
  color: #a79e92;
  padding: 60px 0 calc(100px + env(safe-area-inset-bottom));
}

.pie__interior {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.pie__nombre {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.28em;
  color: var(--hueso);
  margin-bottom: 12px;
}

.pie__lema { font-size: 14px; max-width: 34ch; }

.pie__cita {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--oro-claro);
}

.pie__titulo {
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7d7568;
  margin-bottom: 14px;
}

.pie__lista { font-size: 14px; max-width: 38ch; }

.pie__nav { display: grid; gap: 2px; }

.pie__nav a {
  font-size: 14px;
  color: #a79e92;
  text-decoration: none;
  padding: 8px 0;
  min-height: var(--toque);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  word-break: break-word;
}
.pie__nav a:hover { color: var(--hueso); }

.pie__legal {
  max-width: var(--ancho);
  margin: 44px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid rgba(250, 248, 244, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12.5px;
}

.pie__aviso-legal { color: #6f675b; }

/* =============================================================================
   BOTONES FLOTANTES
   ========================================================================== */

/*
  EN MÓVIL SON UNA BARRA ABAJO, NO UNA COLUMNA.
  Una columna fija en la esquina tapa el final del formulario y los botones de
  cotización al hacer scroll. Una barra ocupa todo el ancho, el contenido se le
  hace hueco con el padding del body y nunca queda nada debajo.
*/
.flotantes {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--linea);
  padding-bottom: env(safe-area-inset-bottom);
}

.flotante {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tinta);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s;
}

.flotante svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.flotante--whatsapp { color: #157a44; }
.flotante--instagram { color: #b3265e; }

.flotante:hover { background: rgba(20, 18, 15, 0.05); }
.flotante:active { background: rgba(20, 18, 15, 0.09); }

/* El globo de ayuda no se usa en móvil: la etiqueta ya va escrita. */
.flotante__tip { display: inline; }

/* =============================================================================
   AVISO BREVE
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  z-index: 120;
  max-width: calc(100vw - 32px);
  background: var(--tinta);
  color: var(--hueso);
  font-size: 13.5px;
  padding: 13px 22px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast[hidden] { display: none; }
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================================================
   RESPALDO PARA COPIAR
   ========================================================================== */

.copia {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 9, 7, 0.66);
}
.copia[hidden] { display: none; }

.copia__caja {
  width: 100%;
  max-width: 440px;
  background: var(--hueso);
  padding: 26px;
  border: 1px solid var(--piedra);
}

.copia__titulo {
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.copia__texto { font-size: 14px; margin-bottom: 14px; }

.copia__campo {
  width: 100%;
  font-family: var(--texto);
  font-size: 14px;
  padding: 13px;
  border: 1px solid var(--linea);
  background: #fff;
  color: var(--tinta);
  margin-bottom: 16px;
}

.copia__botones { display: flex; justify-content: flex-end; }

/* =============================================================================
   VISTA AMPLIADA DEL PORTAFOLIO
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  background: rgba(8, 7, 6, 0.94);
  padding: 16px;
}
.lightbox[hidden] { display: none; }

.lightbox__caja {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: grid;
  gap: 14px;
}

.lightbox__visor { display: grid; justify-items: center; gap: 12px; }

.lightbox__img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__titulo {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfc7bc;
  text-align: center;
  max-width: 60ch;
}

.lightbox__cerrar {
  position: absolute;
  top: -8px;
  right: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(250, 248, 244, 0.3);
  color: var(--hueso);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}
.lightbox__cerrar:hover { background: rgba(250, 248, 244, 0.12); }

.lightbox__controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.lightbox__flecha {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(250, 248, 244, 0.3);
  color: var(--hueso);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__flecha:hover { background: rgba(250, 248, 244, 0.12); }

.lightbox__cuenta {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #a79e92;
  min-width: 60px;
  text-align: center;
}

/* =============================================================================
   APARICIÓN AL DESPLAZARSE
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* Sin animaciones si el sistema lo pide, y sin dejar nada oculto. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dos__figura img,
  .pieza img { transition: none; }
}

/* =============================================================================
   PANTALLAS MEDIANAS
   ========================================================================== */

@media (min-width: 600px) {
  .seccion { padding: 96px 0; }
  .hero { padding: 60px 0 76px; }

  .rejilla-servicios { grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .lista-doble { grid-template-columns: 1fr 1fr; }
  .lista-columnas { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .pilares { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .tipos { grid-template-columns: 1fr 1fr; column-gap: 44px; }

  .formulario { grid-template-columns: 1fr 1fr; }
  .campo--ancho { grid-column: 1 / -1; }
  .formulario__aviso,
  .formulario__estado,
  .boton--ancho { grid-column: 1 / -1; }

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

  .pie__interior { grid-template-columns: 1fr 1fr; }
}

/* =============================================================================
   ESCRITORIO
   ========================================================================== */

@media (min-width: 900px) {

  .nav { display: flex; }
  .cabecera__cta { display: inline-flex; }
  .menu-boton { display: none; }

  .hero__interior { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
  .hero__figura img { aspect-ratio: 4 / 5; }

  .dos { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .dos--invertido .dos__figura { order: -1; }

  .rejilla-servicios { grid-template-columns: repeat(4, 1fr); column-gap: 40px; }
  .pilares { grid-template-columns: repeat(3, 1fr); }
  .tipos { grid-template-columns: repeat(3, 1fr); }
  .lista-columnas { grid-template-columns: repeat(3, 1fr); }

  .etapa { grid-template-columns: 90px 1fr; gap: 26px; }
  .etapa__num { font-size: 38px; }

  .contacto { grid-template-columns: 1.5fr 0.8fr; gap: 70px; }

  .galeria { grid-template-columns: repeat(4, 1fr); }

  .pie__interior { grid-template-columns: 1.3fr 1fr 0.8fr 1fr; gap: 40px; }

}

/* =============================================================================
   PANTALLAS MUY ANCHAS
   ========================================================================== */

@media (min-width: 1240px) {
  .hero__titulo { font-size: 68px; }
}

/* =============================================================================
   COLUMNA DE ACCESOS EN PANTALLAS ANCHAS
   =============================================================================
   Solo a partir de 1250 px. Antes de ese ancho, la columna se metía encima de la
   galería: el contenedor llega casi al borde y no queda margen libre. Por debajo,
   los tres accesos siguen siendo la barra inferior, que nunca tapa nada.
   ========================================================================== */

@media (min-width: 1250px) {
  body { padding-bottom: 0; }

  .flotantes {
    left: auto;
    right: 26px;
    bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
    border-top: 0;
    padding: 0;
    backdrop-filter: none;
  }

  .flotante {
    width: 54px;
    height: 54px;
    min-height: 54px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--linea);
    box-shadow: 0 8px 22px rgba(20, 18, 15, 0.12);
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s, background 0.2s;
  }
  .flotante:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 18, 15, 0.18);
  }

  /* En pantalla ancha el nombre va en un globo a la izquierda del botón. */
  .flotante__tip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background: var(--tinta);
    color: var(--hueso);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    padding: 7px 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
  }
  .flotante:hover .flotante__tip,
  .flotante:focus-visible .flotante__tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .toast { bottom: 30px; }

  .pie { padding-bottom: 40px; }
  .pie__legal { padding-bottom: 0; }
}


/* =============================================================================
   RECORRIDOS EN VIDEO
   =============================================================================
   Dentro del portafolio, después de la galería de fotos.

   DOS FORMAS DE VER, A PROPOSITO
   · La banda de arriba va en bucle y en silencio: da movimiento sin pedir permiso.
   · Las tarjetas se abren al pulsarlas, con controles. Ningún video lleva audio
     y ninguno se
     descarga hasta que alguien lo pide (preload="none"), así que la página sigue
     siendo ligera para quien no mira los videos.
   ========================================================================== */

.videos {
  margin-top: 68px;
  padding-top: 48px;
  border-top: 1px solid var(--linea);
  scroll-margin-top: calc(var(--cabeza) + 12px);
}

.videos__cabecera { margin-bottom: 26px; }

.videos__titulo {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 300;
  color: var(--tinta);
  margin-bottom: 8px;
}

.videos__texto {
  font-size: 14.5px;
  color: var(--grafito);
  max-width: 56ch;
}

/* ---------- La banda en bucle ---------- */

.banda {
  position: relative;
  margin: 0 0 14px;
  overflow: hidden;
  background: #0e0d0b;
}

.banda__video {
  width: 100%;
  height: auto;
  display: block;
  /* En móvil se respeta el formato vertical del material. */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.banda__texto {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, transparent, rgba(10, 9, 7, 0.82));
  color: #fff;
}

.banda__etiqueta {
  font-family: var(--display);
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.banda__nota {
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Las tarjetas ---------- */

.videos__rejilla {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.clip {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #0e0d0b;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.clip__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.clip__velo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0.12) 0%, rgba(10, 9, 7, 0.34) 55%, rgba(10, 9, 7, 0.74) 100%);
  transition: background 0.25s;
}

.clip__play {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(10, 9, 7, 0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s;
}

.clip__play svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 2px;
}

.clip:hover .clip__poster { transform: scale(1.05); }
.clip:hover .clip__play,
.clip:focus-visible .clip__play {
  transform: scale(1.08);
  background: var(--oro);
  border-color: var(--oro);
}

.clip__pie {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.clip__nombre { font-weight: 500; }
.clip__dur { color: rgba(255, 255, 255, 0.66); font-size: 10px; }

/* ---------- El reproductor ---------- */

.videobox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 7, 6, 0.95);
}
.videobox[hidden] { display: none; }

.videobox__caja {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 12px;
}

.videobox__player {
  width: 100%;
  max-height: 76vh;
  background: #000;
  display: block;
}

.videobox__titulo {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfc7bc;
  text-align: center;
}

.videobox__cerrar {
  position: absolute;
  top: -10px;
  right: 0;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(250, 248, 244, 0.3);
  color: var(--hueso);
  font-size: 16px;
  cursor: pointer;
  transform: translateY(-100%);
}
.videobox__cerrar:hover { background: rgba(250, 248, 244, 0.12); }

@media (min-width: 600px) {
  .videos__rejilla { grid-template-columns: repeat(3, 1fr); }
  .banda__video { aspect-ratio: 16 / 9; }
  .banda__texto { padding: 34px 32px 28px; }
}

@media (min-width: 900px) {
  .videos__rejilla { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .clip { aspect-ratio: 4 / 5; }
  .videobox__caja { max-width: 520px; }
}
