
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --yellow: #ffd21f;
  --yellow2: #ffdf55;
  --ink: #171717;
  --muted: #6f6f6f;
  --cream: #fffdf6;
  --line: #e9e6dc;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 16px 45px rgba(23, 23, 23, .09);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  overflow-x: clip;
}

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* BARRA SUPERIOR */
.announcement {
  text-align: center;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 10px 16px;
}

/* ENCABEZADO */
.site-header {
  min-height: 94px;
  padding: 0 clamp(20px, 6vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 246, .95);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-brand .brand-logo {
  width: 62px;
  height: 62px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 3px 3px 0 var(--ink);
}

.brand strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .06em;
  font-size: 15px;
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a:hover {
  opacity: .6;
}

.cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cart-button b {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 11px;
  flex-shrink: 0;
}

/* PORTADA */
.hero {
  padding: clamp(52px, 8vw, 110px) clamp(22px, 9vw, 140px) 76px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 45px;
  align-items: center;
  overflow: hidden;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .17em;
  font-weight: 700;
  color: #777;
  display: block;
  margin-bottom: 16px;
}

.hero h1,
.section-heading h2,
.how-intro h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .99;
  letter-spacing: -.065em;
  margin: 0 0 24px;
}

.hero h1 em,
.section-heading h2 em {
  font-style: normal;
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3px;
  right: -4px;
  bottom: 3px;
  height: 25%;
  background: var(--yellow);
  transform: rotate(-1.5deg);
}

.hero-copy > p {
  max-width: 490px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  background: var(--yellow);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 15px 20px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.primary-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.hero-note {
  display: inline-block;
  width: fit-content;
  max-width: 340px;
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.hero-art {
  height: 390px;
  position: relative;
  display: grid;
  place-items: center;
}

.sun-disc {
  position: absolute;
  width: min(32vw, 330px);
  height: min(32vw, 330px);
  min-width: 245px;
  min-height: 245px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
}

.hero-food {
  font-size: clamp(130px, 18vw, 210px);
  position: relative;
  filter: drop-shadow(8px 12px 0 rgba(23, 23, 23, .14));
  transform: rotate(-13deg);
  z-index: 1;
}

.hero-food-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 350px;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  margin: 0 auto;
}

.floating-chip {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.chip-one {
  top: 36px;
  right: 0;
  transform: rotate(5deg);
}

.chip-two {
  bottom: 39px;
  left: 0;
  transform: rotate(-5deg);
}

.hero-star {
  position: absolute;
  font-size: 32px;
}

.star-one {
  left: 12%;
  top: 35px;
}

.star-two {
  right: 9%;
  bottom: 53px;
  font-size: 22px;
}

/* CATÁLOGO */
.catalog-section {
  padding: 70px clamp(20px, 7vw, 105px) 90px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 0;
}

.section-heading h2 em::after {
  content: "";
  display: block;
  height: 8px;
  background: var(--yellow);
  margin-top: -8px;
  position: relative;
  z-index: 0;
}

.section-heading > p {
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 4px;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.type-switch {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.type-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.type-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  max-width: 310px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--cream);
}

.search-box span {
  font-size: 24px;
  color: #888;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  padding: 12px 0;
}

.category-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 22px 0 18px;
  scrollbar-width: thin;
}

.category-tab {
  white-space: nowrap;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.category-tab.active {
  background: #ffcc00;
  color: var(--ink);
}

.results-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0 18px;
}

/* TARJETAS DE PRODUCTOS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  height: 220px;
  background: #ffcc00;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image::before {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  border: 1px dashed rgba(23, 23, 23, .16);
  pointer-events: none;
}

.product-image:has(img.product-photo) {
  height: 260px;
  background: #ffcc00;
}

.product-image img.product-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  margin: 0;
  border: 0;
  transform: none;
  box-sizing: border-box;
}

.product-emoji {
  font-size: 77px;
  position: relative;
  filter: drop-shadow(4px 6px 0 rgba(23, 23, 23, .10));
  transform: rotate(-7deg);
}

.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--ink);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.product-category {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
}

.product-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  margin: 8px 0 7px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.product-info p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  min-width: 0;
  white-space: nowrap;
}

/* BOTÓN AGREGAR */
.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-width: 94px;
  max-width: 100%;
  height: 36px;
  padding: 0 12px;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 1.5px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.add-button:hover {
  background: var(--ink);
  color: #fff;
}

/* ESTADO SIN RESULTADOS */
.empty-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 15px;
  color: var(--muted);
}

.empty-results strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 8px;
}

