/* ==========================================================================
   PiedraViva (demo) — Hoja de estilos
   Concepto: taller y muestrario. Marcos rectos de doble línea (tomados del
   recuadro del logo), etiquetas de muestra como en una placa de piedra,
   azul de marca y neutros fríos. Mobile first.
   ========================================================================== */

/* ---------- Fuentes alojadas en el sitio (sin conexión a Google) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
/* Layout: columna única en celular; en desktop, hero partido texto/tablero de muestras y grillas de 4–6 columnas. */
:root {
  /* Color (contraste AA verificado sobre los fondos donde se usa) */
  --color-primary: #284B9C;        /* azul del logo */
  --color-primary-dark: #172C5E;   /* azul profundo: fondos de footer y títulos */
  --color-ink: #141A26;            /* texto principal */
  --color-muted: #4B5567;          /* texto secundario (7:1 sobre --color-bg) */
  --color-line: #CDD3DE;           /* líneas y bordes */
  --color-bg: #F3F4F6;             /* fondo general, gris frío */
  --color-surface: #FFFFFF;        /* tarjetas y bloques claros */
  --color-on-dark: #FFFFFF;
  --color-on-dark-muted: #C9D3EA;  /* texto secundario sobre azul profundo */
  --color-wa: #25D366;             /* WhatsApp */
  --color-wa-ink: #0A2E18;         /* texto sobre verde WhatsApp */
  --color-focus: #F2B705;          /* anillo de foco, visible sobre claro y oscuro */
  --color-error: #A3231B;

  /* Tipografía */
  --font-display: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-h2: clamp(1.625rem, 1.25rem + 1.8vw, 2.5rem);
  --fs-h1: clamp(2rem, 1.3rem + 3.6vw, 3.5rem);

  /* Espaciado (escala de 4/8 px) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1200px;
  --radius: 2px;                   /* bordes rectos, como el recuadro del logo */
  --header-h: 64px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Franja del área segura superior (celulares con notch) */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--color-primary); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--color-primary-dark); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--color-surface); color: var(--color-ink); padding: 8px 12px; font-weight: 600; }
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: var(--sp-8); }
.section--white { background: var(--color-surface); }
.section-head { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); max-width: 720px; }
.section-head p { color: var(--color-muted); font-size: var(--fs-lg); }

/* Etiqueta espaciada, eco de "M A R M O L E R Í A" en el logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-xs);
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-primary);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-base); letter-spacing: 0.01em;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--color-primary); color: var(--color-on-dark); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--ghost { background: transparent; color: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn--ghost:hover { background: var(--color-primary-dark); color: var(--color-on-dark); }
.btn--wa { background: var(--color-wa); color: var(--color-wa-ink); }
.btn--wa:hover { background: #1EBE5A; }
.btn--light { background: var(--color-surface); color: var(--color-primary-dark); }
.btn--light:hover { background: var(--color-bg); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--color-primary);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 172px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding: 8px 12px; background: transparent; color: var(--color-on-dark);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius);
  font: 500 var(--fs-sm) var(--font-display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-primary-dark); border-top: 1px solid rgba(255, 255, 255, .15);
  padding-block: var(--sp-3) var(--sp-5); padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.site-nav ul { list-style: none; display: grid; gap: var(--sp-1); }
.site-nav a { display: block; padding: 12px 4px; color: var(--color-on-dark); text-decoration: none; font-family: var(--font-display); font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-nav a:hover { color: var(--color-on-dark-muted); }
.site-nav .nav-cta { margin-top: var(--sp-3); border: 0; }
.site-nav .nav-cta a { border: 0; text-align: center; background: var(--color-surface); color: var(--color-primary-dark); padding: 12px 18px; }

@media (min-width: 960px) {
  .brand img { width: 216px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: var(--sp-5); }
  .site-nav a { padding: 8px 0; border: 0; font-size: var(--fs-sm); }
  .site-nav .nav-cta { margin: 0; }
  .site-nav .nav-cta a { padding: 10px 18px; }
}

/* ---------- Hero ----------
   En escritorio el hero entra completo en la pantalla y deja ver el comienzo de la sección siguiente. */
