/* =============================================================
   Carpintería DYM · styles.css
   Blanco y negro, editorial. Títulos en Cormorant Garamond (como el cartel del local), textos en Manrope.
   ============================================================= */
:root {
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-3: #262626;
  --paper: #ffffff;
  --paper-2: #f5f4f1;
  --paper-3: #ecebe7;
  --line: #e2e0dc;
  --line-dark: #2c2c2c;
  --muted: #5f5f5f;
  --muted-dark: #a5a5a5;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .footer :focus-visible { outline-color: #fff; }
::selection { background: var(--ink); color: #fff; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 0 1.7em; font-size: 1rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); box-shadow: 0 10px 28px -12px rgba(0,0,0,.55); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-3); }
.dark .btn-line { border-color: #fff; color: #fff; }
.dark .btn-line:hover { background: #fff; color: var(--ink); }
.btn:disabled { opacity: .55; cursor: wait; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.92); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-oval { width: 62px; height: 40px; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 700 1.28rem/1 var(--serif); letter-spacing: .02em; }
.brand-text small { font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.nav-links { position: relative; display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 10px 12px; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-ink { position: absolute; left: 0; bottom: 4px; height: 1.5px; background: var(--ink); opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s; pointer-events: none; }
.nav-cta { flex: none; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px; display: flex; flex-direction: column;
  box-shadow: 0 30px 40px -30px rgba(0,0,0,.25);
}
.drawer a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 1.45rem/1.2 var(--serif); }
.drawer .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(28px, 6vw, 72px)) 0 clamp(48px, 7vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow .line { width: 44px; height: 1.5px; background: var(--ink); }
.hero h1 {
  margin: 22px 0 22px;
  font: 600 clamp(2.9rem, 6.6vw, 5.9rem)/.96 var(--serif);
  letter-spacing: -.015em;
}
.hero h1 em, .section-head h2 em, .taller-copy h2 em, .footer-claim em { font-style: italic; font-weight: 500; }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .06em; height: .07em; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1s .6s var(--ease); }
.hero h1.is-visible em::after { transform: scaleX(1); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: var(--muted); max-width: 33em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.hero-proof { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, auto); gap: 20px clamp(20px, 3vw, 44px); justify-content: start; }
.hero-proof li { display: flex; flex-direction: column; gap: 2px; }
.hero-proof strong { font: 700 2rem/1 var(--serif); display: flex; align-items: center; gap: 8px; }
.hero-proof small { font-size: .82rem; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars svg { width: 15px; height: 15px; }
.stars--lg svg { width: 24px; height: 24px; }

.hero-media { position: relative; }
.hero-photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); box-shadow: 0 50px 80px -50px rgba(0,0,0,.55); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.8s var(--ease); }
.hero-media.is-visible .hero-photo img { transform: scale(1); }
.hero-tag {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: 36px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px 18px; border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.4);
}
.hero-tag .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px rgba(0,0,0,.08); }
.hero-tag strong { display: block; font-size: .92rem; }
.hero-tag small { display: block; font-size: .75rem; color: var(--muted); }
.seal { position: absolute; right: clamp(-26px, -2vw, -10px); top: clamp(-26px, -2vw, -10px); width: 128px; height: 128px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { font: 700 13.2px var(--sans); letter-spacing: 3.1px; fill: #fff; }
.seal span { font: 700 1.5rem/1 var(--serif); letter-spacing: .08em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cinta ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { font: italic 500 1.55rem/1 var(--serif); white-space: nowrap; }
.ticker i { width: 7px; height: 7px; background: #fff; transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section.dark { background: var(--ink); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--row { max-width: none; }
.section-head--row > div { max-width: 760px; }
.section-head--row .filters { margin-top: 30px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.dark .kicker { color: var(--muted-dark); }
.section-head h2, .taller-copy h2 { font: 600 clamp(2.2rem, 4.6vw, 3.9rem)/1.02 var(--serif); letter-spacing: -.01em; }
.section-head > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 1.06rem; }
.section-head--center > p:not(.kicker) { margin-left: auto; margin-right: auto; max-width: 40em; }
.dark .section-head > p:not(.kicker) { color: var(--muted-dark); }

/* ---------- Aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.service { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink); color: #fff; aspect-ratio: 4 / 5; isolation: isolate; }
.service figure { margin: 0; position: absolute; inset: 0; z-index: -1; }
.service figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.82) 100%); }
.service img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.service-body { position: absolute; inset: auto 0 0; padding: clamp(20px, 2.4vw, 30px); }
.service .num { display: inline-block; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.5); font: italic 500 1.05rem/1 var(--serif); opacity: .9; }
.service h3 { font: 600 clamp(1.7rem, 2.4vw, 2.1rem)/1.05 var(--serif); margin-bottom: 10px; }
.service p { font-size: .93rem; color: rgba(255,255,255,.82); max-width: 30em; }
.link-ia { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); padding: 0 0 3px; font-size: .86rem; font-weight: 600; cursor: pointer; color: #fff; }
.link-ia svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-ia:hover svg { transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) {
  .service img { filter: grayscale(1) contrast(1.05); }
  .service:hover img { filter: none; transform: scale(1.05); }
  .service p, .link-ia { transition: opacity .5s var(--ease), transform .5s var(--ease); }
}

/* ---------- Trabajos ---------- */
.works { background: var(--paper-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: .86rem; font-weight: 600; cursor: pointer; transition: all .25s var(--ease); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.tile { position: relative; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); cursor: zoom-in; animation: tileIn .6s var(--ease) both; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile::after { content: "+"; position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; opacity: 0; transform: scale(.6); transition: all .35s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }
.gallery[data-limit] .tile.is-extra { display: none; }
@keyframes tileIn { from { opacity: 0; transform: translateY(14px); } }
.works-more { margin-top: 32px; text-align: center; color: var(--muted); }
.works-more a { color: var(--ink); font-weight: 600; }
.gallery-more { display: flex; justify-content: center; margin-top: 28px; }

/* Visor */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,8,.94); display: grid; place-items: center; padding: 64px 72px; }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-height: calc(100vh - 170px); width: auto; border-radius: 10px; }
.lightbox figcaption { color: #cfcfcf; font-size: .9rem; text-align: center; }
.lb-x, .lb-nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-x svg, .lb-nav svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-x { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Taller ---------- */
.taller-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.taller-media { position: relative; padding-bottom: 70px; }
.taller-photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
.taller-photo img { width: 100%; height: 100%; object-fit: cover; }
.taller-photo--small { position: absolute; right: -24px; bottom: 0; width: 56%; aspect-ratio: 3 / 2; border: 6px solid var(--ink); }
.year { font: 700 clamp(5rem, 13vw, 10.5rem)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.4); letter-spacing: -.02em; margin: 6px 0 clamp(36px, 4vw, 56px); }
.taller-copy > p:not(.kicker):not(.year) { color: var(--muted-dark); font-size: 1.06rem; margin-top: 20px; max-width: 36em; }
.values { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.values li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.values span { font: italic 500 1.05rem var(--serif); color: var(--muted-dark); padding-top: 2px; }
.values strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.values p { font-size: .9rem; color: var(--muted-dark); }
.taller-quote { margin: 36px 0 0; padding: 26px 0 0 26px; border-left: 1.5px solid #fff; }
.taller-quote p { font: italic 500 clamp(1.3rem, 2vw, 1.6rem)/1.3 var(--serif); }
.taller-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .82rem; color: var(--muted-dark); }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 34px; right: 12%; height: 1px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); opacity: .35; }
.steps li { position: relative; }
.step-n { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); font: 600 1.9rem/1 var(--serif); margin-bottom: 24px; position: relative; transition: background .35s var(--ease), color .35s var(--ease); }
.steps li:hover .step-n { background: var(--ink); color: #fff; }
.steps h3 { font: 600 1.6rem/1.1 var(--serif); margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ---------- Diseñador con IA ---------- */
.designer-section { background: var(--paper-2); }
.designer { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 60px 100px -60px rgba(0,0,0,.35); border: 1px solid var(--line); }
.plan { position: relative; background: var(--ink); color: #fff; min-height: 560px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.plan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px; }
.plan-head { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; font: 700 .7rem/1 var(--sans); letter-spacing: .18em; color: rgba(255,255,255,.6); }
.plan-draw { position: relative; width: min(82%, 420px); height: auto; overflow: visible; }
.plan-draw g { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plan-draw g > * { stroke-dasharray: 900; stroke-dashoffset: 0; }
.plan-draw g.is-drawing > * { animation: draw 1.6s var(--ease) both; }
.plan-draw .dims { stroke: rgba(255,255,255,.5); stroke-width: 1; }
@keyframes draw { from { stroke-dashoffset: 900; } }
.plan-dim { position: absolute; bottom: 92px; left: 0; right: 0; text-align: center; font: italic 500 1rem var(--serif); color: rgba(255,255,255,.7); }
.plan-photo { position: absolute; inset: 64px 28px 92px; width: calc(100% - 56px); height: calc(100% - 156px); object-fit: cover; border-radius: 12px; opacity: .55; filter: grayscale(1) contrast(1.1); mix-blend-mode: screen; }
.plan-photo:not([hidden]) ~ .plan-dim { display: none; }
.plan-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #fff; box-shadow: 0 0 22px 6px rgba(255,255,255,.45); opacity: 0; }
.plan.is-scanning .plan-scan { opacity: 1; animation: scan 2.2s ease-in-out infinite alternate; }
.plan.is-scanning .plan-draw g:not([hidden]) > * { animation: pulse 1.4s ease-in-out infinite alternate; }
@keyframes scan { from { top: 8%; } to { top: 90%; } }
@keyframes pulse { to { stroke-opacity: .35; } }
.plan.is-done .plan-draw g { stroke: #fff; }
.plan-status { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; font-size: .88rem; display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plan-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.designer-side { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.dz-progress { height: 3px; background: var(--paper-3); border-radius: 3px; overflow: hidden; }
.dz-progress i { display: block; height: 100%; width: 25%; background: var(--ink); transition: width .5s var(--ease); }
.dz-count { margin: 12px 0 18px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dz-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.dz-form legend { font: 600 clamp(1.6rem, 2.4vw, 2.05rem)/1.1 var(--serif); margin-bottom: 20px; padding: 0; }
.dz-form legend small { display: block; font: 500 .85rem var(--sans); color: var(--muted); margin-top: 6px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts--list { grid-template-columns: 1fr; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; font-size: .92rem; font-weight: 600; line-height: 1.25; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.opt span svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sw { width: 28px; height: 28px; border-radius: 8px; flex: none; border: 1px solid rgba(0,0,0,.15); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.sw-blanco { background: #fbfbfa; }
.sw-madera { background: repeating-linear-gradient(100deg, #b98a5e 0 3px, #a87a50 3px 5px, #c39669 5px 9px); }
.sw-combinado { background: linear-gradient(135deg, #fbfbfa 50%, #b98a5e 50%); }
.sw-cemento { background: radial-gradient(circle at 30% 40%, #b9b6b0 0 2px, transparent 3px), radial-gradient(circle at 70% 70%, #9c9993 0 2px, transparent 3px), #aaa79f; }
.sw-negro { background: #1b1b1b; }
.sw-q { background: #fff; color: var(--ink); }
.opt input:checked + span .sw { border-color: rgba(255,255,255,.6); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span, .field label { font-size: .85rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border-color .2s; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.upload { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed #bdbab4; border-radius: 14px; cursor: pointer; font-size: .9rem; font-weight: 600; transition: border-color .2s, background .2s; position: relative; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.upload:hover, .upload.is-drag { border-color: var(--ink); background: var(--paper-2); }
.upload.has-file { border-style: solid; border-color: var(--ink); }
.dz-error { color: #b42318; font-size: .88rem; font-weight: 600; margin-top: 12px; }
.dz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dz-actions .btn:last-child { margin-left: auto; }
.dz-result .dz-actions .btn:last-child { margin-left: 0; }

.dz-result { animation: stepIn .5s var(--ease); }
.dz-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dz-result h3 { font: 600 clamp(1.8rem, 2.8vw, 2.4rem)/1.05 var(--serif); margin: 10px 0 16px; }
.dz-seen { background: var(--paper-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .9rem; }
.dz-seen strong { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.dz-idea { color: var(--ink-3); }
.dz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.dz-cols h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dz-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.dz-list li { padding: 6px 0 6px 18px; position: relative; border-bottom: 1px dashed var(--line); }
.dz-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 1.5px; background: var(--ink); }
.dz-finishes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.dz-finishes li { display: flex; align-items: center; gap: 10px; }
.dz-finishes .chip-sw { display: inline-flex; flex: none; width: 52px; }
.dz-finishes .chip-sw i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); margin-right: -6px; }
.dz-tip { margin-top: 18px; font-size: .9rem; padding: 12px 14px; border-left: 2px solid var(--ink); background: var(--paper-2); border-radius: 0 10px 10px 0; }
.dz-note { margin-top: 14px; font-size: .78rem; color: var(--muted); }

/* ---------- Opiniones ---------- */
.reviews-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.rating-big { font: 600 clamp(6rem, 14vw, 10rem)/.85 var(--serif); letter-spacing: -.03em; }
.rating .stars { margin: 30px 0 8px; }
.rating-sub { color: var(--muted); margin-bottom: 22px; }
.rating-sub strong { color: var(--ink); }
.quotes { position: relative; min-height: 330px; display: flex; flex-direction: column; }
.quote { margin: 0; position: absolute; inset: 0 0 72px; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; display: flex; flex-direction: column; justify-content: center; }
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote::before { content: "“"; font: 700 6rem/0.6 var(--serif); height: .45em; display: block; }
.quote p { font: italic 500 clamp(1.5rem, 2.7vw, 2.25rem)/1.25 var(--serif); }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 1.2rem var(--serif); flex: none; }
.quote footer strong { display: block; font-size: .95rem; }
.quote footer small { color: var(--muted); font-size: .8rem; }
.quote-nav { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.quote-nav button:hover { border-color: var(--ink); }
.quote-nav svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote-dots { display: flex; gap: 8px; }
.quote-dots button { width: 8px; height: 8px; border: 0; padding: 0; border-radius: 4px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.quote-dots button[aria-current="true"] { width: 28px; background: var(--ink); }
.chips-marquee { margin-top: clamp(48px, 7vw, 88px); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.chips-track { display: flex; gap: 48px; width: max-content; animation: marquee 46s linear infinite reverse; }
.chips-track span { font: italic 500 1.35rem var(--serif); white-space: nowrap; color: var(--muted); }

/* ---------- Preguntas ---------- */
.faq-section { background: var(--paper-2); }
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.faq-grid .section-head .btn { margin-top: 26px; }
.faq details { border-bottom: 1px solid #d9d6d0; }
.faq details:first-child { border-top: 1px solid #d9d6d0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 clamp(1.25rem, 1.8vw, 1.45rem)/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact .section-head { margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); }
.contact-form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 22px; padding: clamp(22px, 3vw, 36px); }
.contact-form .field label { color: #fff; }
.contact-form .field small { color: var(--muted-dark); }
.contact-form .field input, .contact-form .field textarea, .contact-form .field select { background: var(--ink); border-color: var(--line-dark); color: #fff; }
.contact-form .field input::placeholder, .contact-form .field textarea::placeholder { color: #7d7d7d; }
.contact-form .field input:focus, .contact-form .field textarea:focus, .contact-form .field select:focus { border-color: #fff; }
.contact-form .field.has-error input { border-color: #ff8a80; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-error { color: #ff8a80; font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.form-note { margin-top: 12px; font-size: .8rem; color: var(--muted-dark); text-align: center; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.info-list svg { width: 26px; height: 26px; flex: none; color: #fff; }
.info-list small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.info-list a { font-size: 1.08rem; font-weight: 600; text-decoration: none; word-break: break-word; }
.info-list a:hover { text-decoration: underline; }
.hours { margin-top: 26px; }
.hours-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.hours-title svg { width: 22px; height: 22px; }
.open-badge { margin-left: auto; font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-dark); }
.open-badge.is-open { background: #fff; color: var(--ink); }
.open-badge.is-closed { color: var(--muted-dark); }
.hours dl { margin: 0; }
.hours dl div { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; font-size: .94rem; color: var(--muted-dark); }
.hours dt, .hours dd { margin: 0; }
.hours dl div.is-today { background: rgba(255,255,255,.08); color: #fff; font-weight: 700; }
.hours-note { margin-top: 8px; font-size: .8rem; color: var(--muted-dark); padding: 0 10px; }
.map { margin-top: clamp(32px, 4vw, 48px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line-dark); height: 340px; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 0 0 36px; }
.footer .wrap { border-top: 1px solid var(--line-dark); padding-top: clamp(48px, 6vw, 80px); }
.footer-top { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; margin-bottom: 48px; }
.footer-logo svg { width: 200px; height: auto; color: #fff; }
.footer-claim { font: 600 clamp(2rem, 4.4vw, 3.6rem)/1.02 var(--serif); max-width: 14em; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 32px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.footer-title { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 10px; font-weight: 700; }
.footer-grid p:not(.footer-title) { font-size: .93rem; line-height: 1.8; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-legal { margin-top: 24px; font-size: .76rem; color: #8a8a8a; max-width: 70em; }

/* ---------- WhatsApp flotante ---------- */
.wsp-float { position: fixed; right: 24px; bottom: 96px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); transition: transform .25s var(--ease); }
.wsp-float:hover { transform: translateY(-3px); }
.wsp-float svg { width: 26px; height: 26px; }

/* ---------- Nogal · chat ---------- */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-toggle { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: var(--ink); color: #fff; cursor: pointer; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); font-weight: 700; font-size: .92rem; transition: transform .25s var(--ease); }
.chat-toggle:hover { transform: translateY(-2px); }
.chat-toggle svg { width: 22px; height: 22px; }
.chat-ico-open { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: rotate(90deg) scale(.85); } }
.chat-ico-close { display: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat.is-open .chat-ico-open { display: none; }
.chat.is-open .chat-ico-close { display: block; }
.chat-teaser { position: relative; max-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; padding: 14px 34px 14px 16px; font-size: .88rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); cursor: pointer; animation: stepIn .4s var(--ease); }
.chat-teaser-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.chat-panel {
  position: absolute; right: 0; bottom: 72px;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 130px));
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  transform-origin: bottom right; transform: translateY(10px) scale(.96); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.chat.is-open .chat-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: #fff; }
.chat-avatar { width: 46px; height: 30px; color: #fff; --logo-ink: var(--ink); }
.chat-avatar svg { width: 100%; height: 100%; }
.chat-title { flex: 1; line-height: 1.2; }
.chat-title strong { font: 700 1.3rem var(--serif); display: block; }
.chat-title small { font-size: .74rem; color: var(--muted-dark); display: flex; align-items: center; gap: 6px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
.chat-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; cursor: pointer; display: grid; place-items: center; }
.chat-x svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; animation: stepIn .3s var(--ease); }
.msg p + p { margin-top: 6px; }
.msg ul { margin: 6px 0; padding-left: 18px; }
.msg a { font-weight: 700; }
.msg--bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg--user { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg--typing { display: flex; gap: 4px; padding: 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.wa-link { text-decoration: underline; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--paper-2); }
.chat-suggest:empty { display: none; }
.chat-suggest button { border: 1px solid var(--ink); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; text-align: left; transition: all .2s; }
.chat-suggest button:hover { background: var(--ink); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; height: 46px; font: inherit; font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--ink); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-form button svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-form button:disabled { opacity: .5; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-cta { margin-left: auto; }
  .burger { margin-left: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .taller-grid, .reviews-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .designer { grid-template-columns: 1fr; }
  .plan { min-height: 360px; }
  .plan-draw { width: min(70%, 340px); }
  .faq-grid .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .taller-media { max-width: 560px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .brand-oval { width: 52px; height: 34px; }
  .brand-text small { display: none; }
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-ctas .btn { width: 100%; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-proof strong { font-size: 1.55rem; }
  .hero-proof .stars svg { width: 11px; height: 11px; }
  .hero-proof small { font-size: .74rem; line-height: 1.3; }
  .hero-tag { left: 12px; bottom: 12px; padding: 10px 14px; }
  .seal { width: 96px; height: 96px; right: 10px; top: -18px; }
  .seal text { font-size: 12.6px; letter-spacing: 2.6px; }
  .seal span { font-size: 1.15rem; }
  .ticker span { font-size: 1.25rem; }
  .services { grid-template-columns: 1fr; }
  .service { aspect-ratio: 4 / 4.4; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .filters { overflow-x: auto; flex-wrap: nowrap; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { white-space: nowrap; }
  .lightbox { padding: 64px 12px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .taller-photo--small { right: -8px; width: 62%; }
  .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; }
  .step-n { width: 56px; height: 56px; font-size: 1.6rem; margin: 0; grid-row: span 2; }
  .opts { grid-template-columns: 1fr; }
  .opt span { min-height: 52px; }
  .dz-cols { grid-template-columns: 1fr; }
  .dz-actions .btn { flex: 1 1 auto; }
  .dz-actions .btn:last-child { margin-left: 0; }
  .plan { min-height: 300px; }
  .plan-dim { bottom: 74px; }
  .plan-status { left: 14px; right: 14px; bottom: 14px; }
  .quotes { min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo svg { width: 160px; }
  .map { height: 280px; }
  .chat { right: 16px; bottom: 16px; }
  .chat-toggle { width: 56px; height: 56px; padding: 0; justify-content: center; position: relative; }
  /* En el celular el botón queda redondo, con una etiqueta «IA» */
  .chat-toggle-label { position: absolute; top: -6px; right: -4px; font-size: 0; background: #fff; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 2px 6px; line-height: 1.2; }
  .chat-toggle-label::after { content: "IA"; font-size: .62rem; letter-spacing: .04em; }
  .chat.is-open .chat-toggle-label { display: none; }
  .wsp-float { right: 20px; bottom: 86px; width: 48px; height: 48px; }
  html.chat-open .wsp-float { display: none; }
  .chat-panel { bottom: 66px; height: min(600px, calc(100dvh - 100px)); }
  .chat-teaser { max-width: calc(100vw - 100px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
