/* =========================================================
   VITA CAFÉ · estilos
   Paleta tomada del diseño: beige, verde olivo y café
   ========================================================= */
:root {
  --beige: #cdb999;
  --beige-light: #eadec8;
  --cream: #f6f0e6;
  --green: #4b5a3a;
  --green-dark: #3a4630;
  --brown: #6b3a26;
  --brown-soft: #8a5a3c;
  --ink: #2a2420;
  --muted: #6e6257;
  --white: #fff;

  --font-title: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Lora", Georgia, serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 36, 32, .18);
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--beige);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; letter-spacing: .02em; line-height: 1; margin: 0; }
button, input, select { font: inherit; color: inherit; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { position: relative; overflow-x: clip; padding: clamp(64px, 10vw, 120px) 0; }

/* Bloque verde con título (elemento recurrente del diseño) */
.block-green {
  background: var(--green);
  color: var(--cream);
  padding: clamp(24px, 4vw, 44px);
}
.block-green h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.block-green h3 { font-size: clamp(2rem, 4vw, 2.8rem); }

.eyebrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown-soft); font-weight: 600; }
.title-dark { font-size: clamp(2.6rem, 6vw, 4rem); color: var(--green-dark); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--brown); color: var(--cream); box-shadow: 0 6px 18px rgba(107, 58, 38, .35); }
.btn--primary:hover { background: #5a2f1e; }
.btn--ghost { border-color: var(--cream); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); }
.btn--ghost-dark { border-color: var(--green); color: var(--green); background: transparent; }
.btn--ghost-dark:hover { background: var(--green); color: var(--cream); }
.btn--small { padding: .45em 1em; font-size: .9rem; background: var(--green); color: var(--cream); }
.btn--small:hover { background: var(--green-dark); }
.btn--block { width: 100%; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 0; cursor: pointer; color: inherit; font-size: 1.1rem;
  transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .15); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra de progreso ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--green), var(--brown));
  transform-origin: left; transform: scaleX(0);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px);
  color: var(--cream);
  transition: background .35s, box-shadow .35s, height .35s;
}
.navbar.is-scrolled {
  background: rgba(58, 70, 48, .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  --nav-h: 62px;
}
.navbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; }
.navbar__brand img { border-radius: 50%; background: var(--beige-light); padding: 2px; }
.navbar__brand em { font-weight: 400; }
.navbar__menu { display: flex; gap: clamp(12px, 2.5vw, 36px); }
.nav-link { position: relative; text-decoration: none; font-size: 1.05rem; padding: 6px 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.navbar__actions { display: flex; align-items: center; gap: 4px; }
.navbar__toggle { display: none; }

.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--brown); color: var(--cream);
  font: 700 .72rem/19px system-ui, sans-serif; text-align: center;
  transition: transform .3s var(--ease);
}
.cart-count.is-empty { transform: scale(0); }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }

/* =========================================================
   INICIO / HERO
   ========================================================= */
.hero { min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding-top: var(--nav-h); }
.hero__bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; will-change: transform; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 12, .65), rgba(20, 16, 12, .35) 40%, rgba(20, 16, 12, .7)); }
.hero__content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; padding: 0 16px; text-align: center; }
.hero__card {
  position: relative; background: var(--beige-light);
  width: min(560px, 88vw); aspect-ratio: 16 / 10;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.hero__logo { width: 62%; height: auto; }
.hero__line { position: absolute; width: 2px; background: var(--brown); }
.hero__line--v1 { left: 5%; top: 55%; height: 60%; }
.hero__line--v2 { right: 7%; top: -6%; height: 50%; }
.hero__tagline { color: var(--cream); font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-style: italic; margin: 0 0 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; translate: -50% 0; z-index: 1;
  width: 26px; height: 42px; border: 2px solid var(--cream); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--cream); animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   BIENVENIDA
   ========================================================= */
.welcome { overflow: hidden; }
.welcome__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; position: relative; z-index: 1; }
.welcome__title { align-self: stretch; display: flex; align-items: center; }
.welcome__text { padding: 0 0 28px clamp(20px, 4vw, 48px); text-align: justify; }
.welcome__text p { margin: 0 0 1em; }
.welcome__img { grid-column: 1 / -1; height: clamp(220px, 32vw, 380px); }
.welcome__img img { width: 100%; height: 100%; object-fit: cover; }

