/* ==========================================================================
   Proyectos Ondozábal — Home
   Estructura y ritmo: plantilla Framer "Forma Studio"
   Componentes y tipografía editorial: Stitch "Atelier Woodcraft & Living"
   Identidad (logo, rojo de marca, fotos, textos): web actual de Ondozábal
   ========================================================================== */

:root {
  /* Paleta Ondozábal: rojo de la "Á" del logo + neutros cálidos de su web.
     (Se mantienen los nombres de variable de la versión anterior para no tocar cada regla.) */
  --olive: #94191a;        /* rojo de marca → acción principal */
  --olive-deep: #741314;
  --olive-ink: #94191a;
  --olive-tint: #f3d6d2;
  --oak: #a3312f;          /* acento: cursivas, puntos, numeración */
  --oak-deep: #741314;
  --oak-tint: #f6dedb;
  --accent-light: #e6aaa2; /* acento sobre fondo oscuro */
  --brass: #c89b3c;
  --ink: #312f2f;
  --ink-soft: #5b5757;
  --linen: #faf7f7;
  --porcelain: #ffffff;
  --chalk: #f3eeed;
  --clay: #e3dcdc;
  --night: #1c1a1a;
  --night-2: #282525;
  --night-line: rgba(250, 247, 247, 0.12);
  --night-soft: rgba(250, 247, 247, 0.62);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --brand: "Jost", "Plus Jakarta Sans", sans-serif;

  --shadow-sm: 0 2px 6px -1px rgba(78, 59, 42, 0.04), 0 1px 3px -1px rgba(78, 59, 42, 0.02);
  --shadow-md: 0 12px 24px -4px rgba(61, 46, 32, 0.07), 0 4px 8px -2px rgba(61, 46, 32, 0.03);
  --shadow-lg: 0 24px 48px -8px rgba(43, 34, 24, 0.12), 0 8px 16px -4px rgba(43, 34, 24, 0.04);

  --pad: clamp(20px, 4vw, 48px);
  --max: 1360px;
  --r-card: 24px;
  --r-ctrl: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--oak-tint); color: #3d0a0b; }
.material-symbols-outlined { font-size: 20px; line-height: 1; vertical-align: middle; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--oak);
}
.on-dark .eyebrow { color: var(--night-soft); }
.h-display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.03em; margin: 0;
}
.h-section {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.025em; margin: 0;
}
.h-section em, .h-display em { font-style: italic; color: var(--oak); font-weight: 400; }
.on-dark .h-section em { color: var(--accent-light); }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 46ch; margin: 0; }
.on-dark .lead { color: var(--night-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  padding: 15px 26px; border-radius: var(--r-ctrl);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-framer), box-shadow 0.3s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-light { background: var(--linen); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border: 1.5px solid currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-oak { border: 1.5px solid var(--oak); color: var(--ink); }
.btn-oak:hover { background: var(--chalk); border-color: var(--oak-deep); }
.btn .material-symbols-outlined { font-size: 18px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
}

/* ==========================================================================
   CABECERA
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  color: #fff;
  transition: background 0.5s var(--ease-framer), color 0.5s, transform 0.6s var(--ease-framer), box-shadow 0.5s;
}
.header__bar {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  transition: height 0.5s var(--ease-framer);
}
.header.is-scrolled .header__bar { height: 72px; }
.header.is-solid {
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--clay);
}
.header.is-hidden { transform: translateY(-100%); }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.brand img { height: 38px; width: 38px; object-fit: cover; object-position: left center; border-radius: 9px; }
.brand sup { font-family: var(--sans); font-size: 10px; margin-left: 1px; }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; font-size: 14px; font-weight: 500; padding: 8px 12px; opacity: 0.85;
  transition: opacity 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-framer);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.header__contact { text-align: right; font-size: 13px; line-height: 1.45; opacity: 0.85; }
.header__cta { padding: 11px 18px; }
.header:not(.is-solid) .header__cta { background: rgba(255,255,255,0.14); backdrop-filter: blur(8px); }
.header:not(.is-solid) .header__cta:hover { background: var(--olive); }

.burger {
  width: 44px; height: 44px; display: none; place-items: center; position: relative; z-index: 2;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease-framer), top 0.5s var(--ease-framer);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Menú a pantalla completa — se abre en círculo desde la hamburguesa (como Framer) */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--night); color: var(--linen);
  clip-path: circle(0 at calc(100% - var(--pad) - 22px) 42px);
  transition: clip-path 0.9s var(--ease-framer);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad) 40px;
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - var(--pad) - 22px) 42px); visibility: visible; }
.menu-open .header { color: var(--linen); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(40px, 9vw, 72px); line-height: 1.1; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s var(--ease-framer), transform 0.6s var(--ease-framer), color 0.3s;
}
.menu__links a small { font-family: var(--sans); font-size: 12px; color: var(--oak); letter-spacing: 0.08em; }
.menu__links a:hover { color: var(--accent-light); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: 0.25s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: 0.3s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: 0.35s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: 0.4s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: 0.45s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: 0.5s; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--night-soft); font-size: 14px; }

