/* ==========================================================
   ESMIEL · repostería artesanal

   ÍNDICE
    1. Variables y base
    2. Botones
    3. Header y navegación
    4. Hero
    5. Secciones (títulos, ondas)
    6. Categorías
    7. Catálogo / productos
    8. Cómo pedir (pasos, entregas, estaciones)
    9. Nosotros
   10. Formularios
   11. Opiniones y FAQ
   12. Contacto y footer
   13. Páginas legales
   14. Elementos flotantes (WhatsApp, carrito, toast, modal)
   15. Animaciones al hacer scroll
   16. Responsivo (de pantallas grandes a pequeñas)
   17. Dispositivos táctiles y accesibilidad
   ========================================================== */

/* ---------- 1. Variables y base ---------- */
:root {
  color-scheme: light;
  --pink-50: #fff0f6;
  --pink-100: #ffe0ee;
  --pink-200: #ffc9df;
  --pink-300: #ffb6d5;
  --pink-400: #ff8fbc;
  --cherry: #e63977;
  --cherry-dark: #c42a62;
  --cream: #fff8e7;
  --choco: #5b3a29;
  --choco-soft: #8a6552;
  --mint: #d6f3f7;
  --honey: #e3b55a;
  --honey-dark: #b98a2e;
  --white: #fff;
  --wa: #25d366;
  --wa-dark: #1ca853;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(230, 57, 119, 0.15);
  --shadow-sm: 0 4px 14px rgba(230, 57, 119, 0.12);

  --font-title: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Quicksand", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

/* El desplazamiento suave lo hace js/app.js (con compensación del header fijo) */
html { scroll-behavior: auto; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: rgba(230, 57, 119, .15);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--choco);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--cherry); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; color: var(--choco); }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.container--narrow { width: min(760px, 92%); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--cherry); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 2. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 3px solid transparent;
  font-family: var(--font-title); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--cherry); color: #fff; box-shadow: 0 6px 0 var(--cherry-dark); }
.btn--primary:hover { box-shadow: 0 9px 0 var(--cherry-dark); }
.btn--ghost { background: #fff; color: var(--cherry); border-color: var(--cherry); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 0 var(--wa-dark); }
.btn--whatsapp:hover { box-shadow: 0 9px 0 var(--wa-dark); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.link-btn { background: none; border: 0; color: var(--choco-soft); text-decoration: underline; padding: .5rem; display: block; margin: .25rem auto 0; }
.icon-btn { background: var(--pink-100); border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; display: grid; place-items: center; padding: 0; color: var(--choco); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--pink-200); }

/* ---------- 3. Header y navegación ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 3px dotted var(--pink-300);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo__img { height: 64px; width: auto; transition: transform .3s; }
.logo:hover .logo__img { transform: scale(1.05); }

.nav { display: flex; gap: 1.4rem; }
.nav a {
  text-decoration: none; color: var(--choco); font-weight: 700; padding: .3rem .1rem; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px;
  background: var(--cherry); border-radius: 3px; transition: width .25s;
}
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: .6rem; }

.cart-btn {
  position: relative; background: var(--pink-100); border: 0; width: 48px; height: 48px;
  border-radius: 50%; color: var(--cherry); display: grid; place-items: center; transition: transform .2s;
}
.cart-btn__icon { width: 24px; height: 24px; }
.cart-btn:hover { transform: scale(1.1) rotate(-6deg); }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--cherry); color: #fff; border-radius: 999px; font-size: .78rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.25); } }

.burger {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--pink-100);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 22px; height: 3px; background: var(--cherry); border-radius: 3px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--pink-100) 0%, var(--pink-200) 55%, var(--pink-300) 100%);
  padding: 3.5rem 0 7rem;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; position: relative; z-index: 2; }
.badge {
  display: inline-block; background: #fff; color: var(--cherry); font-weight: 700;
  padding: .4rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: .95rem;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); margin-top: .8rem; }
.hl {
  color: var(--cherry); display: inline-block; position: relative;
}
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 14px; z-index: -1;
  background: rgba(255, 255, 255, .8); border-radius: 10px; transform: rotate(-1deg);
}
.hero__lead { font-size: 1.15rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 1.2rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 700; font-size: .95rem; }
.hero__points li { display: flex; align-items: center; gap: .45rem; }
.hero__points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cherry); }

.hero__art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.blob {
  position: absolute; inset: 6%; background: #fff; opacity: .85;
  border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
  animation: morph 9s ease-in-out infinite;
  box-shadow: var(--shadow);
}
@keyframes morph {
  50% { border-radius: 40% 60% 42% 58% / 58% 42% 58% 42%; transform: rotate(6deg); }
}
.hero__logo { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }

.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; }

/* ---------- 5. Secciones (títulos, ondas) ---------- */
.section { padding: 5rem 0; position: relative; }
.section--white { background: #fff; }
.section--pink { background: var(--pink-50); }
.section--cream { background: var(--cream); }

/* Borde ondulado arriba de la sección (--wave = color de la sección anterior) */
.section--wave { padding-top: 6.2rem; }
.section--wave::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 48px; pointer-events: none;
  background: var(--wave, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-120 22-240 22-360 6S840 2 720 12 480 40 360 38 120 24 0 20z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-120 22-240 22-360 6S840 2 720 12 480 40 360 38 120 24 0 20z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.section__title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); text-align: center; }
.section__title::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 4px;
  background: var(--cherry); margin: .55rem auto 0;
}
.section__title--left { text-align: left; }
.section__title--left::after { margin-left: 0; }
.section__sub { text-align: center; color: var(--choco-soft); font-weight: 600; margin-bottom: 2rem; }
.note { font-size: .9rem; color: var(--choco-soft); text-align: center; margin-top: 1.2rem; }