/* Granos de café decorativos (SVG en línea) */
.beans {
  position: absolute; width: 220px; height: 320px; opacity: .35; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cg fill='%238a6a4c'%3E%3Cellipse cx='35' cy='35' rx='22' ry='30' transform='rotate(-25 35 35)'/%3E%3Cellipse cx='70' cy='95' rx='22' ry='30' transform='rotate(20 70 95)'/%3E%3Cellipse cx='25' cy='115' rx='18' ry='24' transform='rotate(-10 25 115)'/%3E%3C/g%3E%3Cg stroke='%23cdb999' stroke-width='3' fill='none'%3E%3Cpath d='M30 8 C45 30 25 45 40 62'/%3E%3Cpath d='M75 66 C60 90 82 105 66 124'/%3E%3Cpath d='M22 92 C34 110 18 122 28 138'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.beans--left { left: -60px; bottom: -40px; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.services { background: var(--beige-light); }
.services__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.services__text p { margin: 0 0 1.1em; text-align: justify; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.features li { display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.features span { font-size: 1.3rem; }
.services__media { position: relative; min-height: 460px; }
.services__img { position: absolute; object-fit: cover; box-shadow: var(--shadow); }
.services__img--a { width: 62%; aspect-ratio: 4 / 5; top: 0; left: 0; }
.services__img--b { width: 58%; aspect-ratio: 1; right: 0; top: 18%; }
.services__title { position: absolute; left: 12%; bottom: 0; z-index: 2; }

/* =========================================================
   MENÚ
   ========================================================= */
.menu__head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin-bottom: 48px; }
.menu__intro { flex: 1 1 280px; margin: 0; font-size: 1.05rem; }

.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); margin-bottom: 40px; }
.category {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  display: grid; gap: 12px;
}
.category__img { display: block; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); outline: 4px solid transparent; outline-offset: 4px; transition: outline-color .3s; }
.category__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.85); }
.category:hover .category__img img { transform: scale(1.07); filter: none; }
.category__name { font-size: 1.2rem; position: relative; justify-self: start; }
.category__name::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--brown); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.category.is-active .category__img { outline-color: var(--green); }
.category.is-active .category__img img { filter: none; }
.category.is-active .category__name { font-weight: 700; }
.category.is-active .category__name::after { transform: scaleX(1); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.product {
  background: var(--cream); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid rgba(75, 90, 58, .12);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; letter-spacing: 0; line-height: 1.3; }
.product__price { font-weight: 700; color: var(--brown); white-space: nowrap; }
.product p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.product__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.menu-error { grid-column: 1 / -1; background: var(--cream); border-left: 4px solid var(--brown); border-radius: var(--radius); padding: 20px 24px; }
.menu-error p { margin: 6px 0 0; color: var(--muted); }
.menu-error code { background: var(--beige-light); padding: 1px 6px; border-radius: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .72rem; padding: 2px 9px; border-radius: 999px; background: rgba(75, 90, 58, .13); color: var(--green-dark); font-weight: 600; }

/* Vista previa del menú (index) */
a.category { text-decoration: none; color: inherit; }
.category__name small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.menu__cta { display: flex; justify-content: center; }
.menu--page { padding-top: clamp(40px, 6vw, 72px); }

/* Encabezado de menu.html */
.page-hero { min-height: 52svh; display: grid; align-items: end; overflow: hidden; padding: calc(var(--nav-h) + 48px) 0 56px; }
.page-hero__bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; will-change: transform; }
.page-hero__content { position: relative; z-index: 1; color: var(--cream); }
.page-hero h1 { font-size: clamp(3.6rem, 11vw, 7rem); margin: 8px 0 6px; }
.page-hero p { margin: 0; font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-style: italic; }
.eyebrow--light { color: var(--beige); }