/* ==========================================================================
   1. HERO — imagen a sangre + marca gigante (Framer) con copy de Stitch
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #1a1815;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.4) saturate(0.95);
  transform-origin: 50% 40%;
  animation: heroIn 2.4s var(--ease-framer) both;
}
@keyframes heroIn { from { transform: scale(1.18); filter: brightness(0.2); } to { transform: scale(1); filter: brightness(0.4) saturate(0.95); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.35) 0%, rgba(20,18,15,0) 35%, rgba(20,18,15,0.55) 100%);
}
.hero__content {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  padding-bottom: 28px;
}
.hero__copy { max-width: 470px; display: flex; flex-direction: column; gap: 22px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero__pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--olive-tint); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero__lead { font-size: 18px; line-height: 1.55; margin: 0; color: rgba(255,255,255,0.9); }
.hero__lead em { font-family: var(--serif); font-style: italic; color: var(--accent-light); font-size: 1.08em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge-free {
  position: absolute; top: -10px; right: 12px; background: var(--brass); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px;
}
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: rgba(255,255,255,0.8); }
.stars { display: inline-flex; color: var(--brass); }
.stars .material-symbols-outlined { font-size: 16px; font-variation-settings: "FILL" 1; }
.hero__trust .sep { width: 1px; height: 14px; background: rgba(255,255,255,0.3); }
.hero__card {
  display: flex; gap: 12px; align-items: center; padding: 14px 18px 14px 14px;
  background: rgba(250,248,245,0.94); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px); max-width: 320px;
}
.hero__card-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--olive-tint); display: grid; place-items: center; color: var(--olive); flex-shrink: 0; }
.hero__card b { display: block; font-size: 14px; }
.hero__card span { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.hero__card span i { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }

.hero__mark {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--pad);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 12.4vw, 190px); line-height: 0.86; letter-spacing: -0.045em;
  white-space: nowrap; margin-bottom: -0.1em;
}
.hero__mark em { font-weight: 400; color: var(--accent-light); }
.hero__mark sup { font-family: var(--sans); font-size: 0.22em; vertical-align: top; position: relative; top: 0.25em; margin-left: 0.04em; }
.hero__mark .line { display: block; overflow: hidden; padding-bottom: 0.12em; }
.hero__mark .line > span { display: inline-block; transform: translateY(105%); animation: markIn 1.4s var(--ease-framer) 0.55s forwards; }
@keyframes markIn { to { transform: none; } }

/* ==========================================================================
   2. SOBRE NOSOTROS + contadores
   ========================================================================== */
