/* =============================================================
   Cebando · styles
   1 Tokens · 2 Reset · 3 Utilities · 4 Type · 5 Components
   6 Sections · 7 Order list · 8 Effects · 9 Responsive · 10 Reduced motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --ink: #0b0b0b;
  --ink-2: #1c1c1c;
  --paper: #ffffff;
  --sand: #f4f1eb;
  --line: #e6e2da;
  --muted: #5c5c5c;
  --soft: #8b8b8b;
  --wa: #25d366;
  --wa-ink: #0b3d20;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --radius: 14px;
  --header-h: 64px;
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
input { font: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--paper); color: var(--ink); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
html:not(.js) .js-only { display: none !important; }
[hidden] { display: none !important; }

/* 4. Type ------------------------------------------------------ */
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .75rem;
}
.kicker--light { color: rgba(255, 255, 255, .7); }

/* 5. Components ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #e9e9e9; }
.btn--ghost-light { border: 1.5px solid rgba(255, 255, 255, .55); color: var(--paper); }
.btn--ghost-light:hover { border-color: var(--paper); background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #333; }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: #1fbe5a; }
.btn--block { width: 100%; }
.btn--add, .btn--notify { width: 100%; min-height: 42px; padding: .55rem 1rem; font-size: 12.5px; }
.btn--add { background: var(--ink); color: var(--paper); }
.btn--add:hover { background: #333; }
.btn--notify { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--notify:hover { background: var(--ink); color: var(--paper); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  min-height: 38px; padding: .4rem 1rem; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--paper);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.chip span { color: var(--soft); font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-active span { color: rgba(255, 255, 255, .65); }

.badge {
  position: absolute; top: 10px; left: 10px;
  padding: .3rem .6rem; border-radius: 6px; background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* Product card */
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  background: var(--sand);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), opacity .4s var(--ease-out); }
.card--pack .card__media { background: var(--paper); border: 1px solid var(--line); }
.card--pack .card__media img { object-fit: contain; padding: 8%; }
.card__alt { position: absolute; inset: 0; opacity: 0; }
.card.is-soldout .card__media img { filter: grayscale(.6); opacity: .7; }
.card__body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem .15rem 0; flex: 1; }
.card__size { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.card__title { font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
/* Full text without JavaScript; with it, 3 lines + a "Ver más" toggle (added by main.js only when the text is longer) */
.card__desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.js .card__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.js .card__desc.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.more-btn {
  align-self: flex-start; min-height: 32px; padding: .2rem 0;
  font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.more-btn:hover { color: #444; }
.card__price { font-size: 16px; font-weight: 800; margin: .15rem 0 .55rem; margin-top: auto; padding-top: .35rem; }
.card.is-soldout .card__price { color: var(--soft); }

/* 6. Sections -------------------------------------------------- */
.topbar { background: var(--ink); color: var(--paper); border-bottom: 1px solid #222; }
.topbar p {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem .6rem;
  padding: .55rem var(--gutter); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.topbar__dot { opacity: .45; }

.header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); }
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: var(--header-h);
}
.nav { display: none; gap: 1.6rem; }
.nav a, .subnav a {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size .3s var(--ease-out);
}
.nav a:hover, .subnav a:hover { background-size: 100% 1.5px; }
.logo { grid-column: 2; justify-self: center; }
.logo img { height: 26px; width: auto; }
.header__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; }
.order-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .4rem .5rem .4rem .7rem; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--paper);
  transition: background-color .2s var(--ease-out);
}
.order-btn:hover { background: rgba(255, 255, 255, .1); }
.order-btn svg { width: 22px; height: 22px; flex: none; }
.order-btn__label { display: none; }
.order-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; letter-spacing: 0;
}
.order-btn.is-bump .order-btn__count { animation: bump .45s var(--ease-out); }
.subnav {
  display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter) .2rem;
  border-top: 1px solid #222;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font-size: 12px; display: inline-flex; align-items: center; min-height: 42px; background-position: 0 75%; }
.logo { padding-block: .45rem; }