/* CÓMO PEDIR */
.how-section {
  padding: 80px clamp(22px, 9vw, 140px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 10%;
  align-items: start;
}

.how-intro h2 {
  font-size: clamp(38px, 4.7vw, 58px);
}

.how-intro > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
}

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step > span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #9a8b49;
}

.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  margin: 0 0 8px;
}

.step p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
}

/* PIE DE PÁGINA */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 36px clamp(20px, 7vw, 105px);
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-brand .brand-mark {
  border-color: var(--yellow);
  box-shadow: 3px 3px 0 var(--yellow);
}

.footer-brand small,
.site-footer p,
.site-footer > small {
  color: #aaa;
}

.site-footer p {
  font-size: 11px;
  flex: 1;
  min-width: 0;
}

.footer-whatsapp {
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
}

.site-footer > small {
  width: 100%;
  font-size: 10px;
}

/* CARRITO Y FORMULARIO DEL PEDIDO */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  z-index: 39;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(480px, 100%);
  max-width: 100vw;
  overflow-x: clip;
  overflow-y: hidden;
  background: #fffdf6;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .14);
  transform: translateX(105%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer > * {
  min-width: 0;
  max-width: 100%;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.drawer-header > div {
  min-width: 0;
}

.drawer-header .eyebrow {
  margin-bottom: 5px;
}

.drawer-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  font-size: 27px;
  overflow-wrap: anywhere;
}

.drawer-header h2 span {
  font-size: 14px;
  color: var(--muted);
}

.icon-button {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}

.cart-items {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
}

.cart-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  width: 40px;
  height: 40px;
  background: #fff0b0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 23px;
}

.cart-row > div {
  min-width: 0;
}

.cart-row h4 {
  font-size: 13px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}