.about { padding: clamp(96px, 12vw, 176px) 0 clamp(72px, 9vw, 128px); }
.about__grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; }
.about__text {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1.14; letter-spacing: -0.02em; margin: 0;
}
.about__text em { font-style: italic; color: var(--oak); font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 104px); }
.stat { border-top: 1px solid var(--clay); padding-top: 20px; }
.stat__num { font-family: var(--serif); font-size: clamp(48px, 6.4vw, 96px); letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; }
.stat__num .roll-static:last-child { color: var(--oak); }
.stat__label { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* ==========================================================================
   3. OBRAS SELECCIONADAS (rejilla escalonada Framer)
   ========================================================================== */
.work { padding: 0 0 clamp(96px, 12vw, 160px); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 88px); flex-wrap: wrap; }
.work__head > div { display: flex; flex-direction: column; gap: 18px; }
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 32px); row-gap: clamp(56px, 8vw, 120px); }
.proj { display: flex; flex-direction: column; gap: 14px; }
.proj__img { position: relative; overflow: hidden; border-radius: 20px; background: var(--chalk); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-framer); }
.proj:hover .proj__img img { transform: scale(1.045); }
.proj__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(250,248,245,0.92); backdrop-filter: blur(8px);
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.proj__meta { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.proj__meta b { font-weight: 600; }
.proj__meta span { color: var(--ink-soft); }
.proj:nth-child(1) { grid-column: 1 / span 5; }
.proj:nth-child(1) .proj__img { aspect-ratio: 4 / 5.2; }
.proj:nth-child(2) { grid-column: 7 / span 6; margin-top: 22%; }
.proj:nth-child(2) .proj__img { aspect-ratio: 4 / 3; }
.proj:nth-child(3) { grid-column: 2 / span 10; }
.proj:nth-child(3) .proj__img { aspect-ratio: 16 / 8; }
.proj:nth-child(4) { grid-column: 1 / span 6; }
.proj:nth-child(4) .proj__img { aspect-ratio: 4 / 3; }
.proj:nth-child(5) { grid-column: 8 / span 5; margin-top: -12%; }
.proj:nth-child(5) .proj__img { aspect-ratio: 4 / 5; }
.proj:nth-child(6) { grid-column: 3 / span 8; }
.proj:nth-child(6) .proj__img { aspect-ratio: 16 / 9; }
.work__more { display: flex; justify-content: center; margin-top: clamp(56px, 7vw, 96px); }

.view-cursor {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--olive); color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  scale: 0; transition: scale 0.45s var(--ease-framer);
}
.view-cursor.on { scale: 1; }

/* ==========================================================================
   4. ESPECIALIDADES (oscuro, título sticky + tarjetas que suben)
   ========================================================================== */
.on-dark { background: var(--night); color: var(--linen); }
.services { padding: clamp(96px, 12vw, 160px) 0; }
.services__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.services__intro { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; }
.services__list { display: flex; flex-direction: column; }
.svc {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px);
  padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--night-line);
}
.svc:last-child { border-bottom: 1px solid var(--night-line); }
.svc__body { display: flex; flex-direction: column; gap: 14px; }
.svc__num { font-size: 13px; color: var(--oak); letter-spacing: 0.04em; }
.svc h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
.svc p { margin: 0; color: var(--night-soft); font-size: 15px; }
.svc__tags { font-size: 13px; color: rgba(250,248,245,0.82); margin-top: auto; }
.svc__price {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: var(--night-2); font-size: 13px; color: var(--night-soft);
}
.svc__price b { color: var(--linen); font-size: 15px; }
.svc__img { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.4; position: relative; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-framer); }
.svc:hover .svc__img img { transform: scale(1.05); }
.svc__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--accent-light); }
.svc__link .material-symbols-outlined { font-size: 18px; transition: transform 0.4s var(--ease-framer); }
.svc__link:hover .material-symbols-outlined { transform: translateX(4px); }

/* ==========================================================================
   5. PROCESO (oscuro, rejilla con dibujos de línea animados)
   ========================================================================== */
.process { padding: 0 0 clamp(96px, 12vw, 160px); }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.process__head > div { display: flex; flex-direction: column; gap: 18px; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--night-line); border-radius: 22px; overflow: hidden; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 420px; border-right: 1px solid var(--night-line); position: relative; transition: background 0.5s; }
.step:last-child { border-right: 0; }
.step:hover { background: var(--night-2); }
.step__num { font-size: 13px; color: var(--oak); }
.step__art { flex: 1; display: grid; place-items: center; padding: 16px 0; }
.step__art svg { width: 100%; max-width: 180px; height: auto; stroke: rgba(250,248,245,0.55); fill: none; stroke-width: 1.2; }
.step__art svg * { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--ease-out-expo); transition-delay: calc(var(--d, 0s) + 0.3s); }
.step.is-in .step__art svg * { stroke-dashoffset: 0; }
.step:hover .step__art svg { stroke: var(--accent-light); }
.step h4 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--night-soft); font-size: 14.5px; }
.step__foot { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--olive-tint); }
.step__foot .material-symbols-outlined { font-size: 16px; }