.hero { padding-block: var(--sp-6) var(--sp-7); background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
.hero-copy { display: grid; gap: var(--sp-4); min-width: 0; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 18em; }
.hero-lead { font-size: var(--fs-lg); color: var(--color-muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-facts { list-style: none; display: grid; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--color-line); font-size: var(--fs-sm); color: var(--color-muted); }
.hero-facts li { display: flex; gap: var(--sp-2); align-items: center; }
.hero-facts svg { width: 18px; height: 18px; flex: none; color: var(--color-primary); }
.hero-facts strong { color: var(--color-ink); font-weight: 600; }

/* Fotos de trabajos con fundido cruzado, enmarcadas con la doble línea del logo */
.hero-media { position: relative; margin: 0; padding: var(--sp-3); border: 3px solid var(--color-primary-dark); background: var(--color-surface); min-width: 0; }
.hero-media::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--color-line); pointer-events: none; }
.hero-frame { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--color-bg); }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-media figcaption { position: relative; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--color-muted); min-height: 1.6em; }
@media (min-width: 900px) {
  .hero { padding-block: var(--sp-7); }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: var(--sp-8); }
  .hero-frame { aspect-ratio: 5 / 4; max-height: calc(100svh - 300px); min-height: 300px; width: 100%; }
}

/* ---------- Necesidad ---------- */
.need-grid { display: grid; gap: var(--sp-5); }
.need-intro h2 { font-size: var(--fs-h2); }
.need-intro p { margin-top: var(--sp-4); color: var(--color-muted); font-size: var(--fs-lg); }
.need-list { list-style: none; display: grid; gap: var(--sp-3); }
.need-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-4); align-items: center;
  padding: var(--sp-4); background: var(--color-surface); border: 1px solid var(--color-line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.need-list li:hover { transform: translateX(4px); border-color: var(--color-primary); box-shadow: 0 8px 20px rgba(20, 26, 38, .08); }
.need-icon { width: 56px; height: 56px; display: grid; place-items: center; background: #EEF2FA; color: var(--color-primary); transition: background-color .3s, color .3s; }
.need-list li:hover .need-icon { background: var(--color-primary); color: var(--color-on-dark); }
.need-icon svg { width: 32px; height: 32px; }
.need-list strong { display: block; font-family: var(--font-display); font-weight: 500; color: var(--color-primary-dark); }
.need-list p { color: var(--color-muted); font-size: var(--fs-sm); }
@media (min-width: 900px) { .need-grid { grid-template-columns: 1fr 1.2fr; gap: var(--sp-8); align-items: center; } }

/* ---------- Servicios ----------
   Tablero: tarjetas claras, azules (--blue) y la de piletas en azul profundo (--accent). */
.service-grid { list-style: none; display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
.service {
  position: relative; display: grid; gap: var(--sp-2); align-content: start;
  padding: var(--sp-5); background: var(--color-bg); border-top: 3px solid var(--color-primary);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service:hover { transform: scale(1.04); box-shadow: 0 14px 32px rgba(20, 26, 38, .18); z-index: 1; }
.service svg { width: 36px; height: 36px; color: var(--color-primary); }
.service h3 { font-size: var(--fs-h3); }
.service p { color: var(--color-muted); font-size: var(--fs-sm); }
.service--blue { background: var(--color-primary); border-top-color: var(--color-on-dark-muted); }
.service--blue h3, .service--blue svg { color: var(--color-on-dark); }
.service--blue p { color: #E3E9F6; }
.service--accent { background: var(--color-primary-dark); border-top-color: var(--color-wa); }
.service--accent h3 { color: var(--color-on-dark); }
.service--accent p, .service--accent svg { color: var(--color-on-dark-muted); }
@media (min-width: 600px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Catálogo de materiales ---------- */
.tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 2px solid var(--color-primary-dark); margin-bottom: var(--sp-5); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 48px; padding: 10px 16px; background: transparent; border: 0; cursor: pointer;
  font: 500 var(--fs-sm) var(--font-display); color: var(--color-muted); letter-spacing: .02em;
}
.tab[aria-selected="true"] { background: var(--color-primary-dark); color: var(--color-on-dark); }
.tab:hover:not([aria-selected="true"]) { color: var(--color-primary-dark); }
.tab-count { font-variant-numeric: tabular-nums; opacity: .75; margin-left: 4px; }
.cat-hint { font-size: var(--fs-sm); color: var(--color-muted); margin-bottom: var(--sp-5); }
.cat-group + .cat-group { margin-top: var(--sp-6); }
.cat-group h3 { display: flex; align-items: baseline; gap: var(--sp-3); font-size: var(--fs-base); letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.cat-group h3::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }
.cat-group h3 small { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--color-muted); font-size: var(--fs-sm); }
.swatches { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-2); }
.swatch {
  display: grid; gap: 6px; width: 100%; padding: 0; text-align: left; background: none; border: 0; cursor: pointer; color: inherit; font: inherit;
}
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--color-line); transition: transform .2s, box-shadow .2s; }
.swatch:hover img { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 26, 38, .18); }
.swatch-name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.25; color: var(--color-ink); overflow-wrap: anywhere; }
.swatch-meta { font-size: 11px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.swatch-cta { font-size: var(--fs-xs); color: var(--color-primary); font-weight: 600; }
.cat-note { margin-top: var(--sp-6); padding: var(--sp-4); border-left: 3px solid var(--color-primary); background: var(--color-surface); font-size: var(--fs-sm); color: var(--color-muted); }
.cat-note strong { color: var(--color-ink); }
@media (min-width: 600px) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); } }
@media (min-width: 1000px) { .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Recuadro de marcas junto al título del catálogo */
.cat-head { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.cat-head .section-head { margin-bottom: 0; }
.brands { padding: var(--sp-4) var(--sp-5); background: var(--color-surface); border: 1px solid var(--color-line); border-top: 3px solid var(--color-primary-dark); align-self: end; }
.brands h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--sp-3); }
.brands ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.brands li { padding: 6px 12px; border: 1px solid var(--color-line); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); color: var(--color-primary-dark); background: var(--color-bg); }
@media (min-width: 900px) { .cat-head { grid-template-columns: 1fr minmax(260px, 340px); gap: var(--sp-7); align-items: end; } }