/* Redes sociales */
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border: 1.5px solid var(--green); border-radius: 999px; text-decoration: none !important;
  font-weight: 600; font-size: .92rem; color: var(--green-dark);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.social:hover { background: var(--green); color: var(--cream); transform: translateY(-2px); }
.social svg, .footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.social svg path, .footer__social svg path, .social svg .fill, .footer__social svg .fill { fill: currentColor; stroke: none; }
.footer { align-items: center; }
.footer__social { display: flex; gap: 6px; }
.footer__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--beige-light); transition: background .2s; }
.footer__social a:hover { background: rgba(255, 255, 255, .12); }

/* =========================================================
   CONÓCEME
   ========================================================= */
.about { background: var(--beige-light); overflow: hidden; }
.about__head { text-align: center; margin-bottom: clamp(40px, 7vw, 80px); }
.about__row { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(28px, 6vw, 80px); margin-bottom: clamp(56px, 9vw, 110px); }
.about__row--reverse .about__img { order: 2; }
.about__img { aspect-ratio: 4 / 5; max-height: 560px; box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__label { display: inline-block; margin-bottom: 24px; }
.about__card p { margin: 0; font-size: 1.1rem; text-align: justify; }

.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.counter { background: var(--green); color: var(--cream); padding: 28px 16px; text-align: center; border-radius: var(--radius); }
.counter strong { display: block; font-family: var(--font-title); font-weight: 400; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; }
.counter span { font-size: .95rem; opacity: .9; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); transition: transform .5s var(--ease); }
.gallery img:hover { transform: scale(1.03) rotate(-.6deg); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { overflow: hidden; min-height: 80vh; display: grid; align-items: center; }
.contact__bg { position: absolute; inset: -15% 0; background-size: cover; background-position: center; will-change: transform; }
.contact__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 24, 18, .75), rgba(30, 24, 18, .2)); }
.contact__inner { position: relative; z-index: 1; }
.contact__card { background: var(--beige-light); max-width: 520px; padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow); }
.contact__card h2 { font-size: clamp(3rem, 7vw, 4.6rem); color: var(--green-dark); margin-bottom: 20px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.contact__list li { display: grid; border-left: 3px solid var(--brown); padding-left: 14px; }
.contact__list span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brown-soft); font-weight: 600; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.footer { background: var(--green-dark); color: var(--beige-light); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 22px clamp(16px, 4vw, 48px); font-size: .9rem; }
.footer p { margin: 0; }
.footer__top { text-decoration: none; }

/* =========================================================
   PANELES LATERALES (carrito / pedidos)
   ========================================================= */
.backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(20, 16, 12, .5); animation: fadeIn .3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(420px, 100%); background: var(--cream);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .2);
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--green); color: var(--cream); }
.drawer__head h2 { font-size: 2rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer__foot { padding: 18px 20px; border-top: 1px solid rgba(0, 0, 0, .08); display: grid; gap: 14px; }
.total-row { display: flex; justify-content: space-between; font-size: 1.15rem; }

.line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed rgba(0, 0, 0, .12); animation: slideIn .35s var(--ease); }
.line__info { display: grid; gap: 2px; }
.line__info small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.line__note { font-style: italic; }
.line__price { font-weight: 700; color: var(--brown); margin-top: 4px; }