/* ==========================================================================
   6. ANTES / DESPUÉS
   ========================================================================== */
.ba-sec { padding: clamp(96px, 12vw, 160px) 0; }
.ba-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; margin-top: 56px; }
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-md); user-select: none; touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before::after { content: ""; position: absolute; inset: 0; background: rgba(27,28,28,0.15); }
.ba__label {
  position: absolute; top: 16px; z-index: 3; padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.ba__label--before { left: 16px; background: rgba(43,43,43,0.82); color: var(--linen); }
.ba__label--after { right: 16px; background: rgba(250,248,245,0.92); color: var(--olive-ink); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--oak); z-index: 4; pointer-events: none;
}
.ba__handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--oak); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow-lg);
}
.ba input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0;
}
.ba-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.spec { display: flex; flex-direction: column; gap: 14px; }
.spec h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; margin: 4px 0 8px; }
.spec__row { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: var(--porcelain); border: 1px solid var(--clay); }
.spec__row .material-symbols-outlined { color: var(--olive); }
.spec__row b { display: block; font-size: 14px; }
.spec__row span { font-size: 13.5px; color: var(--ink-soft); }

/* ==========================================================================
   7. TESTIMONIOS
   ========================================================================== */
.testi { padding: 0 0 clamp(96px, 12vw, 160px); }
.testi__head { margin-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.testi__box { border-top: 1px solid var(--clay); padding-top: 36px; }
.testi__slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease-framer), visibility 0.6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.person { display: flex; gap: 14px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.person b { display: block; font-size: 15px; }
.person span { font-size: 13px; color: var(--ink-soft); }
.rating { text-align: right; font-size: 13px; color: var(--ink-soft); }
.rating strong { font-size: 18px; color: var(--ink); margin-right: 6px; }
.quote {
  font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.8vw, 56px); line-height: 1.14; letter-spacing: -0.02em;
  margin: 36px 0 0; max-width: 22ch;
}
.testi__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }
.testi__count { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.testi__btns { display: flex; gap: 8px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--clay); display: grid; place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.round-btn:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }

/* ==========================================================================
   OPINIONES — reseñas de Google
   ========================================================================== */
.reviews { padding: clamp(96px, 12vw, 160px) 0; background: var(--chalk); }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.reviews__title { display: flex; flex-direction: column; gap: 18px; }
.reviews__summary { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.reviews__score { display: flex; align-items: center; gap: 14px; }
.reviews__score strong { font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1; }
.reviews__score div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-soft); }
.reviews__summary .btn-ghost:hover, .reviews__more .btn-ghost:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.reviews__grid { columns: 3; column-gap: 20px; }
.review {
  break-inside: avoid; margin-bottom: 20px; padding: 28px;
  background: var(--porcelain); border: 1px solid var(--clay); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.4s var(--ease-framer);
  display: flex; flex-direction: column; gap: 14px;
}
.review:hover { box-shadow: var(--shadow-md); }
.review__top { display: flex; gap: 14px; align-items: center; }
.review .avatar { background: var(--oak-tint); color: var(--oak-deep); flex-shrink: 0; }
.review__who b { display: block; font-size: 15px; }
.review__who span { font-size: 13px; color: var(--ink-soft); }
.review__stars { color: var(--brass); letter-spacing: 2px; font-size: 16px; line-height: 1; }
.review p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.reviews__more { display: none; justify-content: center; margin-top: 12px; }

@media (max-width: 1080px) { .reviews__grid { columns: 2; } }
@media (max-width: 760px) {
  .reviews__grid { columns: 1; }
  .reviews__grid:not(.is-open) .review:nth-child(n+5) { display: none; }
  .reviews__more { display: flex; }
}