.hero { background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__inner { display: grid; gap: 2.25rem; padding-block: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero__title {
  font-size: clamp(2.3rem, 7.2vw, 5.1rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: .98;
}
.hero__title em {
  display: block; margin-top: .25rem; font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -0.01em; font-size: .86em; color: #e9e3d8;
}
.hero__text { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(16px, 1.6vw, 18px); color: rgba(255, 255, 255, .78); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__note { margin-top: 1rem; font-size: 13px; color: rgba(255, 255, 255, .55); }
.hero__mosaic {
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
  height: clamp(340px, 62vw, 620px);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: #1a1a1a; }
.hero__img--a { grid-row: 1 / 3; }

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
.section--sand { background: var(--sand); }
.section__head { margin-bottom: 1.5rem; max-width: 40rem; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.section__title { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.section__text { margin-top: .6rem; color: var(--muted); font-size: 16px; }

.filters { display: none; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 1.5rem; padding: 2px var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.js .filters { display: flex; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .9rem; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .7s var(--ease-out), opacity .4s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 55%); }
.tile__label {
  position: absolute; left: 1rem; right: 1rem; bottom: .95rem; z-index: 1;
  font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1;
}
.tile__label small { display: block; margin-top: .25rem; font-size: 12px; font-weight: 600; letter-spacing: .1em; opacity: .75; }

.band { background: var(--ink); color: var(--paper); }
.band__inner { padding-block: clamp(3rem, 7vw, 5rem); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.band__title { font-size: clamp(1.7rem, 4.5vw, 2.8rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.band__text { max-width: 34rem; color: rgba(255, 255, 255, .75); margin-bottom: .5rem; }

.steps { display: grid; gap: .9rem; }
.step { background: var(--paper); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.6rem; }
.step__n { display: block; font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--soft); margin-bottom: .9rem; }
.step h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; margin-bottom: .4rem; letter-spacing: 0; }
.step p { color: var(--muted); font-size: 15px; }

.community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.community__item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.community__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.btn svg + * { margin: 0; }

.footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-top: clamp(3rem, 7vw, 4.5rem); }
.footer__inner { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand img { width: 190px; height: auto; margin-bottom: .9rem; }
.footer__brand p { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--paper); }
.footer__col { display: flex; flex-direction: column; gap: .4rem; font-size: 15px; }
.footer__col h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: .3rem; }
.footer__col a { display: inline-flex; align-items: center; min-height: 40px; }
.footer__col a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { border-top: 1px solid #222; padding-block: 1.25rem 6rem; font-size: 13px; color: rgba(255, 255, 255, .5); }

.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* 7. Order list ------------------------------------------------ */
.order-bar {
  position: fixed; left: 12px; right: 84px; bottom: 16px; z-index: 60;
  min-height: 56px; padding: .6rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
}
.order-bar__meta { font-weight: 500; text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .8); }
.order-bar__meta strong { color: var(--paper); font-weight: 800; }

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s var(--ease-out); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--paper); outline: none;
  transform: translateX(100%); transition: transform .4s var(--ease-out);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; font-size: 28px; line-height: 1; }
.drawer__close:hover { background: var(--sand); }
.drawer__empty { padding: 2rem 1.25rem; color: var(--muted); }
.drawer__list { flex: 1; overflow-y: auto; padding: .5rem 1.25rem; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.line__name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.line__unit { font-size: 12.5px; color: var(--muted); }
.line__qty { display: inline-flex; align-items: center; margin-top: .4rem; border: 1px solid var(--line); border-radius: 999px; }
.line__qty button { width: 32px; height: 30px; font-size: 18px; line-height: 1; border-radius: 999px; }
.line__qty button:hover { background: var(--sand); }
.line__qty span { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; }
.line__end { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.line__total { font-weight: 800; font-size: 14px; white-space: nowrap; }
.line__remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.drawer__foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .75rem; background: var(--paper); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; }
.drawer__total strong { font-size: 22px; font-weight: 800; }
.field { display: grid; gap: .3rem; font-size: 13px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--soft); }
.field input { min-height: 42px; padding: .5rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--ink); }
.link-btn { justify-self: center; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 120; transform: translate(-50%, 12px);
  max-width: calc(100% - 32px); padding: .7rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 8. Effects --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img { transform: scale(1.04); }
  .card:hover .card__alt { opacity: 1; }
  .card--pack:hover .card__media img { transform: scale(1.05); }
  .tile:hover img, .community__item:hover img { transform: scale(1.05); opacity: 1; }
}

/* 9. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .grid { gap: 2rem 1.25rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .community { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .order-btn__label { display: inline; }
}
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
  .nav { display: flex; }
  .subnav { display: none; }
  .logo img { height: 30px; }
  .hero__inner { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
  .hero__mosaic { height: clamp(460px, 44vw, 620px); }
  .order-bar { display: none !important; }
  .toast { bottom: 32px; }
}
@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
}
@media (max-width: 959.98px) {
  body.has-order .wa-float { display: none; }
  body.has-order .order-bar { right: 12px; }
  .hide-md { display: none; }
}
@media (max-height: 500px) and (max-width: 959.98px) {
  /* phone held sideways: don't let a sticky header eat a third of the screen */
  .header { position: relative; }
  html { scroll-padding-top: 12px; }
}
@media (max-width: 539.98px) {
  .hide-sm { display: none; }
}
@media (max-width: 719.98px) {
  .topbar p { flex-wrap: nowrap; font-size: 10.5px; letter-spacing: .06em; gap: .45rem; white-space: nowrap; }
  .topbar__extra { display: none; }
}
@media (max-width: 379.98px) {
  .topbar__mid { display: none; }
  .btn { font-size: 13px; padding-inline: 1.1rem; letter-spacing: .03em; }
  .btn--add, .btn--notify { font-size: 12px; padding-inline: .6rem; }
}

/* 10. Reduced motion: only intrusive effects (none heavy here) -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
