/* ==========================================================================
   ALBADA · Obrador de pastelería — hoja de estilos
   Paleta: crema / marfil / chocolate / café + acento "albaricoque tostado"
   Tipografía: Newsreader (titulares) + Instrument Sans (texto y UI)
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f4ede2;
  --ivory: #fbf8f2;
  --sand: #e6d9c5;
  --line: #d9c9b1;
  --cocoa: #2a1c15;
  --cocoa-2: #3a281e;
  --coffee: #6a4c3b;
  --muted: #7d6656;
  --accent: #a3471f;          /* albaricoque tostado — contraste AA sobre crema */
  --accent-soft: #e9b48f;
  --ok: #3f6b3a;
  --err: #9e2b1e;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--cocoa); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--cocoa); color: var(--ivory); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 350; line-height: 1.08; letter-spacing: -.012em; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 320; letter-spacing: -.022em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 400; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--accent); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--coffee); max-width: 36em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--accent-soft); }

/* ---------- Banda demo ---------- */
.demo-bar {
  background: var(--cocoa); color: #e9dccb; font-size: .78rem; letter-spacing: .02em;
  text-align: center; padding: 8px var(--gutter); line-height: 1.4;
}
.demo-bar strong { color: var(--accent-soft); font-weight: 600; }
@media (max-width: 640px) { .demo-bar .long { display: none; } }
.pending {
  background: rgba(163, 71, 31, .1); color: var(--accent); border-radius: 3px; padding: 0 .3em;
  font-weight: 500; font-size: .92em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.on-dark .pending { background: rgba(233, 180, 143, .14); color: var(--accent-soft); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--cocoa); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 500; font-size: .98rem;
  letter-spacing: .01em; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--accent { --bg: var(--accent); }
.btn--accent:hover { background: #8a3a17; border-color: #8a3a17; }
.btn--dark:hover { background: var(--cocoa-2); }
.btn--ghost { background: transparent; color: var(--cocoa); border-color: rgba(42, 28, 21, .35); }
.btn--ghost:hover { border-color: var(--cocoa); background: rgba(42, 28, 21, .04); }
.on-dark .btn--ghost { color: var(--ivory); border-color: rgba(251, 248, 242, .4); }
.on-dark .btn--ghost:hover { border-color: var(--ivory); background: rgba(251, 248, 242, .06); }
.btn--wa { --bg: #1f5c3a; }
.btn--wa:hover { background: #174a2e; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none;
  color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--accent-soft); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(244, 237, 226, 0); transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(244, 237, 226, .9); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cocoa); }
.brand svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; letter-spacing: -.01em; }
.brand-name small { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; font-size: .95rem; padding: 10px 14px; color: var(--cocoa);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 20px; margin-left: 10px; font-size: .92rem; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; margin-right: -10px;
}
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--cocoa); position: relative; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 1.5px; background: var(--cocoa); transition: transform .3s var(--ease);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 100px var(--gutter) 40px; background: var(--cream);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.8rem); padding: 6px 0; font-weight: 340; }
  .nav a:not(.btn)::after { left: 0; right: auto; width: 40px; bottom: 4px; }
  .nav .btn { margin: 28px 0 0; min-height: 54px; font-size: 1rem; }
  .nav-extra { display: block !important; margin-top: 28px; font-size: .9rem; color: var(--muted); }
  body.menu-open { overflow: hidden; }
  .site-header.menu-is-open { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
}
.nav-extra { display: none; }