/* ==========================================================================
   8. FAQ
   ========================================================================== */
.faq { padding: clamp(96px, 12vw, 160px) 0; background: var(--chalk); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.acc-item { border-bottom: 1px solid var(--clay); }
.acc-item:first-child { border-top: 1px solid var(--clay); }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3;
}
.acc-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--porcelain); position: relative; flex-shrink: 0; transition: background 0.4s, transform 0.5s var(--ease-framer); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: background 0.4s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-icon { transform: rotate(45deg); background: var(--olive); }
.acc-item.is-open .acc-icon::before, .acc-item.is-open .acc-icon::after { background: #fff; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-framer); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { margin: 0; padding: 0 56px 26px 0; color: var(--ink-soft); opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.6s var(--ease-framer); }
.acc-item.is-open .acc-panel p { opacity: 1; transform: none; transition-delay: 0.1s; }

/* ==========================================================================
   9. CTA FINAL — imagen a sangre
   ========================================================================== */
.cta { position: relative; min-height: 88svh; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; background: #1a1815; }
.cta__media { position: absolute; inset: -12% 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42); }
.cta__inner { position: relative; z-index: 2; padding: 120px var(--pad); display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 900px; }
.cta__pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; }
.cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.cta h2 em { font-weight: 400; color: var(--accent-light); }
.cta p { margin: 0; font-size: 17px; color: rgba(255,255,255,0.82); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.cta__checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; font-size: 13px; color: rgba(255,255,255,0.8); }
.cta__checks span { display: inline-flex; align-items: center; gap: 6px; }
.cta__checks .material-symbols-outlined { font-size: 16px; color: var(--olive-tint); }

/* ==========================================================================
   10. FOOTER (Framer: newsletter + columnas + marca gigante)
   ========================================================================== */
.footer { padding: clamp(72px, 9vw, 112px) 0 0; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--night-line); }
.footer h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-soft); margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer ul a { opacity: 0.85; transition: opacity 0.3s, color 0.3s; }
.footer ul a:hover { opacity: 1; color: var(--accent-light); }
.news h4 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 18px; letter-spacing: -0.01em; }
.news form { display: flex; gap: 8px; background: var(--night-2); border-radius: 14px; padding: 6px; max-width: 420px; }
.news input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--linen); font: inherit; padding: 0 12px; outline: none; }
.news input::placeholder { color: rgba(250,248,245,0.45); }
.news button { padding: 12px 18px; }
.news small { display: block; margin-top: 12px; font-size: 12px; color: var(--night-soft); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; font-size: 13px; color: var(--night-soft); }
.footer__bottom nav { display: flex; gap: 18px; }
.footer__mark {
  font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 12.4vw, 190px); line-height: 0.86; letter-spacing: -0.045em;
  white-space: nowrap; text-align: center; color: rgba(250,248,245,0.94); margin-bottom: -0.08em; padding-top: 12px;
}
.footer__mark em { font-weight: 400; color: var(--accent-light); }
.footer__mark sup { font-family: var(--sans); font-size: 0.2em; vertical-align: top; position: relative; top: 0.3em; }

/* WhatsApp flotante (Stitch) */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px 13px 16px; border-radius: 999px;
  background: var(--olive); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 24px -4px rgba(61,46,32,0.25);
  transform: translateY(120px); transition: transform 0.8s var(--ease-framer), background 0.3s;
}
.is-loaded .wa { transform: none; transition-delay: 1.6s; }
.wa:hover { background: var(--olive-deep); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .nav, .header__contact { display: none; }
  .burger { display: grid; }
  .header__bar { grid-template-columns: 1fr auto; }
  .services__grid, .faq__grid { grid-template-columns: 1fr; }
  .services__intro, .faq__intro { position: static; }
  .process__grid { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--night-line); }
  .ba-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .header__cta { padding: 11px; }
  .header__cta [data-roll-text] { display: none; }
  .brand { font-size: 19px; }
  .header__right { gap: 8px; }
  .hero__content { grid-template-columns: 1fr; padding-bottom: 20px; }
  .hero__card { display: none; }
  .hero__lead { font-size: 16px; }
  .about__grid { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .work__grid { grid-template-columns: 1fr; }
  .proj:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .proj:nth-child(n) .proj__img { aspect-ratio: 4 / 3.6; }
  .svc { grid-template-columns: 1fr; }
  .svc__img { order: -1; }
  .process__grid { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--night-line); min-height: 0; }
  .step:last-child { border-bottom: 0; }
  .step__art svg { max-width: 130px; }
  .acc-panel p { padding-right: 0; }
  .footer__top { grid-template-columns: 1fr; }
  .wa span.wa-long { display: none; }
}

