/* ==========================================================================
   PCR Amoblamientos: hoja de estilos de la página pública (index y privacidad)
   El panel (admin.html) sigue usando styles.css + admin.css: esta hoja no lo toca.

   Dirección «sala oscura»: un solo fondo casi negro, de punta a punta, y en
   él las cosas iluminadas (el mueble 3D, las fotos, las muestras). Sin
   franjas, sin filetes, sin contornos ni sombras: lo que separa es el aire,
   un escalón de tono y el tamaño. Una sola tipografía (Archivo, servida desde
   assets/fonts) en cinco tamaños, esquinas rectas y un solo acento.
   Pensada para clientes de 45 a 75 años:
   - Letra base de 18 a 20 px y texto corrido en tinta clara (7:1 o más).
   - Botones de 56 px de alto como mínimo, con el texto escrito.
   - Movimiento sobrio, solo con transform y opacity, y nada de viaje si el
     sistema pide menos movimiento.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* 1. Colores y medidas                                                        */
/* -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #121110;          /* casi negro con un dejo marrón, como un taller de noche */
  --elev: #1c1a18;        /* un escalón de tono: formulario, pie, botones secundarios */
  --campo: #26231f;       /* fondo de los campos y de los avisos */
  --texto: #eceae5;       /* hueso, poco saturado */
  --texto-2: #bcb6ad;     /* texto secundario */
  --tenue: #8e887f;       /* nombres en reposo (más de 4,5:1 igual) */
  --borde: #7a756e;       /* solo en campos del formulario: más que el 3:1 pedido */
  --acento: #f0732e;      /* el único acento: el índice activo y la marca iluminada */
  --btn: #eceae5;         /* el botón principal es claro: lo más visible de la pantalla */
  --btn-texto: #121110;
  --foco: #eceae5;
  --error: #ffb199;
  --wa: #17693a;          /* verde WhatsApp oscurecido: blanco encima 6,7:1 */

  --fuente: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Cinco tamaños hacen todo el trabajo */
  --t-chico: 1rem;
  --t-texto: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --t-bajada: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  --t-titulo: clamp(2.4rem, 1.5rem + 3.4vw, 4.75rem);
  --t-display: clamp(4.2rem, 0.5rem + 15vw, 9rem);

  --radio: 0;             /* esquinas rectas en botones, fotos y campos */
  --margen: clamp(1.25rem, 0.6rem + 3.2vw, 4rem);
  --seccion: clamp(5.5rem, 3.5rem + 7vw, 11rem);
  --suave: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 1000px) {
  /* En la compu el título de portada se ajusta para entrar en una línea */
  :root { --t-display: clamp(6rem, 12.1vw, 15rem); }
}


/* -------------------------------------------------------------------------- */
/* 2. Base                                                                     */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: var(--t-texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--acento); color: #121110; }

a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* Foco siempre visible y grueso: es la guía de quien navega con teclado */
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  padding: 0.9rem 1.2rem; background: var(--btn); color: var(--btn-texto);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.marco { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--margen); }

/* -------------------------------------------------------------------------- */
/* 3. Tipografía                                                               */
/* -------------------------------------------------------------------------- */
/* Peso regular aun en grande: sobre negro el bold se ve barato */
.titulo-xl, .titulo, .titulo-m {
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}
.titulo-xl { font-size: var(--t-display); }
.titulo { font-size: var(--t-titulo); }
.titulo-m { font-size: var(--t-bajada); line-height: 1.2; letter-spacing: -0.01em; }

.bajada {
  font-size: var(--t-bajada);
  line-height: 1.4;
  color: var(--texto-2);
  max-width: 34ch;
  text-wrap: pretty;
}
.bajada--arriba { margin-top: 1.4rem; }
.texto { max-width: 62ch; color: var(--texto-2); text-wrap: pretty; }
.texto + .texto { margin-top: 1em; }
.texto strong, .bajada strong { color: var(--texto); font-weight: 600; }