/* ---------- Arco (motivo de marca: la boca del horno / el alba) ---------- */
.arch { border-radius: 100vmax 100vmax var(--radius) var(--radius); overflow: hidden; }
.frame { position: relative; overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy .lead { margin-bottom: 36px; }
.hero-media { position: relative; }
.hero-media .frame { aspect-ratio: 4 / 5; max-height: 78vh; margin-left: auto; width: 100%; }
.hero-media .frame img { object-position: 46% 60%; }
.hero-note {
  position: absolute; left: -36px; bottom: 36px; background: var(--ivory); padding: 16px 20px; border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(42, 28, 21, .35); max-width: 300px; font-size: .9rem; line-height: 1.45;
}
.hero-note b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; display: block; margin-bottom: 2px; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open::before { background: #4f8a43; box-shadow: 0 0 0 4px rgba(79, 138, 67, .16); }
.status.is-closed::before { background: #b5654a; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts > div { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 4px; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .frame { aspect-ratio: 5 / 5.2; max-height: 62vh; }
  .hero-note { left: 16px; bottom: 16px; max-width: 220px; padding: 12px 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 16px 0; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--ivory { background: var(--ivory); }
.section--sand { background: var(--sand); }
.on-dark { background: var(--cocoa); color: #efe5d7; }
.on-dark h2, .on-dark h3 { color: var(--ivory); }
.on-dark h2 em, .on-dark h3 em { color: var(--accent-soft); }
.on-dark .lead { color: #cdbba7; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lead { margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* Intro editorial */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.intro-media .frame:first-child { aspect-ratio: 3 / 4.4; }
.intro-media .frame:last-child { aspect-ratio: 3 / 3.6; margin-bottom: -48px; }
.intro-copy p { color: var(--coffee); max-width: 34em; }
.intro-copy h2 { margin-bottom: 28px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--cocoa); margin-top: 28px; }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro-media .frame:last-child { margin-bottom: 0; }
}

/* ---------- Tarjetas de producto ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.products--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; }
.card .frame { aspect-ratio: 4 / 5; border-radius: var(--radius); margin-bottom: 18px; }
.card:hover .frame img, .card:focus-within .frame img { transform: scale(1.04); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--coffee); font-size: .95rem; margin-bottom: 14px; }
.card .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); }
.card .meta a { color: var(--accent); font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card .meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .meta svg { width: 14px; height: 14px; }
.tag {
  position: absolute; top: 12px; left: 12px; background: var(--ivory); color: var(--cocoa); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: 999px;
}
@media (max-width: 1024px) { .products { grid-template-columns: repeat(2, 1fr); } .products--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .products--scroll {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; scroll-padding-inline: var(--gutter);
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none;
  }
  .products--scroll::-webkit-scrollbar { display: none; }
  .products--scroll .card { flex: 0 0 76%; scroll-snap-align: start; }
  .products--3:not(.products--scroll) { grid-template-columns: 1fr; }
}

/* ---------- Índice de categorías ---------- */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid; grid-template-columns: 64px 1fr auto 40px; align-items: center; gap: 16px;
  padding: clamp(18px, 2.4vw, 28px) 0; text-decoration: none; transition: padding .4s var(--ease), color .3s;
}
.index-list .num { font-size: .8rem; color: var(--muted); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.index-list .name { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.7rem); font-weight: 330; line-height: 1.1; }
.index-list .desc { font-size: .92rem; color: var(--muted); text-align: right; max-width: 24em; }
.index-list .arrow { justify-self: end; width: 22px; height: 22px; color: var(--accent); transition: transform .4s var(--ease); }
.index-list .thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .index-list a:hover { padding-left: 14px; color: var(--accent); }
  .index-list a:hover .arrow { transform: translateX(6px); }
}
.index-preview {
  position: fixed; left: 0; top: 0; width: 240px; aspect-ratio: 4 / 5; pointer-events: none; z-index: 40;
  border-radius: 100vmax 100vmax var(--radius) var(--radius); overflow: hidden; opacity: 0;
  transform: translate(-50%, -50%) scale(.9); transition: opacity .3s var(--ease), transform .3s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(42, 28, 21, .5);
}
.index-preview.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .index-list a { grid-template-columns: 64px 1fr 24px; gap: 14px; }
  .index-list .num, .index-list .desc { display: none; }
  .index-list .thumb { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
  .index-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- Elaboración (sección oscura) ---------- */
.craft { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.craft-media { position: relative; }
.craft-media .frame { aspect-ratio: 4 / 5; }
.craft-media .frame--sm { position: absolute; width: 42%; aspect-ratio: 1; right: -24px; bottom: -40px; border: 8px solid var(--cocoa); border-radius: 50%; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 8px 16px; padding: 22px 0; border-top: 1px solid rgba(239, 229, 215, .16); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--accent-soft); line-height: 1.3; }
.steps h3 { font-size: 1.4rem; margin-bottom: 6px; }
.steps p { margin: 0; color: #cdbba7; font-size: .97rem; }
.steps--light li { border-top-color: var(--line); }
.steps--light li::before { color: var(--accent); }
.steps--light p { color: var(--coffee); }
@media (max-width: 860px) {
  .craft { grid-template-columns: 1fr; }
  .craft-media .frame--sm { right: 12px; bottom: -28px; }
}

/* ---------- Galería ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 200px); gap: clamp(10px, 1.4vw, 18px); }
.mosaic figure { margin: 0; border-radius: var(--radius); }
.mosaic .m1 { grid-column: 1 / 6; grid-row: span 3; }
.mosaic .m2 { grid-column: 6 / 10; grid-row: span 2; }
.mosaic .m3 { grid-column: 10 / 13; grid-row: span 2; }
.mosaic .m4 { grid-column: 6 / 9; grid-row: span 2; }
.mosaic .m5 { grid-column: 9 / 13; grid-row: span 2; }
.mosaic .m6 { grid-column: 1 / 6; grid-row: span 1; }
.mosaic figure:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .mosaic .m1 { grid-column: 1 / 3; grid-row: span 1; }
  .mosaic .m2, .mosaic .m3, .mosaic .m4, .mosaic .m5 { grid-column: auto; grid-row: span 1; }
  .mosaic .m6 { display: none; }
}
.caption-note { font-size: .82rem; color: var(--muted); margin-top: 18px; }
.on-dark .caption-note { color: #a8927f; }

/* ---------- Temporada ---------- */
.season { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.season-media { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.season-media .frame { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.season-media .frame:last-child { margin-top: 64px; }
@media (max-width: 860px) { .season { grid-template-columns: 1fr; } .season-copy { order: -1; } }

/* ---------- CTA final ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 6px; overflow: hidden; }
.cta-panel { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.cta-panel h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.cta-panel--dark { background: var(--cocoa); color: #efe5d7; }
.cta-panel--light { background: var(--ivory); }
.cta-panel .btn-row { margin-top: auto; padding-top: 12px; }
.hours { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hours li.is-today { font-weight: 600; color: var(--accent); }
.hours span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .cta-split { grid-template-columns: 1fr; } }

/* ---------- Cabecera de página interior ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero .lead { margin: 0; }
.page-hero--media .wrap { align-items: center; }
.page-hero--media .frame { aspect-ratio: 4 / 3.4; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { margin: 0 8px; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Catálogo ---------- */
.cat-nav {
  position: sticky; top: var(--header-h); z-index: 30; background: rgba(244, 237, 226, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.cat-nav ul { list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: inline-flex; white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-size: .9rem; transition: background .25s, color .25s, border-color .25s;
}
.cat-nav a:hover { border-color: var(--cocoa); }
.cat-nav a.is-active { background: var(--cocoa); border-color: var(--cocoa); color: var(--ivory); }
.cat-section { padding: clamp(56px, 7vw, 96px) 0 0; }
.cat-section:last-of-type { padding-bottom: clamp(72px, 9vw, 120px); }
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.cat-head p { color: var(--coffee); max-width: 32em; margin: 0; }
.cat-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.custom-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.custom-band .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.custom-band .duo .frame { aspect-ratio: 3 / 4.2; }
.custom-band .duo .frame:last-child { margin-top: 48px; }
@media (max-width: 860px) { .custom-band { grid-template-columns: 1fr; } }

.note-box {
  border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; background: var(--ivory); font-size: .95rem; color: var(--coffee);
}
.note-box strong { color: var(--cocoa); }

/* ---------- Nosotros ---------- */
.prose { max-width: 40em; }
.prose p { color: var(--coffee); }
.prose h2 { margin-bottom: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .frame { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { background: var(--ivory); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.monogram {
  width: 88px; height: 104px; border-radius: 100vmax 100vmax 4px 4px; background: var(--sand);
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--coffee); margin-bottom: 10px;
}
.member h3 { font-size: 1.35rem; }
.member p { margin: 0; color: var(--coffee); font-size: .95rem; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

.spec { border-top: 1px solid var(--line); margin: 0; }
.spec > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--serif); font-size: 1.3rem; }
.spec dd { margin: 0; color: var(--coffee); }
@media (max-width: 640px) { .spec > div { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Formularios ---------- */
.order { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.order-aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .order { grid-template-columns: 1fr; } .order-aside { position: static; } }

.form { background: var(--ivory); border-radius: 8px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 1px 0 var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: .88rem; font-weight: 600; color: var(--cocoa); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid #cdbaa0; border-radius: var(--radius);
  background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a4c3b' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163, 71, 31, .15); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field .error { font-size: .84rem; color: var(--err); display: none; }
.field.has-error .error { display: block; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--coffee); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.check.has-error { color: var(--err); }
.legal-mini { font-size: .8rem; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 16px; margin: 4px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.form-status { border-radius: 6px; padding: 16px 18px; font-size: .95rem; margin-top: 20px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #e7efe2; color: #2c4c28; }
.form-status.is-warn { background: #f6e6d8; color: #6b3518; }
.form-status.is-err { background: #f6dfdb; color: #7a2216; }
.hp { position: absolute; left: -9999px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Proceso de encargo */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: p; }
.process li { counter-increment: p; padding: 28px 28px 28px 0; border-top: 1px solid var(--cocoa); position: relative; }
.process li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.process li::before { content: "Paso " counter(p); display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.process h3 { margin-bottom: 10px; font-size: 1.45rem; }
.process p { margin: 0; color: var(--coffee); font-size: .95rem; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 22px 0; border-left: 0; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--accent); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--coffee); max-width: 46em; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { margin: 0; }
.info-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.info-list dt { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 4px; }
.info-list dd { margin: 0; font-size: 1.05rem; }
.info-list dd a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.info-list dd a:hover { color: var(--accent); }
@media (max-width: 560px) { .info-list > div { grid-template-columns: 1fr; gap: 4px; } }

.map {
  position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--sand);
  display: grid; place-items: center; text-align: center;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { padding: 28px; max-width: 420px; display: flex; flex-direction: column; gap: 14px; align-items: center; font-size: .92rem; color: var(--coffee); }
.map-consent svg { width: 34px; height: 34px; color: var(--accent); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a, .socials span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-size: .92rem;
}
.socials a:hover { border-color: var(--cocoa); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--cocoa); color: #cdbba7; padding: clamp(64px, 8vw, 104px) 0 32px; font-size: .94rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(239, 229, 215, .14); }
.foot-top h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ivory); margin-bottom: 18px; }
.foot-top h2 em { color: var(--accent-soft); }
.foot-top h3 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #a8927f; font-weight: 600; margin-bottom: 18px; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .brand { color: var(--ivory); margin-bottom: 22px; }
.site-footer .brand-name small { color: #a8927f; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; font-size: .84rem; color: #a8927f; }
.foot-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 960px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }

/* Barra fija móvil de conversión */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none; gap: 8px;
  padding: 8px; border-radius: 999px; background: rgba(42, 28, 21, .94); backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .4s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta a { flex: 1; min-height: 46px; font-size: .92rem; padding: 0 14px; }
.mobile-cta .btn--ghost { color: var(--ivory); border-color: rgba(251, 248, 242, .3); }
@media (max-width: 760px) { .mobile-cta { display: flex; } .site-footer { padding-bottom: 96px; } }

/* ---------- Páginas legales ---------- */
.legal { max-width: 48em; padding-bottom: clamp(72px, 9vw, 120px); }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 48px 0 16px; }
.legal h3 { font-size: 1.25rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--coffee); }
.legal ul { padding-left: 1.2em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 16px 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px 10px 0; vertical-align: top; }
.legal th { font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
/* Lo que está en la primera pantalla no depende del scroll: entra con una animación al cargar */
.hero .reveal, .page-hero .reveal { opacity: 1; transform: none; animation: rise .9s var(--ease) both; }
.hero .reveal-d1, .page-hero .reveal-d1 { animation-delay: .08s; }
.hero .reveal-d2, .page-hero .reveal-d2 { animation-delay: .16s; }
.hero .reveal-d3, .page-hero .reveal-d3 { animation-delay: .24s; }
.hero .reveal-img img, .page-hero .reveal-img img { transform: none; animation: settle 1.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.frame.reveal-img img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.frame.reveal-img.is-in img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .frame.reveal-img img { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Utilidades */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.demo-bar .short-txt { display: none; }
@media (max-width: 640px) { .demo-bar .short-txt { display: inline; } }
.page-hero .lead.mt-l { margin-top: clamp(20px, 2.4vw, 32px); }
.cat-section { scroll-margin-top: 64px; }
@media (max-width: 960px) { .brand { position: relative; z-index: 60; } }
