/* Tienda demo · tema retail claro construido desde el kit OptiMind IA.
   Paleta y tipografía viven en :root: para una tienda nueva se cambian acá. */

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

:root {
  --paper: #F2F5EA;
  --surface: #FFFFFF;
  --ink: #173027;
  --muted: #65736A;
  --coral: #FF623E;
  --blue: #3557F4;
  --lime: #D8F45A;
  --line: rgba(23, 48, 39, 0.16);
  --line-strong: rgba(23, 48, 39, 0.32);
  --danger: #B62F22;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Familjen Grotesk', system-ui, -apple-system, sans-serif;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 34px;
  --shadow: 0 22px 70px rgba(23, 48, 39, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: min(1440px, calc(100vw - 48px));
}

.is-hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.overlay-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--blue);
  color: var(--surface);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.skip-link {
  position: fixed;
  z-index: 1200;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: none;
}

.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 7px 24px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.announcement strong {
  color: var(--lime);
}

.announcement > span {
  color: var(--coral);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand img {
  border-radius: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cart-trigger {
  justify-self: end;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  transition: background 220ms ease, color 220ms ease, transform 220ms var(--ease);
}

.cart-trigger:hover {
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-2px);
}

.cart-count {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--surface);
  font-variant-numeric: tabular-nums;
}

.hero {
  position: relative;
  isolation: isolate;
  width: var(--container);
  min-height: min(850px, calc(100svh - 110px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(52px, 7vw, 120px);
  margin-inline: auto;
  padding: clamp(72px, 9vw, 140px) clamp(0px, 2vw, 28px) 110px;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  width: min(720px, 56vw);
  aspect-ratio: 1;
  top: 46%;
  right: -12%;
  border: 90px solid rgba(53, 87, 244, 0.08);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  top: 12%;
  left: 45%;
  background: var(--lime);
  clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0 50%, 38% 37%);
  opacity: 0.65;
  transform: rotate(12deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 25px;
  height: 3px;
  background: currentColor;
}

.eyebrow.light {
  color: var(--lime);
}

.hero h1,
.section-heading h2,
.how-intro h2,
.faq-section h2,
.closing-section h2 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.91;
  text-wrap: balance;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(64px, 7.2vw, 126px);
}

.hero h1 em,
.closing-section h2 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lead {
  max-width: 54ch;
  margin-top: 32px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 230ms var(--ease), box-shadow 230ms var(--ease), background 230ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--coral);
  color: var(--surface);
  box-shadow: 0 12px 24px rgba(255, 98, 62, 0.22);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 18px 30px rgba(255, 98, 62, 0.3);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover:not(:disabled) {
  background: var(--ink);
  color: var(--surface);
}

.button-full {
  width: 100%;
}

.text-button {
  min-height: 48px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  font-weight: 700;
}

.trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: 38px;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.trust-inline li::before {
  content: '✓';
  margin-right: 8px;
  color: var(--blue);
  font-weight: 800;
}

.hero-ticket-wrap {
  position: relative;
  width: min(480px, 100%);
  justify-self: center;
  perspective: 1200px;
}

.ticket-shadow {
  position: absolute;
  inset: 7% 0 -3% 5%;
  border-radius: 25px;
  background: var(--blue);
  transform: rotate(5deg);
  box-shadow: 0 34px 70px rgba(23, 48, 39, 0.2);
}

.live-ticket {
  position: relative;
  min-height: 590px;
  padding: 35px 38px 48px;
  background: var(--surface);
  color: var(--ink);
  transform: rotate(-2.5deg);
  transform-origin: top center;
  animation: ticket-feed 920ms var(--ease) both 180ms;
}

.live-ticket::before,
.live-ticket::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  height: 14px;
  background: radial-gradient(circle at 7px -1px, transparent 7px, var(--surface) 7.5px) 0 0 / 14px 14px repeat-x;
}

.live-ticket::before {
  top: -13px;
  transform: rotate(180deg);
}

.live-ticket::after {
  bottom: -13px;
}

.ticket-head,
.ticket-total,
.ticket-preview-lines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticket-head {
  align-items: flex-start;
}

.ticket-brand {
  display: block;
  font-family: var(--display);
  font-size: 43px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.ticket-head small {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.07em;
}

.ticket-mark {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--display);
  font-size: 27px;
  font-weight: 800;
}