/* -------------------------------------------------------------------------- */
/* 4. Botones y enlaces                                                        */
/* -------------------------------------------------------------------------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 56px; padding: 0.8rem 1.7rem;
  border: 0; border-radius: var(--radio);
  font-size: var(--t-chico); font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
/* El principal: relleno claro, el único sólido claro de cada pantalla */
.btn--principal { background: var(--btn); color: var(--btn-texto); }
.btn--principal:hover { background: #ffffff; }
/* El secundario: un escalón de tono, sin contorno */
.btn--contorno { background: var(--campo); color: var(--texto); }
.btn--contorno:hover { background: #34302b; }
/* WhatsApp lleva su verde: es como la mayoría reconoce la aplicación */
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0f4f2b; }
.btn--ancho { width: 100%; }
@media (max-width: 480px) { .btn { white-space: normal; } }

.acciones { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.enlace {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: underline; color: var(--texto);
}
.enlace:hover { text-decoration-thickness: 2.5px; }

/* -------------------------------------------------------------------------- */
/* 5. Encabezado y menú                                                        */
/* -------------------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--bg); }
.header.is-stuck { transform: translateY(-10px); }
.header.is-stuck .header__fila { transform: translateY(5px); }
.header.is-stuck .marca__logo { transform: scale(0.88); }
.header.is-stuck + .mobile-menu { top: 70px; }
.header__fila { display: flex; align-items: center; gap: 1.2rem; min-height: 80px; }

.marca { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; margin-right: auto; }
.marca__logo { width: 46px; height: 46px; background: #000; flex: none; }
.marca__nombre { display: block; font-size: var(--t-chico); font-weight: 600; line-height: 1.15; }
.marca__desde { display: block; font-size: var(--t-chico); color: var(--texto-2); line-height: 1.2; }

.nav { display: none; }
.nav__lista { display: flex; gap: 0.4rem; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.7rem;
  font-size: var(--t-chico); font-weight: 400; text-decoration: none; white-space: nowrap;
  color: var(--texto-2); transition: color 0.15s;
}
/* El activo: tinta plena y una barra corta en el acento */
.nav__link:hover, .nav__link.is-active { color: var(--texto); }
.nav__link::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 6px; height: 3px;
  background: var(--texto); transform: scaleX(0); transform-origin: left;
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active::after { transform: scaleX(1); background: var(--acento); }

.header__cta { display: none; }

.burger {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1rem;
  background: var(--campo); border: 0; border-radius: var(--radio);
  font-size: var(--t-chico); font-weight: 600; cursor: pointer;
}
/* En celulares angostos el logo y el botón del menú tienen que entrar en una línea */
@media (max-width: 420px) {
  .header__fila { gap: 0.6rem; }
  .marca { gap: 0.6rem; }
  .marca__logo { width: 40px; height: 40px; }
  .burger { padding: 0 0.8rem; gap: 0.5rem; }
}
.burger__lineas { display: grid; gap: 4px; width: 20px; }
.burger__lineas span { display: block; height: 2px; background: currentColor; }
/* Abierto, el botón dice "Cerrar" y las rayas forman una cruz */
.burger__cerrar, .burger[aria-expanded="true"] .burger__abrir { display: none; }
.burger[aria-expanded="true"] .burger__cerrar { display: inline; }
.burger[aria-expanded="true"] .burger__lineas span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lineas span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lineas span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 80px 0 0 0; z-index: 90;
  overflow-y: auto; padding: 1rem var(--margen) 2.5rem;
  background: var(--bg);
}
.mobile-menu__list { display: grid; margin-bottom: 1.8rem; }
.mobile-menu__link {
  display: flex; align-items: center; min-height: 60px;
  font-size: var(--t-bajada); font-weight: 400; text-decoration: none;
}
.mobile-menu__footer { display: grid; gap: 0.9rem; }

@media (min-width: 1100px) and (max-width: 1399px) {
  .nav__link { padding: 0 0.55rem; }
}
@media (min-width: 1100px) {
  .nav { display: block; }
  .burger, .mobile-menu { display: none !important; }
  .header__cta { display: inline-flex; min-height: 50px; padding: 0.6rem 1.3rem; }
}

/* -------------------------------------------------------------------------- */
/* 6. Portada: el mueble 3D iluminado arriba, el título a todo el ancho abajo  */
/* -------------------------------------------------------------------------- */
.portada { position: relative; overflow: hidden; }
.portada__grid {
  display: grid; gap: 1.6rem;
  padding-top: 0.5rem; padding-bottom: 1rem;
  grid-template-areas: "objeto" "titulo" "fila";
}
.portada__objeto { grid-area: objeto; display: grid; gap: 0.4rem; justify-items: center; }
.portada__objeto .escena3d { aspect-ratio: 1; width: min(100%, 32svh, 620px); }

.portada__fila { grid-area: fila; display: grid; gap: 1.4rem; }
.portada__bajada { font-size: var(--t-texto); line-height: 1.5; max-width: 40ch; text-wrap: pretty; }
.portada__datos { font-size: var(--t-texto); line-height: 1.5; color: var(--texto-2); max-width: 34ch; }
.portada__datos strong { color: var(--texto); font-weight: 600; }
.portada__accion { justify-self: start; }

/* El título a la medida que tenía antes de la sala oscura: nombra sin tapar el mueble */
.portada__titulo {
  grid-area: titulo;
  font-size: clamp(2.4rem, 1.6rem + 2.8vw, 4rem); font-weight: 400;
  line-height: 1.08; letter-spacing: -0.02em;
  transform-origin: left bottom;
}

/* El contador de años no cambia de ancho mientras sube */
[data-contar] { display: inline-block; font-variant-numeric: tabular-nums; }

@media (min-width: 1000px) {
  .portada__grid {
    min-height: calc(100svh - 80px);
    grid-template-rows: 1fr auto auto;
    grid-template-areas: "objeto" "fila" "titulo";
    row-gap: 1.8rem; padding-bottom: 1.4rem;
  }
  .portada__objeto { align-self: center; }
  .portada__objeto .escena3d { width: min(100%, 54svh, 640px); }
  .portada__fila {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
    align-items: end; column-gap: clamp(1.5rem, 3vw, 3.5rem);
  }
  .portada__accion { justify-self: end; }
  .portada__titulo { white-space: nowrap; }
}

/* El 3D: la imagen fija abajo y el lienzo encima, que aparece cuando está listo */
.escena3d { position: relative; }
.escena3d__fija, .escena3d__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; }
.escena3d__fija { object-fit: contain; }
.escena3d__lienzo { opacity: 0; transition: opacity 0.6s; }
.escena3d.is-listo .escena3d__lienzo { opacity: 1; }
.escena3d.is-listo .escena3d__fija { opacity: 0; transition: opacity 0.6s; }
.sin-3d .escena3d__lienzo { display: none; }