.qty { display: inline-flex; align-items: center; border: 2px solid var(--green); border-radius: 999px; overflow: hidden; align-self: center; }
.qty button { width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; color: var(--green); }
.qty button:hover { background: rgba(75, 90, 58, .12); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.qty--sm button { width: 30px; height: 30px; font-size: 1rem; }

.empty { text-align: center; padding: 48px 12px; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.empty img { width: 90px; opacity: .7; }

.order {
  width: 100%; display: flex; justify-content: space-between; gap: 10px; text-align: left;
  background: var(--white); border: 1px solid rgba(0, 0, 0, .07); border-radius: 12px;
  padding: 14px; margin: 10px 0; cursor: pointer; transition: transform .2s;
}
.order:hover { transform: translateX(-3px); }
.order small { display: block; color: var(--muted); font-size: .8rem; }
.order__right { display: grid; justify-items: end; gap: 4px; font-weight: 700; }
.status { font-size: .72rem; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.status--recibido { background: #efe3c8; color: #7a5a14; }
.status--preparando { background: #f3d9c9; color: var(--brown); }
.status--listo { background: #dbe6cc; color: var(--green-dark); }

/* =========================================================
   MODALES
   ========================================================= */
.modal {
  border: 0; padding: 0; border-radius: 18px; width: min(520px, calc(100% - 24px));
  max-height: calc(100svh - 32px); background: var(--cream); color: var(--ink);
  box-shadow: var(--shadow);
}
.modal[open] { animation: popIn .4s var(--ease); }
.modal::backdrop { background: rgba(20, 16, 12, .55); backdrop-filter: blur(2px); }
.modal__inner { padding: 24px; display: grid; gap: 16px; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal__head h2 { font-size: 2.3rem; color: var(--green-dark); }
.modal__head .icon-btn:hover { background: rgba(0, 0, 0, .06); }
.modal__desc { margin: -8px 0 0; color: var(--muted); }

.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; border: 0; padding: 0; margin: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
.field input, .field select {
  font-weight: 400; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid rgba(75, 90, 58, .3); background: var(--white);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(75, 90, 58, .2); }
.field input.is-invalid { border-color: #b3412b; animation: shake .4s; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 500;
  border: 1.5px solid rgba(75, 90, 58, .35); background: var(--white); transition: background .2s, color .2s, border-color .2s;
}
.chip span small { opacity: .75; }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--cream); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(75, 90, 58, .3); }

.qty-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: -24px; background: var(--cream); padding: 12px 0 0; }

.summary { background: var(--white); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; font-size: .95rem; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary__total { border-top: 1px dashed rgba(0, 0, 0, .15); padding-top: 8px; margin-top: 4px; font-weight: 700; font-size: 1.05rem; }
.hint { margin: 0; font-size: .82rem; color: var(--muted); font-style: italic; }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; counter-reset: s; }
.stepper li { position: relative; text-align: center; font-size: .8rem; color: var(--muted); padding-top: 38px; counter-increment: s; }
.stepper li::before {
  content: counter(s); position: absolute; top: 0; left: 50%; translate: -50% 0; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--beige-light); border: 2px solid var(--beige); font-weight: 700;
  transition: background .4s, border-color .4s, color .4s;
}
.stepper li + li::after { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--beige); }
.stepper li.done { color: var(--green-dark); font-weight: 600; }
.stepper li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: var(--cream); animation: popIn .4s var(--ease); }
.stepper li.done::after { background: var(--green); }

/* =========================================================
   TICKET (forma de boleto: bordes festoneados, muescas,
   línea de corte, código de barras y talón)
   ========================================================= */
.modal--ticket {
  background: transparent; box-shadow: none; border-radius: 0;
  width: min(410px, calc(100% - 24px)); overflow-y: auto; overflow-x: hidden;
  padding: 18px 4px 8px;
}
.modal--ticket[open] { animation: ticketIn .8s var(--ease); }
@keyframes ticketIn {
  from { opacity: 0; transform: translateY(-60px) rotate(-4deg); }
  60%  { opacity: 1; transform: translateY(6px) rotate(1deg); }
}

.tk {
  --r: 15px;            /* tamaño de las muescas laterales */
  --paper: #f4ecdd;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
  color: var(--ink);
}
.tk__main, .tk__stub {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 60% at 100% 0, rgba(205, 185, 153, .55), transparent 60%),
    var(--paper);
}
/* Parte principal: festón arriba + muescas abajo */
.tk__main {
  padding: 34px 26px 26px;
  -webkit-mask:
    radial-gradient(circle 9px at 50% 0, #0000 96%, #000) 0 0 / 30px 100% repeat-x,
    radial-gradient(circle var(--r) at 0 100%, #0000 96%, #000),
    radial-gradient(circle var(--r) at 100% 100%, #0000 96%, #000);
  mask:
    radial-gradient(circle 9px at 50% 0, #0000 96%, #000) 0 0 / 30px 100% repeat-x,
    radial-gradient(circle var(--r) at 0 100%, #0000 96%, #000),
    radial-gradient(circle var(--r) at 100% 100%, #0000 96%, #000);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* Talón: muescas arriba + festón abajo */
.tk__stub {
  padding: 22px 26px 34px;
  display: grid; gap: 12px; justify-items: center;
  -webkit-mask:
    radial-gradient(circle 9px at 50% 100%, #0000 96%, #000) 0 0 / 30px 100% repeat-x,
    radial-gradient(circle var(--r) at 0 0, #0000 96%, #000),
    radial-gradient(circle var(--r) at 100% 0, #0000 96%, #000);
  mask:
    radial-gradient(circle 9px at 50% 100%, #0000 96%, #000) 0 0 / 30px 100% repeat-x,
    radial-gradient(circle var(--r) at 0 0, #0000 96%, #000),
    radial-gradient(circle var(--r) at 100% 0, #0000 96%, #000);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* Línea punteada de corte */
.tk__stub::before {
  content: ""; position: absolute; top: 0; left: calc(var(--r) + 8px); right: calc(var(--r) + 8px);
  border-top: 2px dashed rgba(42, 36, 32, .35);
}

.tk__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tk__brand {
  display: inline-block; background: var(--green); color: var(--cream);
  font-family: var(--font-title); font-size: 1.9rem; line-height: 1; letter-spacing: .06em;
  padding: 8px 12px 5px; text-transform: uppercase;
}
.tk__kicker {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.tk__kicker::after { content: ""; width: 70px; height: 1px; background: currentColor; }

.tk__vcode {
  display: flex; gap: 6px; align-items: stretch;
  background: var(--white); padding: 8px 6px; margin-top: -34px; height: 136px;
}
.tk__vcode span {
  writing-mode: vertical-rl; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .72rem; letter-spacing: .12em;
}
.barcode { display: block; width: 100%; height: 56px; fill: var(--ink); }
.barcode--v { width: 44px; height: 100%; }

.tk__headline { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.tk__headline h2 { font-size: clamp(3.2rem, 15vw, 4.2rem); line-height: .86; color: var(--ink); text-transform: uppercase; }
.tk__day { font-family: var(--font-title); font-size: 1.6rem; color: var(--brown); white-space: nowrap; }
.tk__motto {
  margin: 0; padding: 10px 0; border-bottom: 2px solid var(--ink);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}

.tk__folio {
  font-family: var(--font-title); font-size: 3rem; line-height: 1; color: var(--green-dark);
  margin: 16px 0 10px; display: flex; align-items: baseline; gap: 10px;
}
.tk__folio small { font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brown-soft); font-weight: 600; }

.tk__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.tk__items li { display: flex; align-items: baseline; gap: 6px; }
.tk__items small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.tk__items i { flex: 1; border-bottom: 2px dotted rgba(42, 36, 32, .3); transform: translateY(-4px); min-width: 16px; }
.tk__items b { white-space: nowrap; }
.tk__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 12px 0 18px; padding-top: 10px; border-top: 2px solid var(--ink);
}
.tk__total span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.tk__total strong { font-family: var(--font-title); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--brown); }

.tk .stepper li:not(.done)::before { background: var(--paper); }
.tk .stepper li { font-size: .72rem; }

.tk__data { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 20px 0 0; }
.tk__data div:nth-child(even) { text-align: right; }
.tk__data dt { font-weight: 700; font-size: 1rem; line-height: 1.1; }
.tk__data dd { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Sello que aparece cuando el pedido está listo */
.tk__stamp {
  position: absolute; left: 50%; bottom: 34px;
  font-family: var(--font-title); font-size: 2.6rem; line-height: 1; letter-spacing: .08em;
  color: var(--brown); border: 4px double var(--brown); border-radius: 10px; padding: 6px 14px 2px;
  transform: translateX(-50%) rotate(-14deg) scale(2.2); opacity: 0; pointer-events: none; mix-blend-mode: multiply;
  transition: opacity .25s, transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.tk__stamp.is-on { opacity: .8; transform: translateX(-50%) rotate(-14deg) scale(1); }

.tk__thanks {
  width: 100%; padding: 14px 0; display: grid; place-items: center;
  border: 2px solid var(--ink);
  background-image:
    linear-gradient(rgba(42, 36, 32, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 36, 32, .22) 1px, transparent 1px);
  background-size: 16px 16px;
}
.tk__thanks span {
  font-family: var(--font-title); font-size: 2.6rem; line-height: 1; letter-spacing: .06em; color: var(--green-dark);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; padding: 12px 34px 6px;
}
.tk__note { margin: -4px 0 0; font-family: ui-monospace, Menlo, monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.tk-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.btn--ghost-light { border-color: var(--cream); color: var(--cream); background: rgba(0, 0, 0, .25); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; translate: -50% 0;
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow); font-size: .95rem; white-space: nowrap;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-show { opacity: 1; transform: none; }

/* =========================================================
   ANIMACIONES DE SCROLL
   (sólo se ocultan si JS cargó: clase .js-anim en <html>)
   ========================================================= */
.js-anim [data-anim] {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.js-anim [data-anim="fade-up"]    { transform: translateY(40px); }
.js-anim [data-anim="fade-down"]  { transform: translateY(-40px); }
.js-anim [data-anim="fade-left"]  { transform: translateX(60px); }
.js-anim [data-anim="fade-right"] { transform: translateX(-60px); }
.js-anim [data-anim="zoom-in"]    { transform: scale(.88); }
.js-anim [data-anim].is-visible   { opacity: 1; transform: none; }

/* "reveal": una cortina verde se desliza y descubre la foto */
.js-anim [data-anim="reveal"] { opacity: 1; position: relative; overflow: hidden; }
.js-anim [data-anim="reveal"]::after {
  content: ""; position: absolute; inset: 0; background: var(--green);
  transform-origin: right; transition: transform 1.1s var(--ease); transition-delay: inherit;
}
.js-anim [data-anim="reveal"] img { transform: scale(1.25); transition: transform 1.6s var(--ease); }
.js-anim [data-anim="reveal"].is-visible::after { transform: scaleX(0); }
.js-anim [data-anim="reveal"].is-visible img { transform: scale(1); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .navbar__toggle { display: grid; }
  .navbar__menu {
    position: fixed; top: 0; left: 0; right: 0; z-index: -1;
    flex-direction: column; gap: 0; padding: calc(var(--nav-h) + 8px) 24px 24px;
    background: var(--green-dark);
    transform: translateY(-100%); transition: transform .45s var(--ease);
  }
  .navbar__menu.is-open { transform: none; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.15rem; }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--beige); }

  .welcome__grid, .services__grid, .about__row { grid-template-columns: 1fr; }
  .welcome__text { padding: 24px 0; }
  .about__row--reverse .about__img { order: 0; }
  .about__img { aspect-ratio: 16 / 10; }
  .services__media { min-height: 380px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .navbar__brand span { display: none; }
  .categories { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category__name { font-size: .9rem; line-height: 1.2; }
  .features, .counters { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:last-child { display: none; }
  .services__title { left: 0; }
  .modal__inner { padding: 20px; }
  .tk-actions .btn { flex: 1; }
}