.ticket-rule {
  height: 2px;
  margin: 28px 0 18px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px);
  opacity: 0.45;
}

.ticket-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.ticket-preview-lines {
  display: grid;
  gap: 20px;
  margin: 36px 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.ticket-preview-lines strong {
  font-size: 15px;
}

.ticket-preview-pending {
  color: var(--blue);
}

.ticket-preview-pending span {
  text-decoration: underline wavy var(--coral);
  text-underline-offset: 5px;
}

.ticket-total {
  padding: 22px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

.ticket-total strong {
  font-family: var(--display);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.ticket-note {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.ticket-barcode {
  width: 72%;
  height: 44px;
  margin: 22px auto 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 9px, transparent 9px 12px);
}

.hero-sticker {
  position: absolute;
  right: -42px;
  bottom: 56px;
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  line-height: 0.95;
  text-align: center;
  transform: rotate(10deg);
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 10px var(--ink);
}

@keyframes ticket-feed {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-35px) rotate(-2.5deg); }
  to { opacity: 1; clip-path: inset(-5% -8% -8% -8%); transform: translateY(0) rotate(-2.5deg); }
}

.category-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.category-strip button {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  transition: background 220ms ease, color 220ms ease;
}

.category-strip button:last-child {
  border-right: 0;
}

.category-strip button span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.category-strip button:hover {
  background: var(--blue);
  color: var(--surface);
}

.shop-section,
.trust-section,
.faq-section {
  width: var(--container);
  margin-inline: auto;
  padding-block: clamp(90px, 10vw, 160px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 58px;
}

.section-heading h2,
.how-intro h2,
.faq-section h2 {
  font-size: clamp(53px, 6vw, 96px);
}

.section-heading > p {
  max-width: 37ch;
  justify-self: end;
  color: var(--muted);
  font-size: 19px;
}

.shop-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.search-field {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 87, 244, 0.13);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 7px;
}

.filter-chips button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.sort-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.sort-field select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.catalog-meta {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.catalog-meta strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.catalog-meta button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  grid-column: span 4;
  min-width: 0;
}

.product-card:first-child {
  grid-column: span 8;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #E9EBD9;
}

.product-card:first-child .product-media {
  aspect-ratio: 2 / 1;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 580ms var(--ease), filter 300ms ease;
}

.product-media:hover img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-view {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(70px);
  transition: transform 300ms var(--ease);
}

.product-media:hover .quick-view,
.product-media:focus-visible .quick-view {
  transform: none;
}

.product-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
}