/* -------------------------------------------------------------------------- */
/* 7. Secciones                                                                */
/* -------------------------------------------------------------------------- */
/* Un solo fondo para toda la página: cada sección deja aire solo arriba */
.seccion { padding-top: var(--seccion); }
main > .seccion:last-child { padding-bottom: var(--seccion); }
.cabeza { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
@media (min-width: 900px) {
  .cabeza--dos { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
}

/* Compromisos: tres columnas de texto, sin divisores */
.compromisos { display: grid; gap: 2.4rem; }
.compromiso h3 { font-size: var(--t-bajada); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.compromiso p { color: var(--texto-2); max-width: 34ch; }
@media (min-width: 760px) {
  .compromisos { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; }
}

/* Marcas: una frase grande en tinta tenue; un nombre por vez se ilumina */
.marcas {
  margin-top: clamp(4rem, 3rem + 4vw, 7rem); max-width: 30ch;
  font-size: var(--t-bajada); line-height: 1.3; letter-spacing: -0.01em;
  color: var(--texto); text-wrap: pretty;
}
.marcas__n { color: var(--tenue); transition: color 0.4s; }
.marcas__n.is-lit { color: var(--acento); }

/* Qué hacemos: los nombres son el índice. En el celular, cada uno con su foto */
.servicios__lista { display: grid; gap: 3rem; }
.servicio__foto { overflow: hidden; margin-bottom: 1.2rem; }
.servicio__foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.servicio__nombre { font-size: var(--t-titulo); font-weight: 400; line-height: 1; letter-spacing: -0.03em; }
.servicio__texto { margin-top: 0.8rem; color: var(--texto-2); max-width: 40ch; }
.servicios__visor { display: none; }
@media (min-width: 900px) {
  .servicios { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
  .servicios__lista { gap: clamp(2rem, 1rem + 2vw, 3.5rem); padding-block: 8vh; }
  .servicio { cursor: default; }
  .servicio__foto { display: none; }
  .servicio__nombre { color: var(--tenue); transition: color 0.3s; }
  .servicio.is-activo .servicio__nombre { color: var(--texto); }
  .servicios__visor {
    display: block; position: sticky; top: 14vh;
    aspect-ratio: 4 / 5; overflow: hidden; background: var(--elev);
  }
  .servicios__visor img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 0.35s;
  }
  .servicios__visor img.is-activo { opacity: 1; }
}

/* Trabajos: filtros y fotos con el título debajo (nunca texto sobre la foto) */
.filtros { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.4rem; }
.chip {
  min-height: 52px; padding: 0 1.3rem;
  background: var(--campo); border: 0; border-radius: var(--radio);
  font-size: var(--t-chico); font-weight: 600; cursor: pointer;
}
.chip:hover { background: #34302b; }
.chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-texto); }

.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2.4rem 1.4rem; }
/* Un botón centra su contenido si queda más alto: se alinea arriba para que todas las fotos arranquen parejas */
.tile {
  display: flex; flex-direction: column; justify-content: flex-start; align-self: start;
  width: 100%; padding: 0; text-align: left;
  background: none; border: 0; cursor: zoom-in;
}
.tile.is-hidden { display: none; }
.tile__foto { display: block; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--elev); }
.tile__caption { display: block; padding-top: 0.8rem; }
.tile__caption strong { display: block; font-weight: 600; font-size: var(--t-chico); line-height: 1.3; }
.tile__caption span { display: block; color: var(--texto-2); font-size: var(--t-chico); line-height: 1.45; margin-top: 0.2rem; }
.tile:hover .tile__caption strong { text-decoration: underline; text-underline-offset: 4px; }
.galeria__vacia { color: var(--texto-2); }
.galeria__mas { margin-top: 3rem; }
.galeria__ig { margin-top: 1.4rem; }

