/* ==========================================================================
   Hornada — hoja de estilos
   Tokens → base → componentes → secciones → utilidades → responsive
   ========================================================================== */

:root {
  --crema: #f7f1e6;
  --crema-2: #efe6d4;
  --papel: #fffaf2;
  --oscuro: #2b211a;
  --oscuro-2: #362a21;

  --ink: #2b211a;
  --ink-2: rgba(43, 33, 26, .72);
  --ink-3: rgba(43, 33, 26, .5);
  --line: rgba(43, 33, 26, .14);
  --surface: rgba(43, 33, 26, .045);
  --bg: var(--crema);

  --corteza: #b5622b;
  --corteza-2: #d98a45;
  --miel: #e3b04b;
  --verde: #5f7a55;
  --wa: #25d366;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 84px;
  --radius: 10px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .6s;
}

/* Bloques oscuros: redefinimos tinta, líneas y fondo */
.section--dark {
  --ink: #f7f1e6;
  --ink-2: rgba(247, 241, 230, .74);
  --ink-3: rgba(247, 241, 230, .5);
  --line: rgba(247, 241, 230, .14);
  --surface: rgba(247, 241, 230, .06);
  --bg: var(--oscuro);
  background: var(--oscuro);
  color: var(--ink);
}
.section--crema { background: var(--crema-2); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 4px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0 0 1em; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 1000;
  padding: 10px 16px; background: var(--oscuro); color: var(--crema); border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

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

/* Tipografía */
.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--corteza); margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--miel); }
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400; letter-spacing: -.02em; line-height: 1.05;
  margin-bottom: 20px;
}
.h2 em { font-style: italic; font-weight: 300; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.link {
  display: inline-block; font-weight: 600; color: var(--corteza);
  border-bottom: 1px solid transparent; transition: border-color .3s, color .3s;
}
.link:hover { border-bottom-color: currentColor; }
.section--dark .link { color: var(--miel); }

.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--split {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
}
.section__head--split .lead { margin: 0; justify-self: end; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--corteza); color: #fff; box-shadow: 0 10px 30px -12px rgba(181, 98, 43, .6); }
.btn--primary:hover { background: #a2562a; box-shadow: 0 16px 34px -12px rgba(181, 98, 43, .7); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: var(--surface); }
.btn--sm { padding: 11px 20px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn--wa { background: #fff; color: #1a7f44; border-color: rgba(37, 211, 102, .5); }
.btn--wa:hover { background: #ecfbf1; }
.btn--wa svg { width: 20px; height: 20px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Preloader y barra de progreso
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: var(--crema); color: var(--oscuro);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.preloader__loaf { fill: var(--corteza-2); transform-origin: 50% 50%; animation: loaf 1.6s var(--ease) infinite alternate; }
.preloader__cuts { fill: none; stroke: var(--crema); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: cuts 1.6s var(--ease) infinite alternate; }
.preloader__word { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .04em; }
@keyframes loaf { from { transform: scale(.9); } to { transform: scale(1); } }
@keyframes cuts { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--corteza); z-index: 1200; }

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  color: #fff;
  transition: background .4s, color .4s, height .4s, box-shadow .4s;
}
.nav.is-scrolled {
  height: 68px; color: var(--ink);
  background: rgba(247, 241, 230, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .01em; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; font-size: .92rem; font-weight: 500; padding: 6px 0; opacity: .85; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone { font-size: .92rem; font-weight: 600; opacity: .9; }
.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; background: transparent; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 900; background: var(--oscuro); color: var(--crema);
  display: grid; align-content: center; padding: 100px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); padding: 6px 0; transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.menu__links a span { font-family: var(--font-body); font-size: .8rem; color: var(--miel); letter-spacing: .1em; }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: .25s; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; font-size: .95rem; color: rgba(247, 241, 230, .7); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.hero.is-ready .hero__img { transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 20, 12, .82) 0%, rgba(30, 20, 12, .55) 45%, rgba(30, 20, 12, .25) 100%),
              linear-gradient(0deg, rgba(30, 20, 12, .7) 0%, transparent 40%);
}
.hero__grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 48px; align-items: end; }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 26px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.hero__place { opacity: .8; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 400; letter-spacing: -.025em; line-height: 1; max-width: 12ch; }
.hero__title em { font-style: italic; font-weight: 300; color: var(--miel); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 52ch; margin: 26px 0 34px; color: rgba(255, 255, 255, .85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero__cta .btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.estado { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-size: .72rem; letter-spacing: .08em; }
.estado i { width: 8px; height: 8px; border-radius: 50%; background: #9aa; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
.estado.is-open i { background: #4ade80; animation: pulse 2s infinite; }
.estado.is-closed i { background: #f87171; }
.estado--sm { background: var(--surface); border-color: var(--line); color: var(--ink-2); text-transform: uppercase; font-weight: 600; margin-left: 10px; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.hoy {
  background: rgba(247, 241, 230, .96); color: var(--ink); border-radius: var(--radius-lg); padding: 24px 26px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); backdrop-filter: blur(8px);
  justify-self: end; width: min(100%, 380px);
}
.hoy__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.hoy__label { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--corteza); }
.hoy__fecha { font-size: .8rem; color: var(--ink-3); }
.hoy__fecha::first-letter { text-transform: uppercase; }
.hoy__lista li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.hoy__lista li span { font-weight: 500; }
.hoy__lista li small { color: var(--ink-3); font-size: .78rem; white-space: nowrap; }
.hoy__next { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--oscuro); color: var(--crema); transition: transform .3s var(--ease); }
.hoy__next:hover { transform: translateX(4px); }
.hoy__next-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--miel); }
.hoy__next strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Cinta */
.cinta { overflow: hidden; background: var(--corteza); color: var(--crema); padding: 14px 0; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.cinta__track { display: flex; gap: 32px; width: max-content; animation: cinta 40s linear infinite; }
.cinta__track i { font-style: normal; color: var(--miel); }
@keyframes cinta { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Obrador
   -------------------------------------------------------------------------- */
.obrador__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.obrador__text p:not(.eyebrow) { color: var(--ink-2); }
.obrador__text .lead { color: var(--ink); }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.cifra strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; line-height: 1; color: var(--corteza); margin-bottom: 6px; }
.cifra span:last-child { font-size: .84rem; color: var(--ink-3); }
.firma { display: flex; align-items: center; gap: 14px; }
.firma img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.firma strong { display: block; font-weight: 600; }
.firma span { font-size: .84rem; color: var(--ink-3); }

.obrador__media { position: relative; height: clamp(420px, 50vw, 620px); }
.obrador__foto { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 40px 70px -40px rgba(43, 33, 26, .5); }
.obrador__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.obrador__foto:hover img { transform: scale(1.05); }
.obrador__foto--a { left: 0; top: 0; width: 66%; height: 84%; }
.obrador__foto--b { right: 0; bottom: 0; width: 46%; height: 50%; border: 6px solid var(--crema); }
.sello { position: absolute; left: 52%; top: 4%; width: 120px; height: 120px; display: grid; place-items: center; color: var(--corteza); }
.sello svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; font-size: 11.2px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; fill: currentColor; }
.sello b { font-size: 1.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.principios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(64px, 8vw, 110px); }
.principio { padding: 28px 24px; background: var(--papel); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .3s var(--ease), box-shadow .3s; }
.principio:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(43, 33, 26, .35); }
.principio svg { width: 30px; height: 30px; fill: none; stroke: var(--corteza); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.principio h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.principio p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* --------------------------------------------------------------------------
   Productos (pestañas)
   -------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tab { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: background .3s, color .3s, border-color .3s; }
.tab:hover { color: var(--ink); border-color: var(--ink-3); }
.tab.is-active { background: var(--miel); border-color: var(--miel); color: var(--oscuro); }

.panel { display: none; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.panel.is-active { display: grid; animation: fadeUp .6s var(--ease); }
.panel__foto { position: sticky; top: calc(var(--nav-h) + 20px); border-radius: var(--radius-lg); overflow: hidden; }
.panel__foto img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.panel__foto figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 10px 14px; border-radius: 10px; background: rgba(43, 33, 26, .8); font-size: .82rem; backdrop-filter: blur(6px); }
.lista li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lista li:first-child { padding-top: 0; }
.lista h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin-bottom: 4px; }
.lista p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.lista p a { color: var(--miel); text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-body); font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.precio { flex: none; font-family: var(--font-display); font-size: 1.25rem; color: var(--miel); white-space: nowrap; }
.productos__nota { margin: 48px 0 0; padding: 18px 22px; border-left: 3px solid var(--miel); background: var(--surface); font-size: .92rem; color: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Hornadas (línea de tiempo)
   -------------------------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: h; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.hornada { position: relative; padding: 36px 24px 0 0; }
.hornada::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--crema); border: 2px solid var(--ink-3); transition: background .3s, border-color .3s, transform .3s; }
.hornada time { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin-bottom: 10px; }
.hornada h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.hornada p { font-size: .88rem; color: var(--ink-2); margin: 0 0 10px; }
.hornada__estado { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); min-height: 1em; }
.hornada.is-past { opacity: .55; }
.hornada.is-past::before { background: var(--ink-3); border-color: var(--ink-3); }
.hornada.is-next::before { background: var(--corteza); border-color: var(--corteza); transform: scale(1.3); box-shadow: 0 0 0 6px rgba(181, 98, 43, .18); }
.hornada.is-next time { color: var(--corteza); }
.hornada.is-next .hornada__estado { color: var(--corteza); }
.hornada.is-now::before { background: var(--verde); border-color: var(--verde); transform: scale(1.3); box-shadow: 0 0 0 6px rgba(95, 122, 85, .2); }
.hornada.is-now .hornada__estado { color: var(--verde); }
.hornadas__aviso { display: flex; gap: 16px; align-items: flex-start; margin-top: 56px; padding: 22px 26px; border-radius: var(--radius-lg); background: var(--papel); border: 1px solid var(--line); }
.hornadas__aviso svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--corteza); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hornadas__aviso p { margin: 0; color: var(--ink-2); }
.hornadas__aviso a { color: var(--corteza); font-weight: 600; }

