/* =========================================================
   Pesto del Tío Mario — styles.css
   Mobile-first · Sin frameworks · Listo para Hostinger
   ========================================================= */

:root {
  /* Paleta */
  --bone: #FAF9F6;
  --sage: #F1F4F0;
  --basil: #2C5E2E;
  --basil-2: #3E7B3E;
  --ink: #1C1E1C;
  --stone: #5C635C;
  --brass: #B59A5B;
  --line: #DCDFD9;          /* filete neutro de 1px */
  --line-strong: #C9CEC6;

  /* Tipografía */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Ritmo */
  --gutter: 1.25rem;
  --section: 4.5rem;
  --max: 1180px;
  --radius: 2px;
  --header-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 2rem; --section: 6.5rem; --header-h: 76px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 2.5rem; --section: 8rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--basil); color: var(--bone); }

:focus-visible { outline: 1px solid var(--basil); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
figure { margin: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--bone); padding: .5rem .9rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display--sm { font-size: clamp(2.3rem, 7vw, 4.2rem); }
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 400; color: var(--basil); }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.h-small {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: .9rem;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); }

.lead { font-size: 1.075rem; color: var(--stone); max-width: 34rem; }
@media (min-width: 720px) { .lead { font-size: 1.15rem; } }

.small { font-size: .875rem; }
.muted { color: var(--stone); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.6rem;
  border: 1px solid var(--basil);
  border-radius: var(--radius);
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  background: transparent; color: var(--basil);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--basil); color: var(--bone); }
.btn-primary:hover { background: var(--basil-2); border-color: var(--basil-2); }
.btn-ghost:hover { background: var(--basil); color: var(--bone); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; color: var(--ink);
  padding-block: .4rem; border-bottom: 1px solid var(--brass);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.link-btn {
  background: none; border: 0; padding: .5rem 0;
  font-size: .85rem; color: var(--stone);
  text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px;
}
.link-btn:hover { color: var(--ink); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 249, 246, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -0.01em;
  margin: 0;
}
.brand-sub {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone);
  margin-top: .3rem;
}

.header-actions { display: flex; align-items: center; gap: .5rem; }

.order-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 40px; padding: 0 .9rem;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.order-btn:hover { border-color: var(--basil); }
.order-count {
  min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem;
  display: inline-grid; place-items: center;
  background: var(--basil); color: var(--bone);
  border-radius: 50%; font-size: .7rem; letter-spacing: 0;
  transition: transform .3s var(--ease);
}
.order-count.bump { transform: scale(1.25); }

.menu-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block; width: 16px; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-5px) rotate(-45deg); }

/* Navegación móvil: panel desplegable */
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: .5rem var(--gutter) 1.5rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav a {
  font-family: var(--serif); font-size: 1.75rem; text-decoration: none;
  padding: .65rem 0; border-bottom: 1px solid var(--line);
}
.nav a[aria-current="page"] { color: var(--basil); font-style: italic; }

@media (min-width: 880px) {
  .menu-btn { display: none; }
  .nav {
    position: static; transform: none; opacity: 1; visibility: visible;
    flex-direction: row; gap: 2.25rem; padding: 0; border: 0; background: none;
  }
  .nav a {
    font-family: var(--sans); font-size: .78rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    padding: .4rem 0; border: 0; position: relative; color: var(--stone);
  }
  .nav a:hover { color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--ink); font-style: normal; }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: var(--brass); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Vistas ---------- */
