:root {
  --ink: #102c62;
  --olive: #153c7b;
  --cream: #fff7e2;
  --paper: #ffd028;
  --orange: #d5201d;
  --sun: #fff26a;
  --line: rgba(16, 44, 98, 0.2);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 20; background: var(--orange); color: white; padding: .65rem .9rem; border-radius: .3rem; }
.skip-link:focus { top: 1rem; }
.announcement { display: flex; min-height: 36px; align-items: center; justify-content: center; background: var(--orange); color: #fff8ed; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; padding: .35rem 1rem; }
.site-header { max-width: 1280px; min-height: 88px; margin: auto; padding: 0 4.5rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: .6rem; width: max-content; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -.05em; }
.brand-mark { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1.5px solid currentColor; border-radius: 50%; font-size: .94rem; font-style: italic; }
nav { display: flex; gap: 2.1rem; font-size: .86rem; }
nav a { border-bottom: 1px solid transparent; padding: .2rem 0; }
nav a:hover, nav a:focus-visible { border-color: var(--ink); }
.header-cta { justify-self: end; font-size: .85rem; font-weight: 600; }
.header-cta span { color: var(--orange); font-size: 1rem; margin-left: .25rem; }
.hero { max-width: 1280px; min-height: 618px; margin: 0 auto; padding: 2.3rem 4.5rem 4rem; display: grid; grid-template-columns: minmax(350px, .93fr) 1.07fr; gap: 3.3rem; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.3rem; color: var(--olive); font-family: var(--mono); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow span { display: block; width: 25px; height: 1px; background: currentColor; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.07em; line-height: .94; }
h1 { font-size: clamp(3.7rem, 6.25vw, 6.1rem); }
h2 { font-size: clamp(3rem, 5vw, 5rem); }
em { color: var(--orange); font-style: italic; font-weight: 500; }
.hero-intro { max-width: 365px; margin: 1.55rem 0 1.8rem; color: #526051; font-size: 1.05rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.45rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 1.2rem; border: 1px solid transparent; border-radius: 0; padding: .75rem 1.1rem  .75rem 1.3rem; cursor: pointer; font-size: .86rem; font-weight: 600; transition: transform .18s ease, background .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-solid { background: var(--ink); color: var(--cream); }
.button-solid:hover, .button-solid:focus-visible { background: var(--orange); }
.button span { color: var(--sun); font-size: 1.25rem; line-height: 1; }
.text-link { font-size: .88rem; font-weight: 600; }
.text-link span { margin-left: .3rem; color: var(--orange); }
.hero-notes { display: flex; gap: 1.6rem; margin-top: 3.7rem; }
.hero-notes div { display: flex; gap: .55rem; align-items: flex-start; border-left: 1px solid var(--line); padding-left: .55rem; }
.hero-notes strong { color: var(--orange); font-family: var(--mono); font-size: .67rem; font-weight: 400; }
.hero-notes span { color: #5b665b; font-size: .68rem; line-height: 1.32; }
.hero-visual { position: relative; min-height: 500px; overflow: hidden; background: #fff; }
.hero-visual::before, .hero-visual::after { display: none; }
.hero-visual img { width: 100%; height: 500px; margin: 0; object-fit: contain; object-position: center; display: block; mix-blend-mode: normal; }
.visual-caption { display: none; }
.visual-caption span { color: var(--sun); }
.stamp { display: none; }
.stamp span { position: absolute; width: 103px; font-family: var(--mono); font-size: .57rem; letter-spacing: .1em; transform: rotate(-30deg); }
.stamp b { font-family: var(--serif); font-size: 2rem; color: var(--sun); font-style: italic; }
.intro-band { display: grid; grid-template-columns: minmax(250px, 700px) auto; align-items: end; gap: 2rem; padding: 4.1rem max(4.5rem, calc((100vw - 1190px)/2)); background: var(--paper); }
.intro-band p { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.65rem); letter-spacing: -.055em; line-height: 1.1; }
.intro-band svg { width: 86px; overflow: visible; }
.intro-band path { fill: none; stroke: var(--orange); stroke-width: 2; }
.catalog-section { max-width: 1280px; margin: 0 auto; padding: 7.5rem 4.5rem; }
.catalog-intro { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(230px, .58fr); gap: 4rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2 { max-width: 480px; }
.catalog-intro > p { max-width: 350px; margin: 0 0 .25rem; color: #596558; font-size: 1rem; line-height: 1.65; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-card { display: flex; min-width: 0; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fffaec; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { position: relative; z-index: 1; transform: translateY(-5px); box-shadow: 0 12px 25px rgba(16,44,98,.12); }
.product-photo { position: relative; min-height: 205px; overflow: hidden; background: #d79b4c; }
.product-photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(16,44,98,.2)); content: ""; pointer-events: none; }
.product-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 13%; display: block; }
.crop-pandebono img { object-position: center 14%; }
.crop-bunuelos { background-image: url("assets/masa-bunuelos.webp"); background-position: center 21%; background-repeat: no-repeat; background-size: 145% auto; }
.crop-bunuelos img { opacity: 0; }
.crop-queso img { object-position: center 14%; }
.product-details { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.2rem 1.3rem; }
.product-kicker { margin: 0 0 .45rem; color: var(--orange); font-family: var(--mono); font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; }
.product-details h3 { min-height: 3rem; margin: 0; font-family: var(--serif); font-size: 1.38rem; font-weight: 500; letter-spacing: -.05em; line-height: 1.02; }
.price { margin: 1rem 0 .2rem; color: var(--ink); font-family: var(--serif); font-size: 1.65rem; font-weight: 600; letter-spacing: -.05em; }
.bulk-price { min-height: 2.7rem; margin: 0; color: #596558; font-size: .76rem; line-height: 1.42; }
.bulk-price strong { color: var(--orange); }
.product-link, .natilla-copy a { display: inline-flex; width: max-content; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1.05rem; color: var(--ink); font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.product-link span, .natilla-copy a span { color: var(--orange); font-size: .95rem; }
.product-link:hover, .product-link:focus-visible, .natilla-copy a:hover, .natilla-copy a:focus-visible { color: var(--orange); }
.natilla-heading { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(310px, 1.1fr); gap: 4rem; align-items: end; margin: 7rem 0 2.7rem; }
.natilla-heading .eyebrow { align-self: start; }
.natilla-heading h2 { font-size: clamp(2.8rem, 4.5vw, 4.3rem); }
.natilla-heading div > p { margin: 1rem 0 0; color: #596558; font-size: .95rem; }
.natilla-heading strong { color: var(--orange); font-weight: 600; }
.natilla-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.natilla-card { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "pack visual" "copy copy"; overflow: hidden; border: 1px solid var(--line); background: #fffaf0; }
.natilla-pack { position: relative; display: grid; grid-area: pack; min-height: 230px; overflow: hidden; place-items: center; background: #f7f1e5; }
.natilla-pack img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transform: scale(1.48); filter: brightness(1.04) contrast(1.03) saturate(.96); }
.flavor-visual { grid-area: visual; min-height: 230px; overflow: hidden; background: #f7f1e5; }
.flavor-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.natilla-copy { grid-area: copy; min-height: 165px; padding: 1.25rem 1.35rem 1.25rem; border-top: 1px solid var(--line); background: #fffaf0; }
.natilla-copy h3 { margin: 0 0 .45rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.natilla-copy p { display: block; margin: 0; color: #596558; font-size: .8rem; line-height: 1.45; }
.natilla-copy strong { color: var(--orange); }
.natilla-copy a { margin-top: .85rem; padding-top: 0; }
.flavor-coco .natilla-pack img { transform: scale(1.72); }
.flavor-maracuya .natilla-pack img { transform: scale(1.58); }
.flavor-cuatro .natilla-pack img { transform: scale(1.5); }
.flavor-ron .natilla-pack img { transform: scale(1.56); }
.flavor-tradicional .natilla-pack img { transform: scale(1.38); }
.flavor-arequipe .natilla-pack img { transform: scale(1.38); }
.catalog-note { margin: 1.5rem 0 0; color: #687268; font-size: .78rem; }
.process-section { padding: 6.7rem max(4.5rem, calc((100vw - 1190px)/2)); background: var(--olive); color: var(--cream); border-top: 11px solid var(--orange); }
.eyebrow-light { color: #d8ddc6; }
.process-title-wrap { display: grid; grid-template-columns: .9fr 1.2fr 1fr; gap: 2rem; align-items: end; }
.process-title-wrap .eyebrow { align-self: start; }
.process-title-wrap h2 { max-width: 490px; }
.process-title-wrap em { color: var(--sun); }
.process-title-wrap > p:last-child { max-width: 260px; margin: 0 0 .3rem; color: #d9dfd1; font-size: .95rem; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem; margin: 5rem 0 0; padding: 0; list-style: none; }
.steps li { position: relative; border-top: 1px solid rgba(245, 241, 230, .32); padding-top: 1.3rem; }
.steps span { font-family: var(--mono); color: var(--sun); font-size: .68rem; }
.steps h3 { margin: 2.4rem 0 .5rem; font-family: var(--serif); font-weight: 500; font-size: 1.75rem; letter-spacing: -.05em; }
.steps p { max-width: 270px; margin: 0; color: #d6ddcf; font-size: .9rem; }
.order-section { max-width: 1280px; margin: 0 auto; padding: 7.5rem 4.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; }
.order-copy > p:not(.eyebrow) { max-width: 420px; margin: 1.5rem 0 0; color: #596558; font-size: 1rem; line-height: 1.6; }
.order-copy .tiny-note { margin-top: 3.4rem; color: var(--orange); font-family: var(--mono); font-size: .68rem; line-height: 1.5; }
.order-form { align-self: start; background: var(--paper); padding: 2.2rem; }
label { display: block; margin-bottom: .45rem; font-family: var(--mono); font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; }
input, select, textarea { width: 100%; margin-bottom: 1.25rem; border: 0; border-bottom: 1px solid rgba(29,38,30,.4); border-radius: 0; background: transparent; color: var(--ink); padding: .45rem 0 .7rem; outline-offset: .3rem; }
textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.order-form .button { width: 100%; margin-top: .3rem; }
.form-status { min-height: 1.2rem; margin: .9rem 0 0; color: var(--olive); font-size: .83rem; }
.inline-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.inline-link:hover, .inline-link:focus-visible { color: var(--orange); }
.payment-section { background: #fffaf0; border-top: 1px solid var(--line); }
.payment-inner { max-width: 1280px; margin: 0 auto; padding: 5.5rem 4.5rem 6rem; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6rem; align-items: start; }
.payment-copy h2 { font-size: clamp(2.9rem, 4.5vw, 4.4rem); }
.payment-copy > p:last-child { max-width: 380px; margin: 1.6rem 0 0; color: #596558; line-height: 1.65; }
.payment-card { border: 1px solid var(--line); background: var(--cream); box-shadow: 10px 10px 0 var(--paper); padding: 1.6rem 2rem; }
.payment-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.payment-steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.payment-steps li:first-child { padding-top: 0; }
.payment-steps span { color: var(--orange); font-family: var(--mono); font-size: .78rem; }
.payment-steps strong { font-size: 1rem; }
.payment-steps p { margin: .3rem 0 0; color: #596558; font-size: .9rem; line-height: 1.55; }
.payment-button { width: 100%; text-align: center; }
.payment-note { margin: 1.25rem 0 .25rem; color: #596558; font-size: .85rem; line-height: 1.55; }
.install-section { border-top: 1px solid var(--line); background: var(--paper); }
.install-inner { max-width: 1280px; margin: 0 auto; padding: 5rem 4.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.install-inner h2 { font-size: clamp(2.9rem, 4.5vw, 4.4rem); }
.install-inner em { color: var(--orange); }
.install-intro { max-width: 410px; margin: 1.5rem 0 0; line-height: 1.65; }
.install-button { margin-top: 1.6rem; }
.install-button[hidden] { display: none; }
.install-steps { display: grid; gap: 1.2rem; }
.install-steps div { border-top: 1px solid var(--line); padding-top: 1rem; }
.install-steps strong { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.install-steps p { max-width: 440px; margin: .5rem 0 0; line-height: 1.6; }
.install-steps > p { margin-top: .4rem; font-size: .86rem; }
footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: end; padding: 3rem max(4.5rem, calc((100vw - 1190px)/2)); background: var(--ink); color: var(--cream); border-top: 8px solid var(--sun); }
.brand-footer { align-self: start; }
footer p { margin: 0; color: #bdc4b5; font-size: .82rem; line-height: 1.55; }
.back-top { color: var(--sun); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 850px) {
  .site-header { padding: 0 1.4rem; grid-template-columns: 1fr auto; min-height: 74px; }
  nav { display: none; }
  .hero { min-height: auto; padding: 2.2rem 1.4rem 3.4rem; grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-visual { min-height: 390px; height: 390px; }
  .hero-visual img { min-height: 350px; height: 350px; }
  .hero-notes { margin-top: 2.8rem; }
  .intro-band { grid-template-columns: 1fr; padding: 3.5rem 1.4rem; }
  .intro-band svg { justify-self: end; }
  .catalog-section, .order-section { padding: 5rem 1.4rem; grid-template-columns: 1fr; gap: 3.5rem; }
  .catalog-intro, .natilla-heading { grid-template-columns: 1fr; gap: 1.4rem; }
  .catalog-intro { margin-bottom: 2.5rem; }
  .natilla-heading { margin: 5rem 0 2.3rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-photo { min-height: 235px; }
  .natilla-grid { gap: 1rem; }
  .process-section { padding: 5rem 1.4rem; }
  .process-title-wrap { grid-template-columns: 1fr; gap: 1.4rem; }
  .steps { margin-top: 3.7rem; gap: 1.6rem; }
  .payment-inner { padding: 5rem 1.4rem; grid-template-columns: 1fr; gap: 2.5rem; }
  .install-inner { padding: 5rem 1.4rem; grid-template-columns: 1fr; gap: 2.5rem; }
  footer { grid-template-columns: 1fr; padding: 2.7rem 1.4rem; gap: 1.5rem; }
}

@media (max-width: 520px) {
  .announcement { font-size: .59rem; }
  .header-cta { font-size: .74rem; }
  .hero-notes { gap: .7rem; justify-content: space-between; }
  .hero-notes div { gap: .35rem; }
  .hero-notes strong { display: none; }
  .product-grid, .natilla-grid { grid-template-columns: 1fr; }
  .product-photo { min-height: 260px; }
  .natilla-pack, .flavor-visual { min-height: 190px; }
  .natilla-copy { min-height: 135px; }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { margin-top: 1.3rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .order-form { padding: 1.5rem; }
  .payment-card { padding: 1rem 1.2rem; box-shadow: 6px 6px 0 var(--paper); }
}

/* Storefront */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.hero .button, .wholesale .button, .order-form .button { border-radius: .65rem; }
.hero-visual {
  display: grid;
  min-height: 0;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 1.45rem;
  background: var(--ink);
  box-shadow: 0 18px 48px rgba(16, 44, 98, .16);
}
.hero-food { position: relative; aspect-ratio: 2.02; overflow: hidden; background: #704528; }
.hero-visual .hero-food img {
  position: absolute;
  top: -70%;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: initial;
}
.hero-visual figcaption { position: relative; display: grid; gap: .2rem; padding: 1.3rem 4.5rem 1.45rem 1.45rem; color: white; }
.hero-visual figcaption span { font: .68rem var(--mono); color: var(--sun); text-transform: uppercase; letter-spacing: .08em; }
.hero-visual figcaption strong { font: 500 clamp(1.35rem, 3vw, 2.25rem) var(--serif); }
.hero-visual figcaption a { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff66; border-radius: 50%; }
.category-nav { display: flex; gap: .55rem; flex-wrap: wrap; margin: 0 0 1.3rem; }
.category-nav a { display: inline-flex; min-height: 44px; align-items: center; gap: .6rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 99px; background: #fffaf0; font-weight: 600; }
.category-nav a:hover, .category-nav a:focus-visible { border-color: var(--ink); }
.category-nav span { font: .68rem var(--mono); color: var(--orange); }
#masas, #queso, #natillas, #mayoristas, #pedido { scroll-margin-top: 1.5rem; }
.product-grid { gap: 1rem; border: 0; }
.product-card, .natilla-card { border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; }
.product-details .price small { font: 600 .75rem var(--sans); }
.add-item { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 44px; width: 100%; margin-top: .85rem; padding: .35rem .75rem; border: 1px solid var(--ink); border-radius: .55rem; background: var(--ink); color: white; cursor: pointer; font-weight: 600; }
.add-item span { color: var(--sun); font-size: 1.25rem; }
.add-item:hover { background: var(--olive); }
.wholesale { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; padding: clamp(1rem, 4vw, 2.3rem); border: 1px solid var(--line); border-radius: 1rem; background: #fff1ba; }
.wholesale h2 { font-size: clamp(2rem, 5vw, 3.45rem); }
.wholesale p:last-child { max-width: 43ch; margin-bottom: 0; }
.cart-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .25rem; background: var(--paper); color: var(--ink); border-radius: 99px; font: 600 .75rem var(--sans); }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem .65rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cart-item-title { min-width: 0; }
.cart-item-title small { display: block; color: #526051; }
.cart-qty { display: flex; align-items: center; gap: .25rem; }
.cart-qty button, .cart-remove { min-height: 44px; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); background: #fffaf0; cursor: pointer; }
.cart-qty button { min-width: 44px; }
.order-form .cart-qty input { width: 3.6rem; min-height: 44px; margin: 0; padding: .2rem; text-align: center; appearance: textfield; }
.cart-qty input::-webkit-inner-spin-button { appearance: none; }
.cart-remove { justify-self: end; font-size: .82rem; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 1.15rem 0 .25rem; }
.cart-total strong:last-child { font-size: 1.4rem; }
.cart-note { margin: 0 0 1rem; font-size: .85rem; color: #526051; }
.cart-feedback { position: fixed; z-index: 15; right: 1rem; bottom: 1rem; max-width: calc(100vw - 2rem); margin: 0; padding: .65rem 1rem; border-radius: .65rem; color: white; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.cart-feedback.visible { opacity: 1; }
.mobile-nav { display: none; }
@media (max-width: 850px) {
  body { padding-bottom: calc(59px + env(safe-area-inset-bottom)); }
  .mobile-nav { position: fixed; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; inset: auto 0 0; padding: .25rem .4rem calc(.25rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); box-shadow: 0 -4px 20px #102c6214; }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 48px; text-align: center; font-weight: 600; }
  .cart-feedback { bottom: calc(65px + env(safe-area-inset-bottom)); }
  .hero-notes { display: none; }
  .hero { gap: 1.5rem; padding-bottom: 2rem; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.95rem, 10.8vw, 3.7rem); }
  .hero-intro { margin: 1rem 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .product-photo { min-height: 130px; }
  .product-details { padding: .65rem; }
  .product-details h3 { min-height: 0; font-size: 1.15rem; }
  .product-details .add-item { margin-top: auto; }
  .cart-items li { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Portada en movimiento */
.hero-slide { margin: 0; animation: reveal-slide .4s ease both; }
.hero-carousel .hero-food { aspect-ratio: 16 / 9; }
.hero-carousel .hero-food img,
.hero-carousel .hero-food video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-carousel .hero-food video { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.hero-carousel .hero-food .is-playing { opacity: 1; }
.hero-carousel figcaption { padding-bottom: .85rem; }
.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid #ffffff30; padding: .15rem .85rem; }
.hero-dots { display: flex; }
.hero-dots button, .hero-toggle { min-height: 44px; border: 0; background: transparent; color: white; cursor: pointer; }
.hero-dots button { display: grid; width: 44px; place-items: center; }
.hero-dots button span { width: 16px; height: 4px; border-radius: 6px; background: #aab6cd; }
.hero-dots button[aria-current] span { background: var(--sun); }
.hero-toggle { display: flex; min-width: 44px; align-items: center; gap: .45rem; padding: 0 .45rem; font-size: .8rem; }
.hero-carousel :focus-visible { outline-color: var(--sun); outline-offset: -2px; }
.hero-status { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); }
#bunuelos, #pandebono { scroll-margin-top: 1.5rem; }
@keyframes reveal-slide { from { opacity: .25; } to { opacity: 1; } }
@media (max-width: 520px) {
  .hero-carousel { border-radius: 1rem; }
  .hero-carousel figcaption { padding: .8rem 3.8rem .8rem 1rem; }
  .hero-carousel figcaption a { right: .65rem; }
  .hero-controls { padding-inline: .45rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; } }

/* Catálogo y revisión de pedidos */
.catalog-tools { margin-bottom: 1.5rem; }
.catalog-search { max-width: 600px; margin: 0 0 1rem; }
.catalog-search label { font: 600 .95rem var(--sans); text-transform: none; letter-spacing: 0; }
.catalog-search > div { position: relative; }
.catalog-search input { margin: 0; min-height: 52px; padding: .75rem 3.25rem .75rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: #fffdf5; }
.catalog-search input::-webkit-search-cancel-button { appearance: none; }
.catalog-search button { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.category-nav button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink); cursor: pointer; font-weight: 600; }
.category-nav button[aria-pressed="true"] { color: white; background: var(--ink); }
.category-nav button[aria-pressed="true"] span { color: var(--sun); }
.search-status { font-size: .85rem; color: #526051; margin: 0; }
.search-empty { padding: 2rem; border: 1px dashed var(--line); text-align: center; border-radius: 1rem; margin-top: 1rem; }
.product-detail-button { display: block; text-align: left; padding: .5rem 0; min-height: 44px; border: 0; color: var(--ink); font-size: .8rem; background: transparent; cursor: pointer; }
.product-detail-button:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 8; background: var(--cream); border-bottom: 1px solid var(--line); }
#inicio, #catalogo, #masas, #queso, #natillas, #mayoristas, #pedido, #bunuelos, #pandebono, #pago, #ayuda { scroll-margin-top: 100px; }
.floating-order { position: fixed; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; right: 1.2rem; bottom: 1.2rem; min-height: 56px; border: 1px solid #ffffff55; padding: .7rem 1.1rem; border-radius: .9rem; background: var(--ink); color: white; box-shadow: 0 8px 28px #102c6230; cursor: pointer; }
.floating-order > span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.has-order .cart-feedback { bottom: 5.6rem; }
.order-summary { align-self: start; border-radius: 1rem; background: var(--paper); padding: 2rem; }
.order-summary h3 { margin: 0; font: 500 2.2rem/1.08 var(--serif); letter-spacing: -.04em; }
.order-summary > strong { display: block; font-size: 1.8rem; margin: 1rem 0; }
.order-summary button { width: 100%; border-radius: .55rem; }
dialog { color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 1.15rem; padding: 1.5rem; width: min(600px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #071b3eb0; backdrop-filter: blur(4px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-header h2 { font-size: 2.6rem; }
.dialog-header .eyebrow { margin-bottom: .5rem; }
.dialog-header > button { flex-shrink: 0; align-self: flex-start; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 1.65rem; background: transparent; cursor: pointer; }
#cart-dialog { margin: 0 0 0 auto; border-radius: 1rem 0 0 1rem; height: 100dvh; max-height: 100dvh; width: min(560px, 100%); max-width: 100vw; padding: 1.5rem; }
#cart-dialog .order-form { padding: 0; background: transparent; }
.continue-shopping { padding: .8rem; width: 100%; min-height: 44px; margin-top: 1rem; border: 1px solid var(--line); border-radius: .55rem; background: transparent; color: var(--ink); cursor: pointer; }
#detail-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
#detail-description { color: #526051; }
.detail-presentation { background: #fff0b7; border-radius: .5rem; padding: .8rem; font-size: .9rem; }
.price-table { border-collapse: collapse; width: 100%; text-align: left; margin: 1.3rem 0; }
.price-table caption { text-align: left; font-weight: 600; padding-bottom: .5rem; }
.price-table td, .price-table th { border-bottom: 1px solid var(--line); padding: .55rem .3rem; font-size: .9rem; }
.price-table th { color: #526051; font-weight: 500; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
#detail-quantity { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .5rem; max-width: 150px; margin-bottom: 0; }
.detail-estimate { font-size: 1.1rem; font-weight: 600; }
#detail-form .button { width: 100%; border-radius: .55rem; }
.detail-help { display: block; margin-top: 1rem; font-size: .85rem; }
.help-section { max-width: 1280px; margin: auto; padding: 5rem 4.5rem; display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; }
.help-section h2 { font-size: clamp(2.8rem, 4.6vw, 4.3rem); }
.help-questions { border-top: 1px solid var(--line); }
.help-questions details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.help-questions summary { min-height: 44px; cursor: pointer; font-weight: 600; padding: .5rem 0; }
.help-questions p { color: #526051; margin: .5rem 0 1rem; }
@media (max-width: 850px) {
  .help-section { grid-template-columns: 1fr; padding: 3rem 1.4rem; gap: 2rem; }
  .floating-order { left: .7rem; right: .7rem; bottom: calc(65px + env(safe-area-inset-bottom)); min-height: 50px; }
  body.has-order { padding-bottom: calc(119px + env(safe-area-inset-bottom)); }
  .has-order .cart-feedback { bottom: calc(127px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .category-nav { gap: .35rem; }
  .category-nav button { padding-inline: .7rem; font-size: .85rem; }
  .category-nav button span { display: none; }
  #cart-dialog { padding: 1rem; border-radius: 0; }
  .help-section { padding-block: 2.5rem; }
  .cart-items li { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Favoritos y enlaces de producto */
.product-card, .natilla-card { position: relative; }
.favorite-button { position: absolute; z-index: 2; top: .65rem; right: .65rem; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fffdf5; box-shadow: 0 2px 8px #102c6218; cursor: pointer; }
.favorite-button svg { width: 23px; height: 23px; fill: transparent; stroke: currentColor; stroke-width: 1.7; }
.favorite-button[aria-pressed="true"] { color: var(--orange); }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.favorites-note { font-size: .8rem; color: #526051; margin: .35rem 0 0; }
.share-product { margin: .5rem 0 1rem; }
.share-product > button { min-height: 44px; border: 1px solid var(--line); border-radius: .5rem; padding: .55rem .8rem; color: var(--ink); background: transparent; cursor: pointer; }
#share-status { font-size: .85rem; color: #526051; margin: .4rem 0; }
#product-share-url { padding: .6rem; font-size: .85rem; border: 1px solid var(--line); border-radius: .5rem; }