.cart-row .unit-price {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.quantity-controls button {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.quantity-controls span {
  font-size: 12px;
  font-weight: 700;
}

.cart-row-total {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-empty {
  display: none;
  text-align: center;
  padding: 42px 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-empty.show {
  display: block;
}

.cart-empty > span {
  font-size: 44px;
}

.cart-empty h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 12px 0 7px;
}

.cart-empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.text-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.checkout {
  flex: 0 1 auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  max-height: 53%;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overscroll-behavior: contain;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}

.total-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.total-line strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fine-print {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin: 6px 0 16px;
  overflow-wrap: anywhere;
}

.checkout > label {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  margin: 13px 0;
  overflow-wrap: anywhere;
}

.checkout input[type="date"],
.checkout textarea,
.checkout input[type="text"],
.checkout input[type="tel"],
.checkout input[type="number"],
.checkout select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  background: #fff;
  outline-color: var(--yellow);
  font-size: 12px;
  box-sizing: border-box;
}

.checkout input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
}

.checkout textarea {
  resize: vertical;
  overflow-wrap: anywhere;
}

.checkout fieldset {
  border: 0;
  padding: 0;
  margin: 14px 0;
  min-width: 0;
  width: 100%;
}

.checkout legend {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  max-width: 100%;
}

.radio-option input {
  accent-color: #171717;
  flex-shrink: 0;
}

.checkout-button {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 8px 0 10px;
  padding-left: 12px;
  padding-right: 12px;
  gap: 8px;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.checkout > small {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

/* AVISOS */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 12px;
  z-index: 60;
  transition: all .2s;
  text-align: center;
  overflow-wrap: anywhere;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* TABLET */
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .site-header {
    padding: 0 4vw;
  }

  .hero-art {
    height: 330px;
  }

  .floating-chip {
    font-size: 10px;
  }

  .how-section {
    gap: 6%;
  }

  .hero-food-image {
    max-width: 310px;
    max-height: 290px;
  }
}

/* MÓVILES */
@media (max-width: 700px) {
  .site-header {
    min-height: 78px;
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .desktop-nav {
    display: none;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .footer-brand .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 10px;
  }

  .cart-button {
    padding: 8px 10px;
    font-size: 11px;
    gap: 6px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 23px 56px;
    gap: 12px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-art {
    height: 270px;
    margin: 0 5px;
    min-width: 0;
  }

  .sun-disc {
    min-width: 215px;
    min-height: 215px;
    width: 215px;
    height: 215px;
  }

  .hero-food {
    font-size: 150px;
  }

  .hero-food-image {
    max-width: 260px;
    max-height: 220px;
  }

  .chip-one {
    right: 1%;
    top: 13px;
  }

  .chip-two {
    left: 0;
    bottom: 13px;
  }

  .hero-note {
    max-width: 100%;
    font-size: 15px;
    padding: 12px 14px;
    margin-top: 14px;
  }

  .catalog-section {
    padding: 54px 18px 65px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 37px;
  }

  .section-heading > p {
    margin-top: 14px;
  }

  .catalog-controls {
    gap: 12px;
  }

  .type-switch {
    width: 100%;
    gap: 6px;
  }

  .type-btn {
    padding: 9px 11px;
    font-size: 11px;
  }

  .search-box {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 1 1 100%;
  }

  .category-tabs {
    padding-top: 16px;
  }

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

  .product-image {
    height: 160px;
  }

  .product-image:has(img.product-photo) {
    height: 200px;
  }

  .product-image img.product-photo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center;
  }

  .product-emoji {
    font-size: 60px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 15px;
  }

  .product-info p {
    font-size: 10px;
  }

  .product-bottom {
    gap: 5px;
  }

  .product-price {
    font-size: 14px;
  }

  .add-button {
    min-width: 0;
    width: auto;
    max-width: 100%;
    height: 32px;
    padding: 0 8px;
    gap: 3px;
    font-size: 11px;
    flex-shrink: 1;
  }

  .product-badge {
    font-size: 8px;
    left: 8px;
    top: 8px;
  }

  .how-section {
    grid-template-columns: minmax(0, 1fr);
    padding: 60px 23px;
    gap: 28px;
  }

  .how-intro h2 {
    font-size: 48px;
  }

  .step {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 12px;
  }

  .site-footer {
    gap: 16px;
    padding: 30px 22px;
  }

  .site-footer p {
    order: 3;
    flex-basis: 100%;
    margin: 0;
  }

  .footer-whatsapp {
    margin-left: auto;
  }

  /* PANEL DEL PEDIDO EN TELÉFONOS */
  .cart-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    overflow-x: clip;
    overflow-y: hidden;
    transform: translateX(100%);
  }

  .cart-drawer.open {
    transform: translateX(0);
  }

  .drawer-header {
    flex-shrink: 0;
    gap: 8px;
    padding-bottom: 14px;
  }

  .drawer-header h2 {
    font-size: 23px;
  }

  .cart-items {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .cart-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .cart-thumb {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .cart-row-total {
    font-size: 10px;
  }

  .checkout {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 55%;
    padding-top: 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .checkout > label {
    margin: 10px 0;
  }

  .checkout input[type="date"],
  .checkout textarea,
  .checkout input[type="text"],
  .checkout input[type="tel"],
  .checkout input[type="number"],
  .checkout select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px;
  }

  .checkout textarea {
    resize: vertical;
  }

  .radio-option {
    margin-right: 8px;
    font-size: 11px;
  }

  .total-line strong {
    font-size: 21px;
  }

  .checkout-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 6px;
    padding: 12px 10px;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* TELÉFONOS MUY ESTRECHOS */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 46px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-info {
    padding: 9px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-info p {
    font-size: 9px;
  }

  .product-bottom {
    gap: 4px;
  }

  .product-price {
    font-size: 12px;
  }

  .add-button {
    height: 29px;
    padding: 0 6px;
    gap: 2px;
    font-size: 10px;
  }

  .cart-button span {
    max-width: 66px;
    overflow: hidden;
    white-space: nowrap;
  }

  .hero-food-image {
    max-width: 235px;
    max-height: 205px;
  }

  .cart-drawer {
    padding: 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .drawer-header h2 {
    font-size: 21px;
  }

  .cart-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .cart-thumb {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .cart-row h4 {
    font-size: 12px;
  }

  .cart-row-total {
    font-size: 9px;
  }

  .total-line {
    font-size: 12px;
  }

  .total-line strong {
    font-size: 19px;
  }

  .checkout-button {
    font-size: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* CORRECCIÓN ADICIONAL DEL ANCHO DEL PANEL Y SUS CAMPOS */
@media (max-width: 700px) {
  .cart-drawer,
  .cart-drawer * {
    box-sizing: border-box;
  }

  .cart-drawer .checkout,
  .cart-drawer .checkout > *,
  .cart-drawer .checkout label,
  .cart-drawer .checkout fieldset,
  .cart-drawer .checkout input,
  .cart-drawer .checkout textarea,
  .cart-drawer .checkout select,
  .cart-drawer .checkout button {
    min-width: 0;
    max-width: 100%;
  }

  .cart-drawer .checkout input[type="date"] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .cart-drawer .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cart-drawer .total-line {
    flex-wrap: wrap;
  }
}

/* ACCESIBILIDAD: REDUCIR ANIMACIONES */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =====================================
   CLUB FRYDIE
   ===================================== */

.club-section {
  padding: 76px clamp(20px, 7vw, 105px);
  background: #fff9df;
  border-top: 1px solid var(--line);
}

.club-card {
  max-width: 1050px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
}

.club-eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.club-card > h2 {
  margin: 0 0 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.club-card > h2 span {
  background: var(--yellow);
  padding: 0 5px;
}

.club-description {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.club-rewards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.club-reward {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}

.club-reward-icon {
  font-size: 26px;
}

.club-reward strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
}

.club-reward > span:not(.club-reward-icon) {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.club-reward small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.club-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.club-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .15s;
}

.club-button:hover {
  transform: translateY(-2px);
}

.club-button-secondary {
  background: #fff;
}

.club-form-area,
.club-points-area {
  margin-top: 26px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}

.club-form-area[hidden],
.club-points-area[hidden],
.club-account-actions[hidden] {
  display: none !important;
}

.club-form-area h3,
.club-points-area h3 {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 23px;
}

.club-form-area > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#club-form {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.club-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.club-field label {
  font-size: 12px;
  font-weight: 700;
}

.club-field input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #d8d4c8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.club-field input:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.club-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.club-submit {
  width: fit-content;
  min-width: 160px;
  margin-top: 4px;
}

.club-text-button {
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.club-message {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.club-welcome {
  color: var(--muted);
  font-size: 12px;
}

.club-balance-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 22px 0;
  padding: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--yellow);
}

.club-balance-card > span {
  font-size: 12px;
  font-weight: 700;
}

.club-balance-card strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
}

.club-points-info {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.club-footer-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 700px) {
  .club-section {
    padding: 48px 18px 60px;
  }

  .club-card {
    padding: 22px 17px;
    border-radius: 18px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .club-rewards {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .club-reward {
    padding: 16px;
  }

  .club-account-actions {
    flex-direction: column;
  }

  .club-account-actions .club-button {
    width: 100%;
  }

  .club-submit {
    width: 100%;
  }

  .club-form-area,
  .club-points-area {
    padding: 18px 14px;
  }
}


/* CLUB FRYDIE — RECOMPENSAS CANJEABLES */
.club-redeem-area {
  margin: 26px 0 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.club-redeem-area h4 {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
}
.club-redeem-intro, .club-redeem-loading {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.club-rewards-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.club-redeem-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.club-redeem-icon { font-size: 24px; }
.club-redeem-card strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
}
.club-redeem-card > span:not(.club-redeem-icon) {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
}
.club-redeem-button {
  width: 100%;
  padding: 10px 12px;
  min-height: 40px;
  font-size: 11px;
}
.club-redeem-button:disabled { opacity: .55; cursor: wait; }
.club-redeem-error { color: #a12626; font-size: 12px; }
@media (max-width: 700px) {
  .club-rewards-list { grid-template-columns: 1fr; }
  .club-redeem-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; }
  .club-redeem-card .club-redeem-icon { grid-row: span 2; }
  .club-redeem-card > span:not(.club-redeem-icon) { grid-column: 2; }
  .club-redeem-button { grid-column: 1 / -1; }
}


/* ACCESO A CLUB FRYDIE JUNTO AL CATÁLOGO EN MÓVILES */
.club-hero-button {
  display: none;
}

@media (max-width: 700px) {
  .hero-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions > .primary-button,
  .hero-actions > .club-hero-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 12px 8px;
    gap: 7px;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }

  .club-hero-button {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--yellow);
    font-weight: 700;
    box-shadow: 4px 4px 0 var(--yellow);
    transition: transform .15s, box-shadow .15s;
  }

  .club-hero-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--yellow);
  }

  .hero-actions > .hero-note {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
  }
}


/* UBICACIÓN DE DELIVERY — añadido para la prueba de checkout */
.delivery-location {
  margin: 14px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf2;
  min-width: 0;
}

.delivery-location[hidden] { display: none !important; }

.delivery-location h4 {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

.delivery-location label {
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
}

.delivery-location textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 400;
  resize: vertical;
  outline-color: var(--yellow);
}

.location-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.location-button:disabled { opacity: .65; cursor: wait; }
.location-help, .location-status {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.location-help { color: var(--muted); }
.location-status { color: var(--ink); font-weight: 700; }


/* Asterisco rojo para campos obligatorios del checkout */
.required-asterisk { color: #dc2626; font-weight: 800; }