/* Parallax interno: la imagen se escala un poco para que el desplazamiento no deje bordes */
.svc__img img[data-parallax], .cta__media img[data-parallax] { scale: 1.12; }
.svc:hover .svc__img img[data-parallax] { transform: none; scale: 1.17; transition: scale 1.1s var(--ease-framer); }

/* ==========================================================================
   IDENTIDAD ONDOZÁBAL
   ========================================================================== */
.on-dark, .menu { --oak: var(--accent-light); }

/* Marca: símbolo + logotipo en texto (réplica del logo, nítido y adaptable a fondo claro/oscuro) */
.brand { gap: 12px; font-family: var(--brand); }
.brand__icon {
  width: 34px; height: 34px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url(img/simbolo-ondozabal.svg) center / contain no-repeat;
          mask: url(img/simbolo-ondozabal.svg) center / contain no-repeat;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 19px; font-weight: 400; letter-spacing: 0.32em; margin-right: -0.32em; }
.brand__name b, .wordmark b { font-weight: inherit; color: var(--olive); }
.header:not(.is-solid) .brand__name b, .on-dark .wordmark b, .menu .brand__name b { color: var(--accent-light); }
.brand__sub { font-family: var(--serif); font-style: italic; font-size: 11px; letter-spacing: 0.04em; opacity: 0.75; margin-top: 4px; }

/* Palabra de marca gigante (hero y footer) con la tipografía del logo */
.wordmark {
  font-family: var(--brand); font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.08em; white-space: nowrap;
}
.hero__mark.wordmark { font-size: clamp(40px, 12.6vw, 196px); line-height: 0.9; letter-spacing: 0.06em; margin-bottom: 0; }
.hero__mark .line { padding-bottom: 0.02em; }
.hero__sub {
  position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; padding: 10px var(--pad) 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.footer__mark.wordmark { font-size: clamp(40px, 12.6vw, 196px); line-height: 0.95; letter-spacing: 0.06em; padding-bottom: 0.08em; margin-bottom: 0; }

/* Estadística con texto en lugar de número */
.stat__num--text { font-family: var(--serif); }

/* ==========================================================================
   TIENDA FÍSICA
   ========================================================================== */
.store { padding: clamp(96px, 12vw, 160px) 0; }
.store__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.store__photos { display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: auto auto; gap: 16px; }
.store__photos .ph { border-radius: 20px; overflow: hidden; background: var(--chalk); }
.store__photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.store__photos .ph--tall { grid-row: span 2; aspect-ratio: 3 / 5; }
.store__photos .ph--a { aspect-ratio: 4 / 3.3; }
.store__photos .ph--b { aspect-ratio: 4 / 3.3; }
.store__info { display: flex; flex-direction: column; gap: 22px; }
.store__card {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  padding: 16px; border-radius: 18px; background: var(--porcelain); border: 1px solid var(--clay);
}
.store__card img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }
.store__card b { display: block; font-size: 15px; }
.store__card span { font-size: 14px; color: var(--ink-soft); }
.store__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact { padding: clamp(96px, 12vw, 160px) 0; }
.contact__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; max-width: 560px; }

/* Filosofía (sustituye a testimonios hasta tener reseñas reales) */
.quote-by { margin-top: 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--night-line); display: grid; place-items: center;
  transition: background 0.3s, border-color 0.3s;
}
.footer__social a:hover { background: var(--olive); border-color: var(--olive); }
.footer__social svg { width: 18px; height: 18px; }

@media (max-width: 1080px) {
  .store__grid { grid-template-columns: 1fr; }
  }