/* Por dentro: carrusel con flechas grandes y el texto debajo de cada foto */
.carrusel__pista {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 72vw, 380px);
  gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; scrollbar-width: thin;
}
.carrusel__slide { scroll-snap-align: start; }
.carrusel__figura { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; padding: 0; text-align: left; background: none; border: 0; cursor: zoom-in; }
.carrusel__figura img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--elev); }
.carrusel__pie { display: block; padding-top: 0.8rem; }
.carrusel__pie strong { display: block; font-weight: 600; font-size: var(--t-chico); line-height: 1.3; }
.carrusel__pie span { display: block; color: var(--texto-2); font-size: var(--t-chico); line-height: 1.45; margin-top: 0.2rem; }
.carrusel__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.carrusel__puntos { display: flex; flex-wrap: wrap; }
.carrusel__punto { width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.carrusel__punto::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; translate: -50% -50%;
  border-radius: 50%; background: var(--tenue);
}
.carrusel__punto[aria-current="true"]::before { background: var(--texto); }
.carrusel__botones { display: flex; gap: 0.8rem; }
.carrusel__btn {
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
  background: var(--campo); color: var(--texto); border: 0; border-radius: 50%; cursor: pointer;
}
.carrusel__btn:not(:disabled):hover { background: #34302b; }
.carrusel__btn svg { width: 24px; height: 24px; }
.carrusel__btn:disabled { opacity: 0.35; cursor: default; }

/* Cómo trabajamos: el mueble 3D queda fijo y los pasos pasan a los costados
   (título a la izquierda, explicación a la derecha). */
.recorrido__cuerpo { position: relative; }
.recorrido__escena { position: sticky; top: 70px; z-index: 0; height: 42vh; height: 42svh; }
.recorrido__pasos { position: relative; z-index: 1; }
/* En el celular el texto llega desde abajo, con fondo propio: pasa por
   encima del mueble y nunca queda tapado por él. */
.paso3d { min-height: 90vh; min-height: 90svh; padding-top: 44vh; padding-top: 44svh; padding-bottom: 2rem; }
.paso3d__titulo, .paso3d__texto { background: var(--bg); }
.paso3d__titulo { font-size: var(--t-titulo); font-weight: 400; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; padding-top: 0.4rem; }
.paso3d__texto { padding-top: 1rem; max-width: 34ch; font-size: var(--t-texto); line-height: 1.55; color: var(--texto-2); text-wrap: pretty; }
.recorrido__cierre { padding-top: 2.5rem; }
@media (min-width: 1000px) {
  .recorrido__escena { height: calc(100vh - 80px); height: calc(100svh - 80px); }
  .recorrido__pasos { margin-top: calc(-100vh + 80px); margin-top: calc(-100svh + 80px); }
  .paso3d {
    display: grid; align-items: center; column-gap: 2rem;
    grid-template-columns: minmax(0, 3.3fr) minmax(0, 4.4fr) minmax(0, 3.3fr);
    min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); padding: 0;
  }
  .paso3d__titulo, .paso3d__texto { background: none; padding: 0; }
  .paso3d__titulo { grid-column: 1; grid-row: 1; }
  .paso3d__texto { grid-column: 3; grid-row: 1; margin: 0; }
}
/* Sin JavaScript o sin 3D, los pasos quedan como una lista común */
html:not(.js) .recorrido__escena, .sin-3d .recorrido__escena { display: none; }
html:not(.js) .recorrido__pasos, .sin-3d .recorrido__pasos { margin-top: 0; }
html:not(.js) .paso3d, .sin-3d .paso3d { display: block; min-height: 0; padding-block: 1.6rem; }
html:not(.js) .paso3d__texto, .sin-3d .paso3d__texto { margin-top: 0.8rem; max-width: 62ch; }