.view { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.band { background: var(--sage); border-block: 1px solid var(--line); padding-block: var(--section); }

.page-head { padding-top: calc(var(--section) * .7); padding-bottom: calc(var(--section) * .55); }
.page-head .lead { margin-top: 1.25rem; }

/* ---------- Imágenes y placeholders ---------- */
.media {
  position: relative; overflow: hidden;
  background: var(--sage);
  border: 1px solid var(--line);
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 10 / 7; }

/* Respaldo cuando la foto aún no existe: textura de lino + etiqueta */
.media.is-placeholder {
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(44, 94, 46, .045) 11px 12px),
    linear-gradient(180deg, #EEF2EC 0%, #E6ECE3 100%);
}
.media.is-placeholder img { display: none; }
.media.is-placeholder::before {
  /* Silueta de frasco hexagonal en línea fina */
  content: "";
  position: absolute; left: 50%; top: 46%;
  width: 34%; aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 160' fill='none' stroke='%232C5E2E' stroke-width='1' stroke-opacity='.55'%3E%3Crect x='38' y='6' width='44' height='16' rx='1'/%3E%3Cline x1='38' y1='14' x2='82' y2='14'/%3E%3Cpath d='M30 26 H90 L104 46 V140 L90 154 H30 L16 140 V46 Z'/%3E%3Cline x1='30' y1='26' x2='30' y2='154'/%3E%3Cline x1='90' y1='26' x2='90' y2='154'/%3E%3Crect x='36' y='72' width='48' height='40'/%3E%3Cline x1='44' y1='86' x2='76' y2='86' stroke='%23B59A5B'/%3E%3Cline x1='50' y1='96' x2='70' y2='96' stroke='%23B59A5B'/%3E%3C/svg%3E");
}
.media.is-placeholder::after {
  content: attr(data-ph);
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  padding-top: .7rem; border-top: 1px solid rgba(181, 154, 91, .6);
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone);
}
.media--wide.is-placeholder::before { width: 20%; }

.caption {
  display: flex; gap: .9rem; align-items: baseline;
  margin-top: .85rem; font-size: .82rem; color: var(--stone);
}
.caption span {
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
  white-space: nowrap;
}

/* ---------- Inicio: hero ---------- */
.hero {
  display: grid; gap: 2.5rem;
  padding-top: 2.5rem; padding-bottom: var(--section);
}
.hero-text .lead { margin-top: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 2.25rem; }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr .85fr;
    align-items: end; gap: 4rem;
    padding-top: 5rem;
  }
  .hero-text { padding-bottom: 3rem; }
  .hero-media { margin-top: -1rem; }
}
@media (min-width: 1100px) {
  .hero { grid-template-columns: 1.2fr .8fr; gap: 6rem; }
  .hero-media { transform: translateY(2.5rem); }
}

/* ---------- Pilares ---------- */
.pillars {
  display: grid;
  border-top: 1px solid var(--line);
  margin-bottom: var(--section);
}
.pillars li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem;
}
.pillars h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.2; margin-bottom: .4rem; }
.pillars p { grid-column: 2; margin: 0; color: var(--stone); font-size: .95rem; }
.pillar-num { grid-row: span 2; font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.3rem; line-height: 1.3; }

@media (min-width: 820px) {
  .pillars { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .pillars li {
    display: block; padding: 2.5rem 2rem; border-bottom: 0;
  }
  .pillars li:first-child { padding-left: 0; }
  .pillars li + li { border-left: 1px solid var(--line); }
  .pillar-num { display: block; margin-bottom: 1.25rem; }
}

/* ---------- Producto destacado ---------- */
.feature-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.feature-text p { color: var(--stone); max-width: 32rem; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; margin-top: 2rem; }

.specs { margin: 1.75rem 0 0; border-top: 1px solid var(--line-strong); }
.specs > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line-strong);
  font-size: .92rem;
}
.specs dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); padding-top: .2rem; }
.specs dd { margin: 0; color: var(--ink); }
.specs--compact > div { grid-template-columns: 6.5rem 1fr; }