.product-category {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-info h3,
.cart-line h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.product-price {
  flex-shrink: 0;
  display: grid;
  justify-items: end;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-price s {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.product-summary {
  min-height: 52px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  text-wrap: pretty;
}

.card-add {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid transparent;
  background: transparent;
  font-weight: 700;
  text-align: left;
  transition: padding 230ms var(--ease), color 230ms ease;
}

.card-add span {
  font-size: 24px;
  line-height: 1;
}

.card-add:hover:not(:disabled) {
  padding-inline: 9px;
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.product-card.is-sold-out .product-media img {
  filter: grayscale(0.8);
  opacity: 0.7;
}

.image-fallback {
  object-fit: contain !important;
  padding: 28% !important;
  background: var(--paper);
}

.no-results {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.no-results > span {
  font-size: 45px;
  color: var(--blue);
}

.no-results h3 {
  font-family: var(--display);
  font-size: 32px;
}

.no-results p {
  color: var(--muted);
}

.how-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  padding: clamp(90px, 10vw, 150px) max(24px, calc((100vw - 1440px) / 2));
  background: var(--ink);
  color: var(--surface);
}

.how-intro {
  position: sticky;
  top: 130px;
  align-self: start;
}

.how-intro h2 {
  max-width: 8ch;
}

.how-intro > p:last-child {
  max-width: 42ch;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 19px;
}

.how-steps {
  list-style: none;
}

.how-steps li {
  min-height: 190px;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: start;
  gap: 26px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.how-steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
}

.how-steps h3 {
  font-family: var(--display);
  font-size: clamp(32px, 3vw, 48px);
  letter-spacing: -0.04em;
}

.how-steps p {
  max-width: 43ch;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.64);
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
}

.trust-quote blockquote {
  max-width: 8ch;
  font-family: var(--display);
  font-size: clamp(54px, 6vw, 94px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.trust-quote > p:last-child {
  max-width: 45ch;
  margin-top: 32px;
  color: var(--muted);
  font-size: 19px;
}

.trust-cards {
  display: grid;
  align-content: center;
  gap: 14px;
}

.trust-cards article {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}

.trust-cards article > span {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue);
  color: var(--surface);
  font-size: 25px;
}

.trust-cards article:nth-child(2) > span {
  background: var(--coral);
}

.trust-cards article:nth-child(3) > span {
  background: var(--lime);
  color: var(--ink);
}

.trust-cards h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.035em;
}

.trust-cards p {
  margin-top: 6px;
  color: var(--muted);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 90px;
  border-top: 1px solid var(--line-strong);
}

.faq-section h2 {
  max-width: 9ch;
}

.faq-aside {
  max-width: 35ch;
  margin-top: 28px;
  color: var(--muted);
}

.faq-list details {
  border-top: 1px solid var(--line-strong);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: transform 280ms var(--ease), background 280ms ease, color 280ms ease;
}

.faq-list details[open] summary span {
  background: var(--ink);
  color: var(--surface);
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 60ch;
  padding: 0 58px 28px 0;
  color: var(--muted);
}

.closing-section {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
  background: var(--lime);
  text-align: center;
}

.closing-section > p {
  margin-bottom: 12px;
  font-weight: 700;
}

.closing-section h2 {
  max-width: 11ch;
  font-size: clamp(62px, 9vw, 140px);
}

.closing-section h2 em {
  color: var(--blue);
}

.closing-section .button {
  margin-top: 36px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.6fr);
  gap: 54px;
  padding: 80px max(24px, calc((100vw - 1440px) / 2)) 32px;
  background: var(--ink);
  color: var(--surface);
}

.site-footer .brand {
  color: var(--surface);
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-footer h2 {
  margin-bottom: 10px;
  color: var(--lime);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer .regret-link {
  color: var(--surface);
  font-weight: 700;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 35px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

dialog {
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(11, 25, 20, 0.35);
}

dialog::backdrop {
  background: rgba(10, 25, 19, 0.62);
  backdrop-filter: blur(6px);
}

.product-dialog {
  width: min(1000px, calc(100vw - 36px));
  overflow: visible;
}

.product-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  animation: dialog-in 320ms var(--ease) both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.dialog-close,
.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: 28px;
  line-height: 1;
}

.dialog-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
}

.icon-button:hover {
  background: var(--ink);
  color: var(--surface);
}

.dialog-product-media {
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: #E9EBD9;
}

.dialog-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-product-copy {
  align-self: center;
  padding: 64px 54px 50px;
}

.dialog-product-copy h2,
.checkout-copy h2 {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.dialog-price {
  margin-top: 20px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.dialog-description {
  margin-top: 22px;
  color: var(--muted);
  text-wrap: pretty;
}

.variant-fieldset {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.variant-fieldset legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.variant-fieldset > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-fieldset label {
  position: relative;
}

.variant-fieldset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant-fieldset span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.variant-fieldset input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.variant-fieldset input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.variant-fieldset input:disabled + span {
  opacity: 0.42;
  text-decoration: line-through;
  cursor: not-allowed;
}

.stock-message {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.stock-message::before {
  content: '';
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #3A985C;
}

.stock-message[data-state="low_stock"]::before {
  background: var(--coral);
}

.stock-message[data-state="out_of_stock"]::before {
  background: var(--danger);
}

.dialog-actions {
  display: grid;
  grid-template-columns: auto 82px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.dialog-actions label {
  font-size: 14px;
  font-weight: 700;
}

.dialog-actions select {
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  text-align: center;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 700;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 19, 0.58);
  opacity: 0;
  transition: opacity 320ms ease;
  backdrop-filter: blur(5px);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(540px, 100vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 28px 30px 34px;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 420ms var(--ease);
  box-shadow: -28px 0 80px rgba(9, 25, 18, 0.2);
}

.cart-drawer.is-open .cart-backdrop {
  opacity: 1;
}

.cart-drawer.is-open .cart-panel {
  transform: none;
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--line-strong);
}

.cart-header p {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-header h2 {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: -0.055em;
  line-height: 1;
}

.shipping-progress {
  padding: 19px 0 17px;
}

.shipping-progress p {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
}

.shipping-progress > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper);
}

.shipping-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--coral));
  transition: width 400ms var(--ease);
}

.cart-lines {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.cart-line > img {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
}

.cart-line-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-line-copy > div > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.quantity-control {
  width: max-content;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.quantity-control button {
  width: 36px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 20px;
}

.quantity-control span {
  min-width: 26px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-line-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.cart-line-end button {
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.cart-empty {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 40px 20px;
  text-align: center;
}

.cart-empty > span {
  color: var(--blue);
  font-size: 56px;
}

.cart-empty h3 {
  font-family: var(--display);
  font-size: 29px;
}

.cart-empty p {
  color: var(--muted);
}

.cart-empty .button {
  margin-top: 10px;
}

.cart-footer {
  position: relative;
  padding-top: 23px;
  border-top: 2px dashed var(--line-strong);
}

.cart-footer::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -46px;
  left: -30px;
  height: 14px;
  background: radial-gradient(circle at 7px -1px, transparent 7px, var(--surface) 7.5px) 0 0 / 14px 14px repeat-x;
}

.cart-saving,
.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-saving {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.cart-subtotal {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.cart-footer > p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-dialog {
  width: min(940px, calc(100vw - 36px));
}

.checkout-dialog[open] {
  animation: dialog-in 320ms var(--ease) both;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
}

.checkout-copy {
  padding: 70px 48px;
  background: var(--lime);
}

.checkout-copy .eyebrow {
  color: var(--ink);
}

.checkout-copy > p:last-child {
  max-width: 33ch;
  margin-top: 24px;
}

#checkout-form {
  display: grid;
  gap: 17px;
  padding: 58px 52px 42px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 14px;
  font-weight: 700;
}

.form-field label span {
  color: var(--muted);
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface);
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 87, 244, 0.12);
}

.form-field [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(182, 47, 34, 0.1);
}

.form-field small {
  min-height: 16px;
  color: var(--danger);
  font-size: 12px;
}

.checkout-error {
  padding: 12px 14px;
  border: 1px solid rgba(182, 47, 34, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(182, 47, 34, 0.07);
  color: var(--danger);
  font-size: 14px;
}

.form-privacy {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.noscript {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  text-align: center;
}

.store-error body::before {
  content: 'No se pudo cargar la tienda. Escribinos por WhatsApp para recibir ayuda.';
  position: fixed;
  z-index: 1000;
  inset: 20px 20px auto;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--danger);
  color: var(--surface);
  text-align: center;
}

@media (max-width: 1180px) {
  .product-card { grid-column: span 4; }
  .product-card:first-child { grid-column: span 8; }
  .shop-tools { grid-template-columns: 1fr auto; }
  .filter-chips { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 960px) {
  :root { --container: min(100% - 36px, 820px); }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 18px;
  }

  .desktop-nav { display: none; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 80px;
    padding-block: 90px 120px;
  }

  .hero-copy { max-width: 670px; }
  .hero h1 { max-width: 10ch; }
  .hero::before { width: 720px; right: -55%; top: 72%; }
  .hero::after { top: 47%; left: 4%; width: 130px; height: 130px; }
  .hero-ticket-wrap { width: min(460px, 82vw); }

  .category-strip { grid-template-columns: repeat(2, 1fr); }
  .category-strip button:nth-child(2) { border-right: 0; }
  .category-strip button:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }

  .section-heading,
  .trust-section,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .section-heading > p { justify-self: start; }
  .product-card { grid-column: span 6; }
  .product-card:first-child { grid-column: 1 / -1; }

  .how-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-intro { position: static; }
  .how-intro h2 { max-width: 10ch; }
  .trust-quote blockquote { max-width: 10ch; }

  .site-footer { grid-template-columns: 1.3fr repeat(2, 0.7fr); }
  .site-footer > div:nth-of-type(4) { grid-column: 2; }

  .product-dialog[open] { grid-template-columns: 1fr; max-height: calc(100svh - 30px); overflow-y: auto; }
  .dialog-product-media { min-height: 390px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .dialog-product-copy { padding: 45px 34px 38px; }

  .checkout-layout { grid-template-columns: 1fr; max-height: calc(100svh - 30px); overflow-y: auto; }
  .checkout-copy { padding: 50px 48px; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 28px); }

  body { font-size: 16px; }
  .announcement { min-height: 32px; justify-content: center; padding-inline: 14px; font-size: 12px; }
  .announcement > span,
  .announcement p:last-child { display: none; }

  .site-header { min-height: 68px; }
  .brand { font-size: 22px; }
  .brand img { width: 40px; height: 40px; }
  .cart-trigger { min-height: 44px; padding-left: 13px; }
  .cart-trigger > span:first-child { display: none; }
  .cart-count { min-width: 32px; height: 32px; }

  .hero { gap: 72px; overflow-x: clip; padding-block: 70px 90px; }
  .hero h1 { font-size: clamp(52px, 15vw, 64px); line-height: 0.94; }
  .hero-lead { margin-top: 25px; font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 30px; }
  .trust-inline { display: grid; }
  .hero::before { width: 570px; border-width: 65px; right: -104%; top: 75%; }
  .hero::after { top: 49%; left: -5%; width: 105px; height: 105px; }

  .hero-ticket-wrap { width: calc(100% - 20px); }
  .live-ticket { min-height: 520px; padding: 30px 25px 40px; }
  .ticket-brand { font-size: 37px; }
  .ticket-preview-lines { gap: 17px; margin-block: 30px; font-size: 14px; }
  .ticket-total strong { font-size: 25px; }
  .hero-sticker { right: -12px; bottom: 40px; width: 86px; font-size: 14px; box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--ink); }

  .category-strip {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .category-strip::-webkit-scrollbar { display: none; }
  .category-strip button { min-width: 170px; min-height: 74px; border-bottom: 0 !important; border-right: 1px solid var(--ink) !important; }

  .shop-section,
  .trust-section,
  .faq-section { padding-block: 90px; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2,
  .how-intro h2,
  .faq-section h2 { font-size: 52px; }

  .shop-tools { display: flex; flex-direction: column; align-items: stretch; padding: 12px; }
  .filter-chips { width: 100%; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .filter-chips button { flex: 0 0 auto; }
  .sort-field { min-height: 44px; justify-content: space-between; border-top: 1px solid var(--line); border-left: 0; }
  .product-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
  .product-card,
  .product-card:first-child { grid-column: auto; }
  .product-card:first-child .product-media { aspect-ratio: 1; }
  .quick-view { transform: none; }

  .how-section { padding-block: 90px; padding-inline: 14px; }
  .how-steps li { grid-template-columns: 50px 1fr; gap: 16px; min-height: 160px; }
  .step-number { width: 44px; height: 44px; }
  .how-steps h3 { font-size: 34px; }

  .trust-cards article { grid-template-columns: 48px 1fr; padding: 23px 19px; column-gap: 14px; }
  .trust-cards article > span { width: 44px; height: 44px; border-radius: 13px; }
  .faq-list summary { min-height: 78px; font-size: 20px; }

  .closing-section { min-height: 520px; }
  .closing-section h2 { font-size: 64px; }

  .site-footer { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-top: 64px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer > div:nth-of-type(4) { grid-column: auto; }

  .product-dialog,
  .checkout-dialog { width: calc(100vw - 20px); border-radius: 22px; }
  .dialog-product-media { min-height: 310px; border-radius: 22px 22px 0 0; }
  .dialog-product-copy { padding: 38px 22px 28px; }
  .dialog-product-copy h2,
  .checkout-copy h2 { font-size: 45px; }
  .dialog-actions { grid-template-columns: 1fr 75px; }
  .dialog-actions .button { grid-column: 1 / -1; }

  .cart-panel { width: 100%; padding: 20px 16px 27px; }
  .cart-line { grid-template-columns: 76px 1fr auto; gap: 10px; }
  .cart-line > img { width: 76px; border-radius: 14px; }
  .cart-line h3 { font-size: 18px; }
  .cart-line-end strong { font-size: 14px; }
  .cart-footer::after { right: -16px; left: -16px; }

  .checkout-copy { padding: 44px 22px 34px; }
  #checkout-form { padding: 32px 22px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .live-ticket {
    opacity: 1;
    clip-path: none;
    transform: rotate(-2.5deg);
  }
}