/* Materiales: cuatro muestras 3D, cada una la cosa más clara de su lugar */
.materiales { display: grid; gap: 2.5rem; }
.material__img { width: 100%; max-width: min(360px, 70vw); aspect-ratio: 640 / 520; object-fit: contain; margin-bottom: 0.6rem; }
/* Las muestras se giran con el dedo de costado; el arrastre vertical sigue bajando la página */
.material__img .escena3d__lienzo { cursor: grab; touch-action: pan-y; user-select: none; }
.material__img .escena3d__lienzo.is-agarrado { cursor: grabbing; }
.material h3 { font-size: var(--t-bajada); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.material p { color: var(--texto-2); max-width: 40ch; }
@media (min-width: 760px) { .materiales { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
@media (min-width: 1200px) { .materiales { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; } }

/* El taller */
.taller { display: grid; gap: 3rem; }
.direccion { font-style: normal; line-height: 1.55; margin-block: 1.8rem; }
.direccion strong { font-weight: 600; }
.mapa { display: block; min-height: 420px; overflow: hidden; background: var(--elev); }
.mapa iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.35) brightness(0.9); }
@media (min-width: 900px) { .taller { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: clamp(3rem, 6vw, 7rem); } }

/* Preguntas: todas abiertas; pregunta grande a la izquierda, respuesta al lado */
.faq { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.faq__q { font-size: var(--t-bajada); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.faq__a p { margin-top: 0.8rem; color: var(--texto-2); max-width: 42ch; text-wrap: pretty; }
.faq__a strong { color: var(--texto); font-weight: 600; }
@media (min-width: 900px) {
  .faq__item { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(2rem, 6vw, 8rem); align-items: baseline; }
  .faq__a p { margin-top: 0; }
}

/* -------------------------------------------------------------------------- */
/* 8. Contacto y formulario                                                    */
/* -------------------------------------------------------------------------- */
.contacto { display: grid; gap: 3rem; }
.contacto__otros { display: grid; gap: 1rem; margin-top: 2.2rem; max-width: 30rem; }
@media (min-width: 1000px) { .contacto { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 7rem); } }

.form { padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); background: var(--elev); }
.form__intro { color: var(--texto-2); margin-bottom: 1.8rem; }
.form__grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }

.field { display: grid; gap: 0.5rem; align-content: start; }
.field label { font-size: var(--t-texto); font-weight: 600; }
.field .req { color: var(--texto); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 58px; padding: 0.8rem 1rem;
  background: var(--campo); color: var(--texto);
  /* Fondo propio y borde completo: el campo se reconoce como lugar para
     escribir, que a muchos les cuesta ver */
  border: 1.5px solid var(--borde); border-radius: var(--radio);
  font-size: var(--t-texto);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bcb6ad' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 22px;
  padding-right: 3rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--texto-2); opacity: 0.85; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--texto); }