/* ---------- Nosotros ---------- */
.about { background: var(--color-primary-dark); color: var(--color-on-dark); }
.about h2 { color: var(--color-on-dark); font-size: var(--fs-h2); }
.about .eyebrow { color: var(--color-on-dark-muted); }
.about-grid { display: grid; gap: var(--sp-6); }
.about-text { display: grid; gap: var(--sp-4); align-content: start; color: var(--color-on-dark-muted); font-size: var(--fs-lg); }
.about-points { list-style: none; display: grid; gap: 1px; margin-top: var(--sp-3); background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .18); }
.about-points li { display: grid; gap: 2px; padding: var(--sp-3) var(--sp-4); background: var(--color-primary-dark); }
.about-points strong { font-family: var(--font-display); font-weight: 700; color: var(--color-on-dark); font-size: var(--fs-lg); }
.about-points span { font-size: var(--fs-sm); }
.about-media { margin: 0; padding: var(--sp-3); border: 2px solid rgba(255, 255, 255, .7); outline: 1px solid rgba(255, 255, 255, .3); outline-offset: 5px; align-self: center; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Contactos uno al lado del otro, en la misma línea */
.people { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-7); }
.people li { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-4); border: 1px solid rgba(255, 255, 255, .3); transition: border-color .3s, background-color .3s; }
.people li:hover { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .04); }
.people-name { font-family: var(--font-display); font-weight: 700; color: var(--color-on-dark); font-size: var(--fs-h3); line-height: 1.2; }
.people a { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--color-on-dark); text-decoration: none; font-variant-numeric: tabular-nums; min-height: 32px; }
.people a svg { width: 18px; height: 18px; flex: none; }
.people-tel { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--color-on-dark); font-variant-numeric: tabular-nums; min-height: 32px; }
.people-tel svg { width: 18px; height: 18px; flex: none; }
.people-wa { color: var(--color-wa) !important; font-weight: 600; }
.people a:hover { text-decoration: underline; }
@media (min-width: 700px) { .people li { grid-template-columns: 1fr auto auto; align-items: center; gap: var(--sp-5); padding: var(--sp-5); } }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.3fr 1fr; gap: var(--sp-8); align-items: center; } }
@media (max-width: 420px) { .people li { padding: var(--sp-3); } .people-name { font-size: var(--fs-base); } .people a { font-size: var(--fs-sm); } }