/* --------------------------------------------------------------------------
   Encargos (configurador)
   -------------------------------------------------------------------------- */
.encargo { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.encargo__form { display: flex; flex-direction: column; gap: 40px; }
.campo legend { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 18px; }
.opciones { display: grid; gap: 12px; }
.opciones--tartas { grid-template-columns: repeat(3, 1fr); }
.opcion { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--papel); border: 2px solid transparent; cursor: pointer; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.opcion:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(43, 33, 26, .4); }
.opcion input { position: absolute; opacity: 0; inset: 0; }
.opcion img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.opcion span { padding: 12px 14px 2px; font-weight: 600; font-size: .95rem; }
.opcion small { padding: 0 14px 14px; font-size: .78rem; color: var(--ink-3); }
.opcion:has(input:checked) { border-color: var(--corteza); }
.opcion:has(input:checked)::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--corteza); color: #fff; font-size: .8rem; font-weight: 700; }
.opcion:has(input:focus-visible) { outline: 2px solid var(--corteza); outline-offset: 3px; }

.opciones--tam { grid-template-columns: repeat(4, 1fr); }
.pill { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border-radius: 14px; background: var(--papel); border: 2px solid transparent; cursor: pointer; text-align: center; transition: border-color .3s, background .3s; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill span { font-weight: 600; }
.pill small { font-size: .78rem; color: var(--ink-3); }
.pill:has(input:checked) { border-color: var(--corteza); background: #fff; }
.pill:has(input:focus-visible) { outline: 2px solid var(--corteza); outline-offset: 3px; }

.opciones--extras { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--papel); border: 2px solid transparent; cursor: pointer; transition: border-color .3s; }
.check input { width: 18px; height: 18px; accent-color: var(--corteza); margin: 0; flex: none; }
.check span { flex: 1; font-weight: 500; font-size: .92rem; }
.check small { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.check:has(input:checked) { border-color: var(--corteza); }

.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input { display: flex; flex-direction: column; gap: 6px; }
.input--full { grid-column: 1 / -1; }
.input > span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.input input, .input select, .input textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--papel); color: var(--ink); font: inherit; transition: border-color .3s, box-shadow .3s; }
.input input:focus, .input select:focus, .input textarea:focus { outline: 0; border-color: var(--corteza); box-shadow: 0 0 0 3px rgba(181, 98, 43, .15); }
.input.is-invalid input, .input.is-invalid select { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.input textarea { resize: vertical; min-height: 90px; }
.campo__nota { margin: 14px 0 0; font-size: .84rem; color: var(--ink-3); }

.resumen { position: sticky; top: calc(var(--nav-h) + 20px); }
.resumen__card { padding: 28px; border-radius: var(--radius-lg); background: var(--oscuro); color: var(--crema); box-shadow: 0 40px 80px -40px rgba(43, 33, 26, .7); }
.resumen__card .eyebrow { color: var(--miel); }
.resumen__card h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 18px; }
.resumen__lista li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(247, 241, 230, .14); font-size: .9rem; }
.resumen__lista span { color: rgba(247, 241, 230, .6); flex: none; }
.resumen__lista strong { font-weight: 500; text-align: right; }
.resumen__total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 22px; padding-top: 16px; border-top: 1px solid rgba(247, 241, 230, .14); }
.resumen__total span { font-size: .84rem; color: rgba(247, 241, 230, .6); }
.resumen__total strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; color: var(--miel); }
.resumen__card .btn + .btn { margin-top: 10px; }
.resumen__nota { margin: 16px 0 0; font-size: .8rem; color: rgba(247, 241, 230, .55); text-align: center; }