/* ---------- 6. Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.cat {
  position: relative; display: flex; flex-direction: column; text-align: left; overflow: hidden;
  background: var(--c); border: 3px solid #fff; border-radius: var(--radius);
  padding: 1rem 1rem .9rem; box-shadow: var(--shadow-sm); color: var(--choco);
  cursor: pointer; transition: transform .25s, box-shadow .25s;
  font-family: inherit;
}
.cat::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 96px; height: 96px;
  border-radius: 50%; background: rgba(255, 255, 255, .45); transition: transform .4s;
  pointer-events: none;
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat:hover::after { transform: scale(1.6); }
.cat__top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .9rem; }
.cat__icon {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--cherry);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background .25s, color .25s;
}
.cat__icon svg { width: 26px; height: 26px; }
.cat:hover .cat__icon { background: var(--cherry); color: #fff; }
.cat__num { font-family: var(--font-title); font-weight: 600; font-size: .85rem; letter-spacing: .08em; color: var(--choco-soft); }
.cat { min-width: 0; }
.cat__name { position: relative; z-index: 1; font-family: var(--font-title); font-weight: 600; font-size: 1.12rem; display: block; margin-bottom: .2rem; color: var(--choco); line-height: 1.2; }
.cat__desc { position: relative; z-index: 1; font-size: .84rem; color: var(--choco-soft); display: block; font-weight: 600; line-height: 1.3; }
.cat__foot { position: relative; z-index: 1; margin-top: auto; padding-top: .9rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cat__count { font-size: .78rem; font-weight: 700; color: var(--choco); }
.cat__arrow {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .75); color: var(--choco);
  display: grid; place-items: center; flex: none; transition: transform .25s, background .25s, color .25s;
}
.cat__arrow svg { width: 15px; height: 15px; }
.cat:hover .cat__arrow { transform: translateX(3px); background: #fff; color: var(--cherry); }

/* ---------- 7. Catálogo / productos ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.tab {
  background: #fff; border: 2px solid var(--pink-300); color: var(--choco);
  padding: .5rem 1.1rem; border-radius: 999px; font-weight: 700; transition: all .2s;
}
.tab:hover { background: var(--pink-100); }
.tab[aria-selected="true"] { background: var(--cherry); border-color: var(--cherry); color: #fff; transform: scale(1.05); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  border: 3px solid transparent; transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: pop .4s both;
}
.card:hover { transform: translateY(-6px); border-color: var(--pink-300); box-shadow: var(--shadow); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }

.card__media {
  position: relative; aspect-ratio: 4 / 3; background: var(--c, var(--pink-100));
  display: grid; place-items: center; overflow: hidden;
}
.card__media::before, .card__media::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.55);
}
.card__media::before { width: 120px; height: 120px; top: -35px; left: -30px; }
.card__media::after { width: 80px; height: 80px; bottom: -25px; right: -15px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.card__media img.card__ph { object-fit: contain; padding: 10%; opacity: .9; transition: transform .3s; }
.card:hover .card__media img.card__ph { transform: scale(1.06); }
.card__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--cherry); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px;
}

.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__title { font-size: 1.25rem; margin: 0; }
.card__desc { font-size: .95rem; color: var(--choco-soft); margin: 0; flex: 1; }
.card__price { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; color: var(--cherry); }
.card__select, .qty { border: 2px solid var(--pink-300); border-radius: 12px; background: var(--pink-50); }
.card__select { padding: .5rem .7rem; width: 100%; font-weight: 600; }
.card__row { display: flex; align-items: center; gap: .6rem; }
.qty { display: inline-flex; align-items: center; overflow: hidden; }
.qty button { width: 34px; height: 38px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; color: var(--cherry); }
.qty button:hover { background: var(--pink-100); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.card__add {
  flex: 1; background: var(--cherry); color: #fff; border: 0; border-radius: 12px; height: 42px;
  font-family: var(--font-title); font-weight: 600; transition: transform .15s, background .2s;
}
.card__add:hover { background: var(--cherry-dark); }
.card__add.is-added, .card__add.is-added:hover { background: var(--wa-dark); }
.card__add:active { transform: scale(.94); }
.card__add[disabled] { background: #b9a9a0; cursor: not-allowed; }
.card__add[disabled]:active { transform: none; }

/* Opciones a elegir (toppings, sabores de cajitas) */
.card__opts { display: grid; gap: .5rem; padding: .7rem; background: var(--pink-50); border: 2px dashed var(--pink-300); border-radius: 12px; }
.opt { display: grid; gap: .2rem; margin: 0; padding: 0; border: 0; min-width: 0; font-size: .85rem; font-weight: 700; }
.opt select { padding: .4rem .6rem; border: 2px solid var(--pink-300); border-radius: 10px; background: #fff; width: 100%; font-weight: 600; font-size: .9rem; }
.opt legend { padding: 0; margin-bottom: .3rem; }
.opt small { color: var(--choco-soft); font-weight: 600; }
.opt--check { grid-template-columns: 1fr 1fr; gap: .25rem .6rem; }
.opt--check legend { grid-column: 1 / -1; }
.chk { display: flex; align-items: center; gap: .4rem; font-weight: 600; cursor: pointer; line-height: 1.2; }
.chk input { accent-color: var(--cherry); width: 16px; height: 16px; flex: none; }
.chk input:disabled + span { opacity: .45; }
.opt select.invalid, .opt--check.invalid { border-color: #d62828; background: #fff5f5; }
.opt--check.invalid { border: 2px solid #d62828; border-radius: 10px; padding: .4rem; }

/* Producto agotado */
.card.is-soldout .card__media img { filter: grayscale(.8); opacity: .5; }
.card.is-soldout .card__tag { background: #7a6a62; }
.card.is-soldout .card__price { color: var(--choco-soft); }

/* ---------- 8. Cómo pedir (pasos, entregas, estaciones) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.step {
  background: var(--pink-50); border-radius: var(--radius); padding: 2rem 1.5rem 1.6rem; text-align: center;
  border: 3px dashed var(--pink-300); position: relative; transition: transform .25s;
}
.step:hover { transform: translateY(-5px) rotate(-1deg); }
.step__num {
  width: 56px; height: 56px; margin: -3.2rem auto .8rem; border-radius: 50%;
  background: var(--cherry); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1.6rem;
  display: grid; place-items: center; border: 4px solid #fff; box-shadow: var(--shadow-sm);
}
.step p { margin: 0; color: var(--choco-soft); }
.step { margin-top: 1.8rem; }

.delivery { background: var(--cream); border-radius: var(--radius); padding: 1.8rem; border: 3px solid var(--pink-200); }
.delivery h3 { text-align: center; font-size: 1.5rem; }
.delivery__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.5rem; margin-top: 1rem; }
.delivery__list li {
  display: flex; justify-content: space-between; gap: 1rem; background: #fff; padding: .7rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600;
}
.delivery__list li strong { color: var(--cherry); text-align: right; }
.note--top { margin: 1.2rem 0 0; font-weight: 700; }
.rules { display: grid; gap: .6rem; margin: .8rem auto 0; max-width: 560px; }
.rules li {
  position: relative; background: #fff; padding: .65rem 1rem .65rem 2.4rem; text-align: left;
  border-radius: var(--radius-sm); border: 2px dashed var(--pink-300); font-weight: 600;
}
.rules li::before {
  content: ""; position: absolute; left: 1rem; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--cherry);
}
.rules li strong { color: var(--cherry); }

/* ---------- 9. Nosotros ---------- */
.eyebrow {
  margin: 0 0 .5rem; font-family: var(--font-title); font-weight: 600; font-size: .85rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cherry);
}
.about {
  width: min(1240px, 94%); margin-inline: auto; display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
/* Logo grande en un disco, con un aro punteado y 4 íconos de postres sobre el aro */
.about__art { position: relative; width: min(470px, 90%); margin-inline: auto; }
.about__disc {
  position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff 0%, var(--pink-100) 100%);
  border: 8px solid #fff; box-shadow: var(--shadow);
}
.about__disc img { width: 86%; height: auto; object-fit: contain; }
.about__disc--photo img { width: 100%; height: 100%; object-fit: cover; }
.about__art::before {
  content: ""; position: absolute; inset: -20px; border-radius: 50%;
  border: 3px dashed var(--pink-300); pointer-events: none;
}
.about__dot {
  position: absolute; z-index: 2; width: 54px; height: 54px; border-radius: 50%; background: var(--c);
  border: 4px solid #fff; box-shadow: var(--shadow-sm); color: var(--cherry);
  display: grid; place-items: center; transform: translate(-50%, -50%);
}
.about__dot svg { width: 28px; height: 28px; }
.about__dot--tl { left: 11%; top: 11%; }
.about__dot--tr { left: 89%; top: 11%; }
.about__dot--bl { left: 11%; top: 89%; }
.about__dot--br { left: 89%; top: 89%; }

.about__text p { font-size: 1.08rem; }
.about__quote {
  margin: 1.6rem 0; padding: .3rem 0 .3rem 1.2rem; border-left: 4px solid var(--cherry);
  font-family: var(--font-title); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.35; color: var(--choco);
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.value {
  display: grid; gap: .15rem; align-content: start; background: #fff; border: 2px solid var(--pink-200);
  border-radius: var(--radius-sm); padding: 1rem; transition: transform .25s, box-shadow .25s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value__icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--pink-100); color: var(--cherry);
  display: grid; place-items: center; margin-bottom: .4rem;
}
.value__icon svg { width: 24px; height: 24px; }
.value strong { font-family: var(--font-title); font-weight: 600; font-size: 1rem; line-height: 1.2; color: var(--choco); }
.value small { font-size: .82rem; font-weight: 600; color: var(--choco-soft); line-height: 1.3; }

.motto {
  display: flex; align-items: center; gap: .9rem; margin: 1.8rem 0 0;
  font-family: var(--font-title); font-weight: 600; font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  color: var(--cherry); line-height: 1.2;
}
.motto::before, .motto::after { content: ""; flex: none; width: 44px; height: 3px; border-radius: 3px; background: var(--cherry); }

/* ---------- 10. Formularios ---------- */
.form { display: grid; gap: 1rem; background: var(--pink-50); padding: 1.8rem; border-radius: var(--radius); border: 3px solid var(--pink-200); }
.form label { display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .7rem .9rem; border: 2px solid var(--pink-300); border-radius: 12px; background: #fff; font-weight: 500;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cherry); box-shadow: 0 0 0 4px rgba(230, 57, 119, .15); }
.form input[type="date"] { min-height: 2.75rem; -webkit-appearance: none; appearance: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form input.invalid, .form select.invalid { border-color: #d62828; background: #fff5f5; }
.form--cart { background: transparent; border: 0; padding: 0; margin-top: 1.2rem; border-top: 3px dotted var(--pink-300); padding-top: 1rem; gap: .7rem; }
.form--cart h3 { margin: 0; font-size: 1.2rem; }
.form--cart label { font-size: .88rem; gap: .25rem; min-width: 0; }
.form--cart input, .form--cart select, .form--cart textarea { padding: .5rem .7rem; font-size: .95rem; min-width: 0; }
.form--cart textarea { resize: vertical; }
.form--cart .form__row { gap: .6rem; }
.hint { font-weight: 600; font-size: .78rem; color: var(--choco-soft); line-height: 1.3; }
.hint--block { margin: -.2rem 0 0; }

/* ---------- Estaciones de la Línea 1 ---------- */
.stations { margin-top: 1rem; background: #fff; border: 2px dashed var(--pink-300); border-radius: var(--radius-sm); padding: 0 1rem; }
.stations summary {
  cursor: pointer; padding: .8rem 0; font-family: var(--font-title); font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--cherry);
}
.stations summary::-webkit-details-marker { display: none; }
.stations summary::after { content: "+"; font-size: 1.5rem; font-weight: 700; transition: transform .25s; }
.stations[open] summary::after { transform: rotate(45deg); }
.stations__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem; padding-bottom: 1rem; }
.stations__group h4 { margin: 0; font-size: .95rem; color: var(--cherry); }
.stations__group p { margin: 0; font-size: .9rem; font-weight: 600; color: var(--choco-soft); }

/* ---------- 11. Opiniones y FAQ ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.review { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative; }
.review::before { content: "“"; font-family: var(--font-title); font-size: 5rem; color: var(--pink-300); position: absolute; top: -10px; right: 20px; line-height: 1; }
.review__stars { color: #ffb400; letter-spacing: 2px; margin-bottom: .4rem; }
.review p { font-style: italic; }
.review strong { color: var(--cherry); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; margin-top: 2rem; }
.faq details { background: var(--pink-50); border-radius: var(--radius-sm); border: 2px solid var(--pink-200); padding: 0 1.2rem; transition: background .2s; }
.faq details[open] { background: #fff; border-color: var(--pink-400); }
.faq summary {
  cursor: pointer; padding: 1rem 0; font-family: var(--font-title); font-weight: 600; font-size: 1.1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cherry); font-size: 1.6rem; font-weight: 700; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1rem; margin: 0; color: var(--choco-soft); }

/* ---------- 12. Contacto y footer ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.contact__card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact__list { display: grid; gap: .8rem; margin-bottom: 1.5rem; font-weight: 600; }
.contact__list li { display: flex; gap: .7rem; align-items: flex-start; }
.contact__list li > :last-child { min-width: 0; overflow-wrap: anywhere; }
.contact__list a { font-weight: 700; }
.contact__label { min-width: 5.5rem; color: var(--cherry); font-family: var(--font-title); font-weight: 600; }
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.social__link {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  border: 3px solid #fff; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.social__link svg { width: 26px; height: 26px; }
.social__link:hover { transform: translateY(-4px) rotate(-6deg) scale(1.08); box-shadow: var(--shadow); }
.social__link--ig { background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%); }
.social__link--tt { background: #111; box-shadow: var(--shadow-sm), -2px -2px 0 #25f4ee inset, 2px 2px 0 #fe2c55 inset; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 4px solid #fff; min-height: 300px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--choco); color: var(--cream); padding: 2.5rem 0 1.2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.footer__logo { width: 68px; height: 68px; border-radius: 50%; background: #fff; padding: 6px; object-fit: contain; border: 3px solid var(--pink-300); }
.footer__brand strong { font-family: var(--font-title); font-size: 1.2rem; color: #fff; line-height: 1.25; }
.footer__brand p { margin: 0; color: var(--pink-200); font-weight: 600; }
.footer h4 { font-family: var(--font-title); font-size: 1.05rem; color: var(--pink-300); margin: 0 0 .7rem; }
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.footer a { color: var(--cream); font-weight: 600; text-decoration: none; }
.footer a:hover { color: var(--pink-300); text-decoration: underline; }
.footer .libro {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; padding: .4rem .9rem .4rem .5rem;
  background: #fff; color: var(--choco); border-radius: 12px; font-weight: 700; font-size: .95rem; text-decoration: none;
}
.footer .libro:hover { background: var(--pink-100); color: var(--choco); text-decoration: none; }
.footer .libro svg { width: 28px; height: 28px; flex: none; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem;
  margin-top: 2rem; padding-top: 1rem; border-top: 2px dotted rgba(255, 201, 223, .35); font-size: .92rem;
}
.footer__bottom p { margin: 0; }

/* ---------- 13. Páginas legales ---------- */
.header__back { font-weight: 700; text-decoration: none; }
.header__back:hover { text-decoration: underline; }
.legal { background: var(--cream); padding: 2.5rem 0 4rem; }
.legal__box { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--cherry); }
.legal h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1em; }
.legal li { margin: .3rem 0; }
.legal__date { color: var(--choco-soft); font-size: .9rem; }
.legal .form { margin-top: 1.5rem; }
.legal .form textarea { resize: vertical; }
.legal .form fieldset { border: 2px dashed var(--pink-300); border-radius: var(--radius-sm); padding: .8rem 1rem 1rem; display: grid; gap: .8rem; margin: 0; min-width: 0; }
.legal .form legend { font-family: var(--font-title); font-weight: 600; padding: 0 .5rem; color: var(--cherry); }
.legal .form textarea.invalid { border-color: #d62828; background: #fff5f5; }

/* ---------- 14. Elementos flotantes: WhatsApp, carrito, toast, modal ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .5); animation: pulse 2.4s infinite; transition: transform .2s;
}
.wa-float { transition: transform .2s, bottom .3s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 34px; height: 34px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Barra del pedido (resumen fijo abajo) ---------- */
.cartbar {
  position: fixed; left: 50%; bottom: 14px; z-index: 95;
  width: min(520px, calc(100% - 28px)); transform: translateX(-50%);
}
.cartbar:not([hidden]) { animation: cartbar-in .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cartbar-in { from { opacity: 0; transform: translate(-50%, 140%); } }
.cartbar__btn {
  width: 100%; display: flex; align-items: center; gap: .75rem; text-align: left;
  background: var(--cherry); color: #fff; border: 3px solid #fff; border-radius: 999px;
  padding: .45rem .5rem .45rem .5rem; font-family: var(--font-title);
  box-shadow: 0 6px 0 var(--cherry-dark), 0 14px 26px rgba(230, 57, 119, .35);
  transition: transform .15s;
}
.cartbar__btn:active { transform: scale(.98); }
.cartbar__btn.bump { animation: cartbar-bump .4s; }
@keyframes cartbar-bump { 40% { transform: scale(1.04); } }
.cartbar__icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--cherry);
  display: grid; place-items: center;
}
.cartbar__icon svg { width: 22px; height: 22px; }
.cartbar__text { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
.cartbar__label { font-size: .82rem; font-weight: 500; opacity: .92; }
.cartbar__text strong { font-size: 1.2rem; font-weight: 700; }
.cartbar__cta {
  flex: none; display: inline-flex; align-items: center; gap: .35rem; background: #fff; color: var(--cherry);
  border-radius: 999px; padding: .6rem 1rem; font-weight: 600; font-size: .95rem;
}
.cartbar__cta svg { width: 18px; height: 18px; }

/* Con la barra visible: el botón de WhatsApp sube y el final de la página no queda tapado */
body.has-cartbar .footer { padding-bottom: 6rem; }
body.has-cartbar .toast { bottom: 100px; }
@media (max-width: 700px) {
  body.has-cartbar .wa-float { bottom: 88px; }
}
@media (max-width: 360px) {
  .cartbar__cta { padding: .6rem; }
  .cartbar__cta-txt { display: none; }
}

/* ---------- Carrito (drawer) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(91, 58, 41, .45); z-index: 150; opacity: 0; transition: opacity .3s; }
.overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fff; z-index: 160;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,.2); border-left: 5px solid var(--pink-300);
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: var(--pink-100); }
.drawer__head h2 { margin: 0; font-size: 1.5rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem; }
.drawer__foot { padding: .8rem 1.2rem 1rem; border-top: 3px dotted var(--pink-300); background: var(--pink-50); }
.drawer__foot .note { margin: .2rem 0 .6rem; font-size: .8rem; }
.drawer__foot .link-btn { margin-top: .1rem; padding: .3rem; }
.drawer__body { overscroll-behavior: contain; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.total strong { font-family: var(--font-title); font-size: 1.8rem; color: var(--cherry); }
.pago { margin: .3rem 0 .6rem; display: grid; gap: .15rem; font-size: .95rem; font-weight: 600; }
.pago div { display: flex; justify-content: space-between; gap: 1rem; }
.pago dt { color: var(--choco-soft); }
.pago dd { margin: 0; font-weight: 700; color: var(--choco); }
.aviso {
  margin: .5rem 0 .7rem; padding: .7rem .9rem .7rem 3rem; position: relative;
  background: linear-gradient(135deg, var(--cream) 0%, #fbeccb 100%); border: 2px dashed var(--honey); border-radius: 16px;
  font-size: .9rem; font-weight: 700; color: var(--choco); line-height: 1.35;
  box-shadow: 0 4px 0 rgba(217, 164, 65, .25); animation: aviso-in .35s cubic-bezier(.34, 1.56, .64, 1);
}
.aviso::before {
  content: "!"; position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--honey); color: var(--choco);
  display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; font-size: 1.05rem;
}
@keyframes aviso-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.cart-empty { text-align: center; padding: 2rem 1rem; color: var(--choco-soft); font-weight: 600; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 2px dashed var(--pink-200); }
.cart-item__name { font-weight: 700; line-height: 1.25; }
.cart-item__opt { font-size: .85rem; color: var(--choco-soft); }
.cart-item__extra { font-size: .82rem; color: var(--choco); background: var(--pink-50); border-radius: 8px; padding: .2rem .5rem; margin: .2rem 0; }
.cart-item__price { font-weight: 700; color: var(--cherry); font-size: .95rem; }
.cart-item__side { display: grid; gap: .3rem; justify-items: end; }
.cart-item .qty { transform: scale(.9); transform-origin: right; }
.cart-item__remove { background: none; border: 0; color: var(--choco-soft); font-size: .8rem; text-decoration: underline; padding: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 30px) scale(.95);
  display: flex; align-items: center; gap: .7rem;
  background: linear-gradient(135deg, var(--cherry) 0%, var(--pink-400) 100%); color: #fff;
  padding: .55rem 1.4rem .55rem .6rem; border-radius: 999px; border: 3px solid #fff;
  font-weight: 700; z-index: 400; opacity: 0; pointer-events: none;
  box-shadow: 0 8px 0 var(--cherry-dark), 0 18px 30px rgba(230, 57, 119, .35);
  transition: opacity .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
  width: max-content; max-width: min(92%, 460px); text-align: left; line-height: 1.3;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast__icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--cherry);
  display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
}
.toast--warn {
  background: linear-gradient(135deg, #f3d9a4 0%, var(--cream) 100%); color: var(--choco);
  box-shadow: 0 8px 0 var(--honey-dark), 0 18px 30px rgba(168, 120, 40, .3);
}
.toast--warn .toast__icon { color: var(--honey-dark); }

/* ---------- Confirmación (modal) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 1rem;
  background: rgba(91, 58, 41, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s;
}
.modal.show { opacity: 1; }
.modal__box {
  width: min(380px, 100%); background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem 1.5rem;
  text-align: center; border: 4px solid var(--pink-300); box-shadow: var(--shadow);
  transform: scale(.9); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.modal.show .modal__box { transform: scale(1); }
.modal__icon {
  width: 68px; height: 68px; margin: -3.4rem auto .8rem; border-radius: 50%; background: var(--pink-100);
  border: 4px solid #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 1.9rem; color: var(--cherry);
}
.modal__icon svg { width: 32px; height: 32px; }
.modal__box h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.modal__box p { color: var(--choco-soft); font-weight: 600; font-size: .95rem; }
.modal__actions { display: flex; gap: .7rem; justify-content: center; margin-top: 1.2rem; }
.modal__actions .btn { flex: 1; padding: .65rem 1rem; font-size: 1rem; }
.modal__actions .btn--primary { box-shadow: 0 4px 0 var(--cherry-dark); }
.modal__actions .btn--primary:hover { box-shadow: 0 6px 0 var(--cherry-dark); }

/* ---------- 15. Animación al hacer scroll ---------- */
.reveal:not(.visible) { opacity: 0; transform: translateY(24px); }
.reveal { transition: opacity .6s, transform .25s, box-shadow .25s; }
.reveal:not(.visible) { transition: opacity .6s, transform .6s; }

/* ==========================================================
   16. RESPONSIVO (de pantallas grandes a pequeñas)
   Laptop > 1180 · tablet grande 1040 · tablet 860 · celular 560 · celular chico 380
   ========================================================== */

/* Laptop pequeña: las 6 categorías ya no caben en una fila */
@media (max-width: 1180px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
}

/* Menú hamburguesa (el logo + 6 enlaces no caben en tablet) */
@media (max-width: 1040px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 3px dotted var(--pink-300); padding: .5rem 0 1rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s; z-index: 99;
    box-shadow: 0 14px 20px rgba(230, 57, 119, .12);
    max-height: calc(100vh - 76px); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .9rem 1.5rem; font-size: 1.1rem; }
  .nav a::after { display: none; }
}
@supports (height: 100dvh) {
  @media (max-width: 1040px) { .nav { max-height: calc(100dvh - 76px); } }
}

@media (max-width: 1000px) {
  .reviews { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { padding: 2.2rem 0 6rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__points { justify-content: center; }
  .hero__art { max-width: 300px; order: -1; }

  .section { padding: 3.5rem 0; }
  .section--wave { padding-top: 4.6rem; }
  .section--wave::before { height: 30px; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .delivery__list { grid-template-columns: 1fr; }
  .section__title--left { text-align: center; }
  .section__title--left::after { margin-inline: auto; }
  .about__text { text-align: center; }
  .about__art { width: min(340px, 78%); }
  .about__dot { width: 46px; height: 46px; }
  .about__dot svg { width: 24px; height: 24px; }
  .about__quote { border-left: 0; border-top: 3px solid var(--cherry); padding: .9rem 0 0; }
  .value { text-align: left; }
  .motto { justify-content: center; }
}

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .values { grid-template-columns: 1fr; }
  .value { grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; padding: .8rem 1rem; }
  .value__icon { grid-row: 1 / 3; margin: 0; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  /* Categorías: carrusel horizontal con desplazamiento táctil */
  .cats {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; gap: .8rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4%;
    margin-inline: -4%; padding: .5rem 4% 1rem; scrollbar-width: none;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cat { scroll-snap-align: start; }
  .products { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .card__body { padding: .8rem; }
  .card__title { font-size: 1.05rem; }
  .card__desc { font-size: .85rem; }
  .card__price { font-size: 1.25rem; }
  .logo__img { height: 54px; }
  .opt--check { grid-template-columns: 1fr; }
  .card__opts { padding: .5rem; }
  .card__row { flex-direction: column; align-items: stretch; }
  .card__row .qty { align-self: center; }
  .card__add { width: 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .5rem; margin-inline: -4%; padding-inline: 4%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }
  .form__row { grid-template-columns: 1fr; }
  .wa-float { width: 56px; height: 56px; right: 14px; bottom: 14px; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__brand, .footer nav { align-items: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .legal__box { padding: 1.4rem; }
  /* El botón flotante de WhatsApp no tapa el final de la página */
  .footer { padding-bottom: 4.8rem; }
  .toast { bottom: 84px; }
  /* Evita que el celular haga zoom al tocar un campo (iOS lo hace con letra menor a 16 px) */
  .form input, .form select, .form textarea,
  .card__select, .opt select { font-size: 16px; }
  .tabs { padding-top: .4rem; }

  /* Carrito en celulares: más compacto para que quepa todo */
  .drawer { border-left: 0; }
  .drawer__head { padding: .6rem 1rem; }
  .drawer__head h2 { font-size: 1.3rem; }
  .icon-btn { width: 38px; height: 38px; }
  .drawer__body { padding: .8rem 1rem; }
  .drawer__foot { padding: .6rem 1rem .8rem; }
  .total strong { font-size: 1.5rem; }
  .form--cart .form__row { grid-template-columns: 1fr 1fr; }
  .stations__grid { grid-template-columns: 1fr; }
  .delivery { padding: 1.2rem; }
  .rules li { font-size: .95rem; }
}

/* Celulares chicos: una sola columna de productos */
@media (max-width: 380px) {
  .products { grid-template-columns: 1fr; }
}

/* Pantallas muy angostas: los pares de campos pasan a una sola columna */
@media (max-width: 360px) {
  .form--cart .form__row { grid-template-columns: 1fr; }
  .btn { padding-inline: 1.2rem; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* Pantallas bajitas: el pie del carrito ocupa menos */
@media (max-height: 720px) {
  .drawer__foot .note { display: none; }
  .pago { font-size: .88rem; margin: .2rem 0 .4rem; }
  .btn--block { padding: .6rem 1rem; }
}

/* Celular en horizontal: todo el carrito se desplaza junto, así nunca queda sin espacio */
@media (max-height: 520px) {
  .drawer { overflow-y: auto; overscroll-behavior: contain; }
  .drawer__body { flex: none; overflow: visible; }
  .drawer__head { position: sticky; top: 0; z-index: 2; }
}

/* Altura real de la pantalla en celulares (descuenta la barra del navegador) */
@supports (height: 100dvh) {
  .drawer { height: 100dvh; }
}

/* ==========================================================
   17. DISPOSITIVOS TÁCTILES Y ACCESIBILIDAD
   ========================================================== */

/* En pantallas táctiles no hay "hover": se evita que los efectos se queden pegados al tocar */
@media (hover: none) {
  .btn:hover, .card:hover, .cat:hover, .step:hover, .value:hover, .cart-btn:hover,
  .social__link:hover, .wa-float:hover, .logo:hover .logo__img { transform: none; }
  .btn--primary:hover { box-shadow: 0 6px 0 var(--cherry-dark); }
  .btn--whatsapp:hover { box-shadow: 0 6px 0 var(--wa-dark); }
  .modal__actions .btn--primary:hover { box-shadow: 0 4px 0 var(--cherry-dark); }
  .card:hover { border-color: transparent; box-shadow: var(--shadow-sm); }
  .cat:hover { box-shadow: var(--shadow-sm); }
  .cat:hover::after { transform: none; }
  .cat:hover .cat__icon { background: #fff; color: var(--cherry); }
  .cat:hover .cat__arrow { transform: none; background: rgba(255, 255, 255, .75); color: var(--choco); }
  .card:hover .card__media img.card__ph { transform: none; }
}

/* Dedos: botones y casillas con tamaño cómodo para tocar (mínimo ~44 px) */
@media (pointer: coarse) {
  .qty button { width: 42px; height: 42px; }
  .card__add { height: 46px; }
  .tab { padding: .65rem 1.1rem; }
  .chk { min-height: 32px; }
  .chk input { width: 20px; height: 20px; }
  .cart-item__remove { padding: .5rem .4rem; }
  .link-btn { padding: .7rem; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  /* Solo se quitan las animaciones que se repiten sin parar; las transiciones suaves se mantienen */
  .blob, .wa-float { animation: none !important; }
}