/* ---------- Encabezado de trabajos ---------- */
.works-head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.works-head .section-head { margin-bottom: 0; }
.quote-title { font-style: italic; font-weight: 500; letter-spacing: -0.01em; font-size: var(--fs-h2); }
.btn--ig { justify-self: start; }
@media (min-width: 900px) { .works-head { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Carrusel de trabajos ----------
   Todas las fotos comparten la misma altura (--slide-h); el ancho sale de la proporción de cada una.
   Se desplaza solo, de forma continua; se pausa al pasar el mouse, al tocar o con el foco. */
.carousel { position: relative; --slide-h: 300px; }
.carousel-track {
  display: flex; gap: var(--sp-3); list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  padding-inline: var(--gutter-l) var(--gutter-r);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -3px; }
.slide { flex: none; }
.slide-fig { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); width: min-content; }
.slide-media { height: var(--slide-h); max-width: calc(100vw - 32px); overflow: hidden; background: var(--color-bg); }
.slide-media img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .6s ease; }
.slide:hover .slide-media img { transform: scale(1.03); }
.slide-fig figcaption { font-size: var(--fs-xs); color: var(--color-muted); letter-spacing: .08em; text-transform: uppercase; }
.slide-fig figcaption strong { display: block; color: var(--color-ink); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); letter-spacing: 0; text-transform: none; line-height: 1.3; margin-bottom: 2px; }
/* Flechas a los costados de la foto, a media altura */
.carousel-btn {
  position: absolute; top: calc(var(--slide-h) / 2); transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark); border-radius: var(--radius); cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 26, 38, .2); transition: background-color .2s, color .2s;
}
.carousel-btn--prev { left: max(8px, calc((100vw - var(--max)) / 2 + 8px)); }
.carousel-btn--next { right: max(8px, calc((100vw - var(--max)) / 2 + 8px)); }
.carousel-btn:hover { background: var(--color-primary-dark); color: var(--color-on-dark); }
.carousel-btn svg { width: 20px; height: 20px; }
@media (min-width: 700px) { .carousel { --slide-h: 380px; } }
@media (min-width: 1100px) { .carousel { --slide-h: 440px; } }

/* ---------- Proceso ----------
   Cada paso tiene una franja animada del mismo ancho que su texto. */
.steps { list-style: none; display: grid; gap: var(--sp-6); }
.step { display: grid; gap: var(--sp-3); align-content: start; }
.step h3 { font-size: var(--fs-h3); }
.step p { color: var(--color-muted); }
.step-band {
  position: relative; height: 88px; overflow: hidden;
  background: var(--color-surface); border: 2px solid var(--color-primary-dark);
  outline: 1px solid var(--color-primary-dark); outline-offset: 3px; margin: 4px;
}
.band-num { position: absolute; left: 10px; top: 6px; font: 700 var(--fs-xs) var(--font-display); letter-spacing: .2em; color: var(--color-primary); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }

/* 1 · Chat: dos mensajes que entran y alguien escribiendo */
.chat-msg { position: absolute; height: 14px; border-radius: 8px; opacity: 0; }
.chat-msg--a { left: 16px; top: 30px; width: 48%; background: var(--color-bg); border: 1px solid var(--color-line); animation: chat-in 6s ease infinite; }
.chat-msg--b { right: 16px; top: 52px; width: 38%; background: #D7F5E1; animation: chat-in 6s ease infinite 1.2s; }
.chat-typing { position: absolute; left: 16px; bottom: 8px; display: flex; gap: 4px; opacity: 0; animation: chat-typing 6s ease infinite 2.6s; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); animation: dot 1s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-in { 0% { opacity: 0; transform: translateY(8px); } 10%, 80% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes chat-typing { 0%, 100% { opacity: 0; } 10%, 50% { opacity: 1; } 60% { opacity: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* 2 · Piedras: un marco recorre cuatro muestras */
.band-stones { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 10px; }
.band-stones img { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--color-line); }
.stone-pick { position: absolute; left: 50%; top: calc(50% + 5px); width: 52px; height: 52px; margin: -26px 0 0 -26px; border: 2px solid var(--color-primary); animation: pick 8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes pick {
  0%, 18% { transform: translateX(-78px); }
  25%, 43% { transform: translateX(-26px); }
  50%, 68% { transform: translateX(26px); }
  75%, 93% { transform: translateX(78px); }
  100% { transform: translateX(-78px); }
}

/* 3 · Presupuesto: las líneas se completan y aparece el visto */
.quote-doc { position: absolute; left: 50%; top: 14px; width: 64px; height: 62px; margin-left: -46px; border: 2px solid var(--color-primary-dark); background: var(--color-surface); display: grid; align-content: center; gap: 7px; padding: 0 9px; }
.quote-doc i { display: block; height: 3px; background: var(--color-primary); transform-origin: left; transform: scaleX(0); animation: line-fill 5s ease infinite; }
.quote-doc i:nth-child(2) { animation-delay: .4s; }
.quote-doc i:nth-child(3) { width: 60%; animation-delay: .8s; }
.quote-check { position: absolute; left: 50%; top: 30px; margin-left: 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--color-wa); opacity: 0; transform: scale(.6); animation: check-pop 5s ease infinite 1.4s; }
.quote-check::after { content: ""; position: absolute; left: 10px; top: 6px; width: 7px; height: 13px; border: solid var(--color-wa-ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
@keyframes line-fill { 0% { transform: scaleX(0); } 20%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes check-pop { 0% { opacity: 0; transform: scale(.6); } 10%, 60% { opacity: 1; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(.6); } }

/* 4 · Corte: el disco recorre la placa y deja la línea de corte */
.cut-slab { position: absolute; left: 16px; right: 16px; top: 28px; bottom: 14px; background: linear-gradient(115deg, #E9EBEF 0%, #F7F7F8 35%, #DADDE3 36%, #F2F3F5 60%, #E4E6EA 100%); border: 1px solid var(--color-line); }
.cut-line { position: absolute; left: 16px; right: 16px; top: 50%; margin-top: 7px; height: 2px; background: var(--color-primary-dark); transform-origin: left; transform: scaleX(0); animation: cut 5s linear infinite; }
.cut-disc { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin: -3px 0 0 -11px; border-radius: 50%; border: 3px dashed var(--color-primary); background: var(--color-surface); animation: disc-move 5s linear infinite, spin .6s linear infinite; }
@keyframes cut { 0% { transform: scaleX(0); } 70%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes disc-move { 0% { left: 16px; } 70% { left: calc(100% - 16px); } 90% { left: calc(100% - 16px); opacity: 1; } 100% { left: calc(100% - 16px); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }

/* Las animaciones de los pasos solo corren cuando están a la vista */
.step-band * { animation-play-state: paused; }
.steps.is-visible .step-band * { animation-play-state: running; }

/* ---------- Aparición suave al bajar (solo si hay JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Footer con formulario ---------- */
.site-footer { background: var(--color-primary-dark); color: var(--color-on-dark-muted); }
.footer-grid { display: grid; gap: var(--sp-7); padding-block: var(--sp-8) var(--sp-7); }
.site-footer h2 { color: var(--color-on-dark); font-size: var(--fs-h2); }
.site-footer h3 { color: var(--color-on-dark); font-size: var(--fs-base); letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.site-footer a { color: var(--color-on-dark); }
.site-footer .btn--light { color: var(--color-primary-dark); }
.footer-info { display: grid; gap: var(--sp-6); align-content: start; min-width: 0; }
.footer-logo img { width: 220px; }
.contact-list { list-style: none; display: grid; gap: var(--sp-3); }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-3); align-items: center; }
.contact-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); color: var(--color-on-dark); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list strong { color: var(--color-on-dark); font-weight: 600; }
.hours-card { padding: var(--sp-4); border: 1px solid rgba(255, 255, 255, .3); border-top: 3px solid var(--color-on-dark-muted); background: rgba(255, 255, 255, .04); }
.hours-days { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-weight: 500; color: var(--color-on-dark); margin-bottom: var(--sp-3); }
.hours-days svg { width: 20px; height: 20px; flex: none; }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin: 0; font-variant-numeric: tabular-nums; }
.hours div { padding: var(--sp-2) var(--sp-3); background: rgba(255, 255, 255, .08); }
.hours dt { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-on-dark-muted); }
.hours dd { margin: 0; font-weight: 600; color: var(--color-on-dark); }

/* Mapa con fachada: no se conecta con Google hasta que la persona lo pide */
.map-card { border: 1px solid rgba(255, 255, 255, .25); }
.map-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.map-body { display: grid; gap: var(--sp-3); padding: var(--sp-4); }
.map-body p { font-size: var(--fs-xs); }
.map-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.map-actions .btn { min-height: 44px; padding: 8px 14px; font-size: var(--fs-sm); }
.map-actions .btn--ghost { color: var(--color-on-dark); border-color: rgba(255, 255, 255, .7); }
.map-actions .btn--ghost:hover { background: var(--color-surface); color: var(--color-primary-dark); }

/* Formulario */
.form-card { background: var(--color-surface); color: var(--color-ink); padding: var(--sp-5); border-top: 4px solid var(--color-wa); min-width: 0; }
.form-card h2 { color: var(--color-primary-dark); }
.site-footer .form-card a { color: var(--color-primary); }
.form-card > p { color: var(--color-muted); margin-top: var(--sp-2); margin-bottom: var(--sp-5); }
.form-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); color: var(--color-ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--color-muted); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--color-ink);
  background: var(--color-surface); border: 1px solid #8A93A5; border-radius: var(--radius);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.field .hint { font-size: var(--fs-xs); color: var(--color-muted); }
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.choice-group { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-2); min-width: 0; }
.legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--color-ink); }
.choices { display: grid; gap: var(--sp-2); }
@media (min-width: 420px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: grid; gap: 2px; padding: 10px 12px; min-height: 48px; border: 1px solid #8A93A5; cursor: pointer; font-weight: 400; }
.choice label strong { font-weight: 600; }
.choice label span { font-size: var(--fs-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.choice input:checked + label { border: 2px solid var(--color-primary); background: #EEF2FA; padding: 9px 11px; }
.choice input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: var(--sp-2); align-items: start; font-size: var(--fs-sm); color: var(--color-muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-primary); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--fs-sm); min-height: 1.5em; }
.form-status.is-error { color: var(--color-error); font-weight: 600; }
.form-status.is-ok { color: #13603A; font-weight: 600; }
.form-status a { color: inherit; }
.form-noscript { padding: var(--sp-3); background: var(--color-bg); font-size: var(--fs-sm); }

@media (min-width: 960px) { .footer-grid { grid-template-columns: 1fr 1.15fr; gap: var(--sp-8); align-items: start; } }

.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); }
.footer-legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-5); font-size: var(--fs-xs); }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 70;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; justify-items: end; gap: var(--sp-2);
}
.wa-bubble {
  position: relative; max-width: 220px; padding: 10px 34px 10px 14px;
  background: var(--color-surface); color: var(--color-ink); border: 1px solid var(--color-line);
  box-shadow: 0 8px 24px rgba(20, 26, 38, .18); font-size: var(--fs-sm); line-height: 1.35;
}
.wa-bubble strong { display: block; font-family: var(--font-display); font-weight: 500; color: var(--color-primary-dark); }
.wa-bubble::after { content: ""; position: absolute; right: 22px; bottom: -7px; width: 12px; height: 12px; background: var(--color-surface); border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); transform: rotate(45deg); }
.wa-bubble-close { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: var(--color-muted); cursor: pointer; font-size: 18px; line-height: 1; }
.wa-btn {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--color-wa); color: var(--color-wa-ink); box-shadow: 0 8px 20px rgba(10, 46, 24, .35);
  transition: transform .2s;
}
.wa-btn:hover { transform: scale(1.06); }
.wa-btn svg { width: 32px; height: 32px; }
.wa-panel {
  width: min(300px, calc(100vw - 32px)); background: var(--color-surface); color: var(--color-ink);
  border: 1px solid var(--color-line); border-top: 4px solid var(--color-wa); box-shadow: 0 12px 32px rgba(20, 26, 38, .25);
  padding: var(--sp-4); display: grid; gap: var(--sp-3);
}
.wa-panel-title { font-family: var(--font-display); font-weight: 500; color: var(--color-primary-dark); }
.wa-panel ul { list-style: none; display: grid; gap: var(--sp-2); }
.wa-panel a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-2); padding: 10px 12px; border: 1px solid var(--color-line); text-decoration: none; color: var(--color-ink); }
.wa-panel a:hover { border-color: var(--color-wa); background: #F2FBF5; }
.wa-panel a span { font-size: var(--fs-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.wa-panel a svg { width: 18px; height: 18px; color: var(--color-primary); }
.wa-panel small { font-size: 11px; color: var(--color-muted); }
@media (max-width: 380px) { .wa-bubble { max-width: 190px; } }

/* El botón flotante se oculta cuando el pie de página está a la vista, así no tapa la firma ni el formulario */
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
.wa-float { transition: opacity .25s, transform .25s, visibility .25s; }

/* ---------- Páginas internas (privacidad, 404) ---------- */
.page-simple { padding-block: var(--sp-8); }
.page-simple .prose { max-width: 720px; display: grid; gap: var(--sp-4); }
.page-simple h1 { font-size: var(--fs-h2); }
.page-simple h2 { font-size: var(--fs-h3); margin-top: var(--sp-4); }
.page-simple ul { padding-left: 1.25em; display: grid; gap: var(--sp-2); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .carousel-track { scroll-behavior: auto; }
  .hero-slide { transition: none; transform: none; }
  .step-band * { animation: none !important; }
  .chat-msg, .chat-typing, .quote-check { opacity: 1; transform: none; }
  .quote-doc i, .cut-line { transform: none; }
  .stone-pick { transform: translateX(-26px); }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Firma Tereré Estudio (obligatoria, no modificar)
   ========================================================================== */
.firma-te { background: #161415; padding: 14px 16px; text-align: center; }
.firma-te a { display: inline-flex; align-items: center; gap: 10px; color: #F3E9DA; text-decoration: none; font: 500 14px/1 system-ui, sans-serif; }
.firma-te img { height: 28px; width: auto; opacity: 0.9; }
.firma-te a:hover img, .firma-te a:focus-visible img { opacity: 1; }
.firma-te a:focus-visible { outline: 2px solid #9FBD2B; outline-offset: 4px; }
@media (max-width: 600px) { .firma-te img { height: 24px; } }