/* ---------- Cita ---------- */
.quote { padding-block: var(--section); }
.quote blockquote {
  margin: 0 auto; max-width: 46rem; text-align: center;
}
.quote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.25; margin-bottom: 1.5rem;
}
.quote footer { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.quote blockquote::before {
  content: ""; display: block; width: 1px; height: 48px; background: var(--brass);
  margin: 0 auto 2rem;
}

/* ---------- Catálogo ---------- */
.catalog {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.product {
  display: grid; gap: 1.5rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.product-media .media { aspect-ratio: 4 / 5; }
.product-index { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.1rem; }
.product-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.05; margin: .3rem 0 .75rem;
}
.product-desc { color: var(--stone); max-width: 30rem; }

.product-block { margin-top: 1.4rem; }
.product-block .h-small { margin-bottom: .55rem; }
.ingredients { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.ingredients li {
  font-size: .82rem; padding: .25rem .7rem;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink);
}
.pairing { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink); margin: 0; }

.sizes {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong); margin: 1.6rem 0 0; padding: 0; min-width: 0;
}
.size {
  position: relative; display: block; cursor: pointer;
}
.size + .size { border-left: 1px solid var(--line-strong); }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .8rem 1rem; transition: background .2s, color .2s;
}
.size b { font-weight: 500; font-size: .92rem; }
.size small { font-size: .78rem; color: var(--stone); }
.size input:checked + span { background: var(--basil); color: var(--bone); }
.size input:checked + span small { color: rgba(250, 249, 246, .78); }
.size input:focus-visible + span { outline: 1px solid var(--basil); outline-offset: 2px; }

.product-buy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.4rem;
}
.price { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; margin-right: auto; }
.price small { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; color: var(--stone); margin-left: .3rem; }
.product-buy .btn { flex: 1 1 auto; }
.wa-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; color: var(--basil); text-decoration: none; border-bottom: 1px solid currentColor;
  padding-bottom: .1rem;
}
.wa-link svg { width: 15px; height: 15px; }

@media (min-width: 760px) {
  .product { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; padding-block: 3.5rem; align-items: start; }
  .product-buy .btn { flex: 0 0 auto; }
  /* Alterna la composición para un ritmo editorial */
  .product:nth-child(even) .product-media { order: 2; }
}
@media (min-width: 1100px) {
  .product { gap: 5rem; }
}

.note {
  margin: 2rem 0 var(--section);
  font-size: .9rem; color: var(--stone); max-width: 40rem;
  padding-left: 1rem; border-left: 1px solid var(--brass);
}

/* ---------- Entregas ---------- */
.delivery-grid { display: grid; gap: 2.5rem; }
.delivery-grid > div:first-child p { color: var(--stone); max-width: 30rem; }
@media (min-width: 860px) { .delivery-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.zones { columns: 2; column-gap: 1.5rem; margin-bottom: 1.5rem; }
.zones li {
  break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif); font-size: 1.2rem;
}
.delivery-detail .specs { margin-top: 0; margin-bottom: 1rem; }