/* El error manda aunque el campo tenga el foco: es justo cuando hay que verlo */
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__hint { font-size: var(--t-chico); color: var(--texto-2); }
.field__error { font-size: var(--t-chico); font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* trampa anti-spam, no es una línea: taste-skill-ignore */

.form__footer { margin-top: 1.8rem; display: grid; gap: 1.2rem; }
.form__legal { font-size: var(--t-chico); line-height: 1.55; color: var(--texto-2); max-width: 70ch; }
.form__leyenda { font-size: 0.875rem; line-height: 1.5; color: var(--texto-2); max-width: 75ch; }
.form__legal a, .form__consent a { color: var(--texto); }
.form__consent { display: flex; gap: 0.9rem; align-items: flex-start; font-size: var(--t-texto); cursor: pointer; }
.form__consent input { width: 28px; height: 28px; flex: none; margin-top: 0.1rem; accent-color: var(--texto); }

#submit-btn { width: 100%; min-height: 62px; font-size: var(--t-texto); }
.btn__spinner { display: none; width: 20px; height: 20px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar 0.8s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading .btn__spinner { display: block; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn__spinner { animation-duration: 2.4s; } }

.form__status { display: none; }
.form__status.is-visible {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 1rem 1.1rem; background: var(--campo);
  font-size: var(--t-chico);
}
.form__status svg { width: 24px; height: 24px; flex: none; }
.form__status--error { color: var(--error); }
.form__status--ok { color: var(--texto); }
.form__status a { color: inherit; }

.form__sellos { display: grid; gap: 0.6rem; padding-top: 0.6rem; }
.form__sello { display: flex; gap: 0.7rem; align-items: center; color: var(--texto-2); font-size: var(--t-chico); }
.form__sello svg { width: 22px; height: 22px; flex: none; color: var(--texto); }

.form__success { display: none; text-align: center; padding: 1.5rem 0; }
.form__success.is-visible { display: block; }
.form__success h3 { font-size: var(--t-bajada); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 0.8rem; }
.form__success p { color: var(--texto-2); max-width: 40ch; margin-inline: auto; }
.form__success-accion { margin-top: 1.4rem; }
.form__success .tick { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.2rem; background: var(--acento); color: var(--btn-texto); border-radius: 50%; }
.form__success .tick svg { width: 30px; height: 30px; }
.form.is-sent .form__grid, .form.is-sent .form__footer, .form.is-sent .form__intro { display: none; }

/* -------------------------------------------------------------------------- */
/* 9. Pie, barra móvil, WhatsApp y visor de fotos                              */
/* -------------------------------------------------------------------------- */
/* El pie: columnas arriba y el nombre a todo el ancho como cierre */
.footer { margin-top: var(--seccion); background: var(--elev); }
.footer__marco { display: grid; gap: 2.5rem; padding-block: 3rem 1.6rem; }
.footer__grid { display: grid; gap: 2rem; }
.footer__col { font-style: normal; color: var(--texto-2); }
.footer__col strong { color: var(--texto); font-weight: 600; }
.footer__links { display: grid; gap: 0.2rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texto-2); text-decoration-color: var(--tenue); overflow-wrap: anywhere; }
.footer__links a:hover { color: var(--texto); text-decoration-color: currentColor; }
.footer__bajo { color: var(--texto-2); font-size: var(--t-chico); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* En el celular, la barra fija de abajo no tiene que tapar el pie */
@media (max-width: 759px) { .footer__marco { padding-bottom: 7.5rem; } }

.barra-movil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
  padding: 0.8rem var(--margen) calc(0.8rem + env(safe-area-inset-bottom));
  background: var(--elev);
  transform: translateY(110%); transition: transform 0.2s;
}
.barra-movil.is-visible { transform: none; }
.barra-movil .btn { min-height: 54px; padding: 0.6rem 0.8rem; }
@media (min-width: 760px) { .barra-movil { display: none; } }

.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80;
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 56px; padding: 0 1.3rem;
  background: var(--wa); color: #fff; border-radius: var(--radio);
  font-size: var(--t-chico); font-weight: 600; text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.wa-float.is-visible { opacity: 1; visibility: visible; }
.wa-float:hover { background: #0f4f2b; text-decoration: underline; }
.wa-float svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 759px) { .wa-float { display: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 4.5rem 1rem 2rem;
  background: rgba(18, 17, 16, 0.97); color: #eceae5;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
/* Al abrir, visible al instante: si no, el botón Cerrar todavía es invisible cuando se le pasa el foco */
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.2s, visibility 0s; }
.lightbox__figure { display: grid; justify-items: center; gap: 1rem; max-width: min(1100px, 100%); }
.lightbox__img { max-width: 100%; max-height: 74vh; object-fit: contain; }
.lightbox__caption { max-width: 60ch; text-align: center; font-size: var(--t-chico); color: #bcb6ad; }
.lightbox__caption strong { display: block; color: #eceae5; font-weight: 600; font-size: var(--t-texto); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 58px; height: 58px; padding: 0;
  background: #26231f; color: #eceae5; border: 0; border-radius: 50%; cursor: pointer;
}
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__btn:focus-visible { outline-color: #eceae5; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; }
  .lightbox { padding-bottom: 6rem; }
}

/* Movimiento: solo con JavaScript (html.js) y si el sistema no pide menos
   movimiento. Sin eso todo se ve quieto y completo desde el principio. */
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .carrusel__btn, .burger { transition: background-color 0.3s, color 0.3s, transform 0.4s var(--suave); }
  .btn:hover { transform: translateY(-2px); }
  .btn:active, .chip:active, .carrusel__btn:active, .burger:active { transform: scale(0.97); transition-duration: 0.1s; }
  .nav__link::after { transition: transform 0.45s var(--suave), background-color 0.3s; }
  .header__fila, .marca__logo { transition: transform 0.5s var(--suave); }
  .header { transition: transform 0.5s var(--suave); }

  /* Zoom leve de las fotos al pasar el mouse */
  .tile img, .carrusel__figura img { transition: transform 0.8s var(--suave); }
  .material__img .escena3d__lienzo { transition: opacity 0.6s, transform 0.8s var(--suave); }
  .material__img, .carrusel__figura { overflow: hidden; }
  @media (hover: hover) {
    .tile:hover img, .carrusel__figura:hover img { transform: scale(1.04); }
    .material:hover .escena3d__lienzo { transform: scale(1.05); }
  }
  /* La foto del visor se acerca despacio mientras está activa */
  .servicios__visor img { transition: opacity 0.35s, transform 6s linear; transform: scale(1.06); }
  .servicios__visor img.is-activo { transform: scale(1); }

  /* Entrada de la portada al cargar: el mueble, la fila y después el título */
  html.js .portada__objeto { animation: entrar-objeto 0.9s var(--suave) both; }
  html.js .portada__fila { animation: entrar 0.8s var(--suave) 0.15s both; }
  html.js .portada__titulo { animation: entrar 0.9s var(--suave) 0.25s both; }

  /* Movimiento firma: el título de portada se achica apenas al irse,
     atado al scroll */
  @supports (animation-timeline: view()) {
    html.js .portada__titulo {
      animation: entrar 0.9s var(--suave) 0.25s both, achicar linear both;
      animation-timeline: auto, view();
      animation-range: normal, exit 0% exit 100%;
    }
  }

  /* Entrada al bajar: el JS pone .reveal y, al verse, .is-in */
  html.js .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s var(--suave), transform 0.7s var(--suave);
    transition-delay: var(--reveal-delay, 0ms);
  }
  html.js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } }
@keyframes entrar-objeto { from { opacity: 0; transform: scale(0.96); } }
@keyframes achicar { to { scale: 0.93; opacity: 0.6; } }

/* -------------------------------------------------------------------------- */
/* 10. Página de privacidad                                                    */
/* -------------------------------------------------------------------------- */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) var(--seccion); }
.legal__cuerpo { max-width: 46rem; }
.legal h1 { margin-bottom: 0.8rem; }
.legal h2 { font-size: var(--t-bajada); font-weight: 400; line-height: 1.3; margin: 3rem 0 0.8rem; }
.legal p, .legal li { color: var(--texto-2); }
.legal p + p { margin-top: 1em; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-block: 0.6rem 1em; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--texto); font-weight: 600; }
.legal a { color: var(--texto); }
.legal .meta { margin-bottom: 1rem; }
.legal .aaip { margin-top: 1rem; padding: 1.2rem 1.4rem; background: var(--elev); color: var(--texto); }