.encargo__ok { max-width: 620px; margin: 0 auto; text-align: center; padding: 48px 32px; border-radius: var(--radius-lg); background: var(--papel); border: 1px solid var(--line); animation: fadeUp .6s var(--ease); }
.encargo__ok svg { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--verde); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 18px; }
.encargo__ok h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 12px; }
.encargo__ok p { color: var(--ink-2); }
.encargo__ok-nota { font-size: .86rem; color: var(--ink-3); }
.encargo__ok .btn { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Galería
   -------------------------------------------------------------------------- */
.mosaico { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.mosaico__item { position: relative; overflow: hidden; border-radius: 14px; background: var(--crema-2); }
.mosaico__item--alto { grid-row: span 2; }
.mosaico__item--ancho { grid-column: span 2; }
.mosaico__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .5s; }
.mosaico__item:hover img { transform: scale(1.06); }
.mosaico__item::after { content: "+"; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(247, 241, 230, .9); color: var(--oscuro); font-size: 1.3rem; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.mosaico__item:hover::after { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Opiniones
   -------------------------------------------------------------------------- */
.opiniones__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.nota { display: flex; align-items: center; gap: 16px; margin: 10px 0 20px; }
.nota strong { font-family: var(--font-display); font-size: 3.4rem; font-weight: 400; line-height: 1; color: var(--miel); }
.nota div { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--ink-2); }
.estrellas { color: var(--miel); letter-spacing: .1em; font-size: 1rem; }
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform .7s var(--ease); }
.opinion { flex: 0 0 100%; margin: 0; padding: 36px 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.opinion p { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 300; line-height: 1.35; margin-bottom: 22px; }
.opinion footer { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.opinion footer span { color: var(--ink-3); }
.slider__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.slider__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; transition: background .3s, border-color .3s; }
.slider__nav button:hover { background: var(--surface); border-color: var(--ink-3); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--ink-3); transition: width .3s var(--ease), background .3s; }
.slider__dots button.is-active { width: 26px; border-radius: 4px; background: var(--miel); }

/* --------------------------------------------------------------------------
   Visítanos
   -------------------------------------------------------------------------- */
.visitanos__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 12px; }
.dato h3 { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.dato p { color: var(--ink-2); margin-bottom: 8px; }
.dato p a:hover { color: var(--corteza); }
.dato--horario { grid-column: 1 / -1; }
.horario { width: 100%; border-collapse: collapse; font-size: .95rem; }
.horario th, .horario td { padding: 9px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.horario td { text-align: right; color: var(--ink-2); }
.horario tr.is-today th, .horario tr.is-today td { font-weight: 600; color: var(--corteza); }
.visitanos__mapa { display: grid; gap: 14px; }
.visitanos__mapa iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius-lg); filter: saturate(.85); }
.visitanos__foto { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.visitanos__foto img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.visitanos__foto figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(247, 241, 230, .92); font-size: .8rem; font-weight: 500; }