/* ---------- Acerca de (editorial) ---------- */
.editorial { display: grid; gap: 2.5rem; padding-bottom: var(--section); }
@media (min-width: 900px) {
  .editorial { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .ed-media { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.ed-body { max-width: 38rem; font-size: 1.04rem; }
.ed-body p { color: #343834; }
.ed-body .h3 { margin-top: 2.5rem; }
.dropcap::first-letter {
  float: left; font-family: var(--serif); font-weight: 500; color: var(--basil);
  font-size: 4.6rem; line-height: .82; padding: .35rem .6rem 0 0;
}
.pull {
  margin: 2.5rem 0; padding: 1.5rem 0;
  border-block: 1px solid var(--brass);
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.3; color: var(--basil);
}
@media (min-width: 1100px) { .pull { margin-left: -4rem; padding-left: 0; } }

/* Proceso */
.steps { display: grid; gap: 2.5rem; margin-top: 2.5rem; counter-reset: s; }
.steps li { position: relative; }
.steps .media { margin: 1rem 0 1.25rem; }
.steps h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-bottom: .35rem; }
.steps p { color: var(--stone); margin: 0; font-size: .95rem; }
.step-n {
  display: flex; align-items: center; gap: .75rem;
  font-size: .7rem; letter-spacing: .16em; color: var(--brass);
}
.step-n::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps li:not(:last-child) .step-n::after { margin-right: -2rem; }
}

/* ---------- Cuenta ---------- */
.account {
  display: grid; gap: 3rem;
  padding-top: calc(var(--section) * .7); padding-bottom: var(--section);
  min-height: calc(100vh - var(--header-h) - 12rem);
}
@media (min-width: 900px) {
  .account { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
}
.account-intro .lead { margin-top: 1.25rem; }
.perks { margin-top: 2rem; border-top: 1px solid var(--line); }
.perks li {
  display: flex; gap: .9rem; align-items: baseline;
  padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.perks li::before { content: "—"; color: var(--brass); }

.account-panel {
  background: var(--sage); border: 1px solid var(--line);
  padding: 2rem 1.5rem;
}
@media (min-width: 720px) { .account-panel { padding: 3rem; } }

.field-label {
  display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone); margin-bottom: .75rem;
}
.field { display: flex; flex-direction: column; gap: .75rem; }
.field input {
  width: 100%; min-height: 52px; padding: .8rem 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  font-family: var(--serif); font-size: 1.5rem; color: var(--ink);
  transition: border-color .2s;
}
.field input::placeholder { color: #9AA19A; font-style: italic; }
.field input:focus { outline: none; border-bottom-color: var(--basil); box-shadow: 0 1px 0 0 var(--basil); }
.field input[aria-invalid="true"] { border-bottom-color: #8A3B2E; box-shadow: 0 1px 0 0 #8A3B2E; }
@media (min-width: 560px) {
  .field { flex-direction: row; align-items: flex-end; gap: 1rem; }
  .field .btn { flex: 0 0 auto; }
}
.help { margin-top: 1rem; font-size: .85rem; color: var(--stone); }
.help.is-error { color: #8A3B2E; }

.join.is-leaving { animation: fadeOut .3s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-6px); } }

.joined { animation: viewIn .6s var(--ease) both; outline: none; }
.joined .eyebrow { margin-top: 1.5rem; margin-bottom: .75rem; }
.joined p { color: var(--stone); }
.joined strong { color: var(--ink); font-weight: 500; word-break: break-all; }
.joined-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.75rem; }

.check { width: 52px; height: 52px; fill: none; stroke: var(--basil); stroke-width: 1; }
.check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.check path { stroke-width: 1.5; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .45s .65s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid .brand-name { margin-bottom: .5rem; }
.footer-grid a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.footer-grid a:hover { border-color: var(--basil); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line);
}
.footer-base p { margin: 0; }
.footer-base a { text-decoration: none; }

/* ---------- Panel de pedido ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(28, 30, 28, .32);
  animation: fadeIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }

.drawer {
  position: fixed; z-index: 60; top: 0; right: 0; bottom: 0;
  width: min(100%, 420px);
  background: var(--bone); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
  outline: none;
}
.drawer.is-open { transform: none; visibility: visible; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
}
.drawer-head .h3 { margin: 0; }
.close {
  width: 40px; height: 40px; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius); font-size: .9rem;
}
.close:hover { border-color: var(--basil); }

.drawer-body { flex: 1; overflow-y: auto; padding: 0 1.5rem; }
.order-list li {
  display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.order-list .ol-name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.order-list .ol-meta { font-size: .8rem; color: var(--stone); }
.order-list .ol-price { text-align: right; font-size: .92rem; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong); margin-top: .5rem;
  width: max-content;
}
.qty button { width: 32px; height: 32px; background: none; border: 0; font-size: 1rem; }
.qty button:hover { background: var(--sage); }
.qty output { min-width: 2rem; text-align: center; font-size: .9rem; }
.ol-remove { grid-column: 2; justify-self: end; align-self: end; font-size: .78rem; }

.order-empty { padding: 3rem 0; text-align: center; color: var(--stone); font-family: var(--serif); font-size: 1.25rem; }
.order-empty a { font-family: var(--sans); font-size: .85rem; }

.drawer-foot {
  padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--sage);
  display: grid; gap: .6rem; justify-items: center;
}
.order-total { width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
.order-total span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.order-total strong { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; }
.drawer-foot .small { width: 100%; margin: 0 0 .4rem; }

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bone);
  padding: .8rem 1.25rem; font-size: .88rem; border-radius: var(--radius);
  max-width: calc(100% - 2rem); text-align: center;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: #C9DCC5; font-weight: 500; }