@media (max-width: 760px) {
  .brand__name { font-size: 16px; letter-spacing: 0.24em; }
  .brand__sub { display: none; }
  .brand__icon { width: 30px; height: 30px; }
  .hero__sub { letter-spacing: 0.18em; font-size: 10px; }
  .hero__sub span:last-child { display: none; }
    }
.hero .wordmark b { color: var(--accent-light); }
.nav a { white-space: nowrap; }
.hero__mark .line { padding-top: 0.16em; }
.footer__mark.wordmark { padding-top: 0.2em; }

/* ==========================================================================
   CONTACTO v2 — formulario + lista de contacto
   ========================================================================== */
html { scroll-behavior: smooth; }
#contacto { scroll-margin-top: 40px; }
.contact__layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__side { position: sticky; top: 110px; }

/* Lista de contacto: filas con línea, icono en círculo y relleno que entra al pasar el ratón */
.c-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--clay); }
.c-list li { border-bottom: 1px solid var(--clay); }
.c-row {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 18px 8px; overflow: hidden; isolation: isolate;
}
.c-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--chalk);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-framer);
}
.c-row:hover::before { transform: scaleY(1); }
.c-row__ico {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--clay); color: var(--olive);
  display: grid; place-items: center; transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.c-row__ico svg { width: 20px; height: 20px; }
.c-row:hover .c-row__ico { background: var(--olive); border-color: var(--olive); color: #fff; }
.c-row__txt small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.c-row__txt b { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.01em; }
.c-row__go { font-size: 18px; color: var(--olive); transition: transform 0.5s var(--ease-framer); }
.c-row:hover .c-row__go { transform: rotate(45deg); }

/* Formulario */
.c-form {
  background: var(--porcelain); border: 1px solid var(--clay); border-radius: 28px;
  padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 18px;
}
.c-form__head h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.015em; margin: 0 0 6px; }
.c-form__head p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.c-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--linen);
  border: 1.5px solid var(--clay); border-radius: 12px; padding: 13px 14px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9a9494; }
.field input:focus, .field textarea:focus { border-color: var(--olive); background: #fff; box-shadow: 0 0 0 3px rgba(148, 25, 26, 0.14); }
.was-validated .field :invalid { border-color: #c0392b; }

.c-chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.c-chips legend { font-size: 12.5px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.c-chips label { position: relative; cursor: pointer; }
.c-chips input { position: absolute; opacity: 0; pointer-events: none; }
.c-chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--clay);
  font-size: 13.5px; font-weight: 500; transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.c-chips label:hover span { border-color: var(--oak); }
.c-chips input:checked + span { background: var(--olive); border-color: var(--olive); color: #fff; }
.c-chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(148, 25, 26, 0.22); }

.c-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.c-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--olive); flex-shrink: 0; }
.c-check a { color: var(--olive); text-decoration: underline; }
.was-validated .c-check input:invalid + span { color: #c0392b; }
.c-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.c-form__submit { justify-content: center; width: 100%; padding: 17px 26px; font-size: 15px; }
.c-form__submit:disabled { opacity: 0.6; cursor: progress; }
.c-form__status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--ink-soft); }
.c-form__status.is-ok { color: #2e6b3a; font-weight: 600; }
.c-form__status.is-error { color: #c0392b; }

/* Botón "Contacto" de la cabecera (sustituye al email y teléfono) */
.header__contact-btn { padding: 10px 18px; border-width: 1.5px; }
.header:not(.is-solid) .header__contact-btn { border-color: rgba(255,255,255,0.55); }
.header:not(.is-solid) .header__contact-btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.header.is-solid .header__contact-btn:hover { background: var(--chalk); }

@media (max-width: 1080px) {
  .contact__layout { grid-template-columns: 1fr; }
  .contact__side { position: static; }
}
@media (max-width: 760px) {
  .header__contact-btn { display: none; }
  .c-form__row { grid-template-columns: 1fr; }
  .c-form { border-radius: 22px; }
}
/* El botón flotante se retira mientras el formulario está a la vista */
.is-loaded .wa.wa--away { transform: translateY(140px); transition-delay: 0s; pointer-events: none; }