/* Instagram */
.insta { padding-bottom: clamp(40px, 6vw, 80px); }
.insta__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.insta__head .eyebrow { margin: 0; }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 0 6px; }
.insta__grid a { overflow: hidden; border-radius: 6px; }
.insta__grid img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .8s var(--ease), filter .4s; }
.insta__grid a:hover img { transform: scale(1.06); filter: brightness(1.05); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--oscuro); color: var(--crema); padding: clamp(56px, 7vw, 90px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(247, 241, 230, .14); }
.footer__brand p { margin: 16px 0 20px; max-width: 34ch; color: rgba(247, 241, 230, .7); font-size: .95rem; }
.footer__social { display: flex; gap: 18px; font-size: .86rem; font-weight: 600; }
.footer__social a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer__social a:hover { border-bottom-color: currentColor; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; color: rgba(247, 241, 230, .75); }
.footer__col h4 { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--miel); margin-bottom: 8px; }
.footer__col a:hover { color: var(--crema); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 24px; font-size: .8rem; color: rgba(247, 241, 230, .55); }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover, .footer__credit a:hover { color: var(--crema); }
.footer__credit { margin-left: auto; }
.footer__credit a { text-decoration: underline; text-underline-offset: 3px; }
.totop { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(247, 241, 230, .25); background: transparent; color: var(--crema); transition: background .3s; }
.totop:hover { background: rgba(247, 241, 230, .1); }

/* --------------------------------------------------------------------------
   Lightbox, CTA móvil, toast
   -------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; background: rgba(20, 14, 10, .94); color: var(--crema); padding: 60px 70px; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: 1100px; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; }
.lightbox__figure figcaption { font-size: .9rem; color: rgba(247, 241, 230, .7); }
.lightbox__close, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(247, 241, 230, .25); background: rgba(247, 241, 230, .06); color: inherit; font-size: 1.3rem; transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(247, 241, 230, .16); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__count { position: absolute; left: 20px; top: 32px; font-size: .8rem; letter-spacing: .1em; color: rgba(247, 241, 230, .6); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.mobile-cta { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 800; padding: 16px; border-radius: 999px; background: var(--corteza); color: #fff; text-align: center; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); transform: translateY(120%); transition: transform .5s var(--ease); }
.mobile-cta.is-visible { transform: none; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 1600; transform: translate(-50%, 30px); opacity: 0; padding: 14px 22px; max-width: min(92vw, 480px); border-radius: 12px; background: var(--oscuro); color: var(--crema); font-size: .9rem; text-align: center; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); transition: transform .5s var(--ease), opacity .4s; pointer-events: none; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* --------------------------------------------------------------------------
   Reveals (solo con JS)
   -------------------------------------------------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
html.js [data-reveal][data-delay="1"] { transition-delay: .1s; }
html.js [data-reveal][data-delay="2"] { transition-delay: .2s; }
html.js [data-reveal][data-delay="3"] { transition-delay: .3s; }
html.js [data-reveal][data-delay="4"] { transition-delay: .4s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .principios { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .timeline::before { display: none; }
  .hornada { padding-left: 26px; padding-top: 0; border-left: 2px solid var(--line); }
  .hornada::before { left: -9px; top: 2px; }
  .mosaico { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .opciones--tartas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav__links, .nav__phone, .nav .btn { display: none; }
  .burger { display: block; }
  .hero { padding-bottom: 100px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hoy { justify-self: start; width: 100%; max-width: 440px; }
  .hero__scroll { display: none; }
  .section__head--split { grid-template-columns: 1fr; gap: 12px; }
  .section__head--split .lead { justify-self: start; }
  .obrador__grid { grid-template-columns: 1fr; }
  .obrador__media { order: -1; height: 420px; }
  .panel { grid-template-columns: 1fr; }
  .panel__foto { position: static; }
  .panel__foto img { aspect-ratio: 16 / 9; }
  .encargo { grid-template-columns: 1fr; }
  .resumen { position: static; }
  .opiniones__grid, .visitanos__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-cta { display: block; }
  .footer { padding-bottom: 90px; }
}

@media (max-width: 600px) {
  .cifras { grid-template-columns: 1fr 1fr; }
  .principios { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .mosaico { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mosaico__item--ancho { grid-column: span 2; }
  .opciones--tam { grid-template-columns: repeat(2, 1fr); }
  .campos { grid-template-columns: 1fr; }
  .datos { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__credit { margin-left: 0; }
  .lightbox { padding: 70px 12px; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .opinion { padding: 26px 22px; }
  .sello { display: none; }
}

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