/* =========================================================
   DULCYNEA · Landing pública
   Hoja de estilos independiente del panel de administración.
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root {
  --bg:        #FDF8F4;
  --bg-2:      #F8EDE6;
  --surface:   #FFFFFF;
  --surface-2: #FDF9F7;

  --ink:       #2A1E2E;
  --ink-2:     #5C4A60;
  --ink-3:     #8B7A90;
  --ink-4:     #B6A8B9;

  --brand:     #C2185B;
  --brand-600: #A10F4B;
  --brand-100: #FBD9E6;
  --brand-50:  #FDF1F6;

  --mint:      #0E9C89;
  --mint-600:  #0A7D6E;
  --mint-100:  #CFF0EA;

  --amber:     #D98A00;
  --amber-100: #FDEBC4;

  --grape:     #6D3FA6;
  --grape-100: #E7DCF8;

  --plum:      #1E1526;
  --plum-2:    #2C2035;

  --line:      #EFE3DC;
  --line-2:    #E2D2C9;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --sh-sm: 0 2px 8px rgba(42,30,46,.06);
  --sh-md: 0 12px 32px rgba(42,30,46,.10);
  --sh-lg: 0 30px 70px rgba(42,30,46,.18);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --header-h: 72px;

  color-scheme: light;
}

/* ---------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

button, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
ul { list-style: none; }

/* Necesario: si no, las clases que definen `display` anulan el atributo hidden */
[hidden] { display: none !important; }

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

::selection { background: var(--brand-100); color: var(--brand-600); }

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

/* ---------------------------------------------------------
   3. LAYOUT
   --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 76px 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section--tint { background: var(--bg-2); }

.section-head { max-width: 640px; margin-bottom: 40px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
}

.section-sub {
  font-size: 16.5px;
  color: var(--ink-2);
  margin-top: 12px;
}

/* ---------------------------------------------------------
   4. BOTONES
   --------------------------------------------------------- */
.lbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease,
              color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.lbtn:active { transform: scale(.975); }

.lbtn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(194,24,91,.30);
}
.lbtn-primary:hover { box-shadow: 0 14px 34px rgba(194,24,91,.40); transform: translateY(-2px); }

.lbtn-mint {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-600) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(14,156,137,.28);
}
.lbtn-mint:hover { box-shadow: 0 14px 34px rgba(14,156,137,.38); transform: translateY(-2px); }

.lbtn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.lbtn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.lbtn-sm { height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------------------------------------------------------
   5. HEADER
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(253,248,244,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
  background: rgba(253,248,244,.95);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(42,30,46,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--grape) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(194,24,91,.34);
  flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; }

.logo-text {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}
.site-nav a:hover { background: var(--brand-50); color: var(--brand); }

.access-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--plum);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease, transform .15s ease, box-shadow .2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.access-btn:hover { background: var(--plum-2); box-shadow: 0 8px 22px rgba(30,21,38,.26); }
.access-btn:active { transform: scale(.97); }
.access-btn svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Menú móvil desplegable */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-md);
  padding: 10px 20px 18px;
  display: none;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  display: block;
  padding: 13px 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------------------------------------------------------
   6. HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding: 66px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,24,91,.16) 0%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,156,137,.14) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(115deg, var(--brand) 0%, var(--grape) 60%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

.hero-text {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.hero-fact span {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Composición decorativa (100% CSS, sin imágenes) */
.hero-visual {
  position: relative;
  height: 440px;
  display: grid;
  place-items: center;
}

.scoop-stack {
  position: relative;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 26px 40px rgba(42,30,46,.20));
}

.scoop {
  width: 210px;
  height: 104px;
  border-radius: 110px 110px 26px 26px;
  margin-bottom: -34px;
  position: relative;
}
.scoop::after {
  content: '';
  position: absolute;
  inset: 12px 22px auto 22px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.34);
  filter: blur(5px);
}

.scoop--1 { background: linear-gradient(140deg, #F48FB1 0%, #C2185B 100%); z-index: 3; }
.scoop--2 { background: linear-gradient(140deg, #FFE082 0%, #D98A00 100%); z-index: 2; }
.scoop--3 { background: linear-gradient(140deg, #7FD8C8 0%, #0E9C89 100%); z-index: 1; }

.cone {
  width: 168px;
  height: 190px;
  background:
    repeating-linear-gradient(58deg, #D9A05B 0 11px, #C08442 11px 22px),
    repeating-linear-gradient(-58deg, #D9A05B 0 11px, #C08442 11px 22px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  margin-top: -20px;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 17px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--sh-md);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip span { font-size: 17px; }

.float-chip--a { top: 26px; left: -14px; animation-delay: 0s; }
.float-chip--b { bottom: 76px; right: -18px; animation-delay: 1.4s; }
.float-chip--c { bottom: 4px; left: 12px; animation-delay: 2.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* ---------------------------------------------------------
   7. PROMOCIONES
   --------------------------------------------------------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px;
}

.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-100);
}

.promo-card--destacada {
  background: linear-gradient(150deg, var(--plum) 0%, #3B2347 100%);
  border-color: transparent;
  color: #fff;
}
.promo-card--destacada .promo-title { color: #fff; }
.promo-card--destacada .promo-detail { color: rgba(255,255,255,.72); }
.promo-card--destacada .promo-tag {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.promo-card--destacada .promo-before { color: rgba(255,255,255,.45); }
.promo-card--destacada .promo-price { color: #fff; }
.promo-card--destacada .promo-icon { background: rgba(255,255,255,.13); }

.promo-card--destacada::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,24,91,.55) 0%, transparent 70%);
  pointer-events: none;
}

.promo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.promo-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-50);
  font-size: 24px;
  flex-shrink: 0;
}

.promo-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--mint-100);
  color: var(--mint-600);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.promo-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.promo-detail {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 20px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.promo-foot {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.promo-card--destacada .promo-foot { border-top-color: rgba(255,255,255,.14); }

.promo-price {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.promo-before {
  font-size: 14px;
  color: var(--ink-4);
  text-decoration: line-through;
}

/* ---------------------------------------------------------
   8. MENÚ DE HELADERÍA
   --------------------------------------------------------- */
.menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 6px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 34px;
  box-shadow: var(--sh-sm);
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.menu-item-name {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.menu-item-dots {
  flex: 1;
  min-width: 20px;
  border-bottom: 2px dotted var(--line-2);
  transform: translateY(-5px);
}

.menu-item-price {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   9. DULCERÍA & MISCELÁNEA
   --------------------------------------------------------- */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.cat-pill {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: all .16s ease;
  white-space: nowrap;
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand); }

.cat-pill.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(194,24,91,.28);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--sh-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-100);
}

.product-card--agotado { opacity: .62; }
.product-card--agotado:hover { transform: none; }

.product-cat {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--grape-100);
  color: var(--grape);
}

.product-name {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  flex: 1;
}

.product-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}

.product-stock {
  font-size: 12px;
  font-weight: 600;
  color: var(--mint-600);
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-stock::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

.product-stock.is-low { color: var(--amber); }
.product-stock.is-low::before { background: var(--amber); }

.product-stock.is-out { color: var(--ink-3); }
.product-stock.is-out::before { background: var(--ink-4); }

/* ---------------------------------------------------------
   10. CONTACTO
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--sh-sm);
}

.contact-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-50);
  font-size: 21px;
  margin-bottom: 14px;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}

.contact-value {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}
.contact-value a:hover { color: var(--brand); text-decoration: underline; }

.contact-cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  text-align: center;
}

.contact-cta-inner { width: 100%; }
.contact-cta h3 { font-size: 24px; margin-bottom: 8px; }
.contact-cta p { color: var(--ink-2); margin-bottom: 22px; }
.contact-cta-actions { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; }

/* ---------------------------------------------------------
   11. FOOTER
   --------------------------------------------------------- */
.site-footer {
  background: var(--plum);
  background-image:
    radial-gradient(90% 60% at 0% 0%, rgba(194,24,91,.24) 0%, transparent 62%),
    radial-gradient(80% 60% at 100% 100%, rgba(109,63,166,.22) 0%, transparent 62%);
  color: rgba(255,255,255,.66);
  padding: 52px 0 34px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.footer-brand { max-width: 320px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: 14px; margin-top: 14px; }

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.72);
  padding: 5px 0;
  transition: color .16s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}

/* ---------------------------------------------------------
   12. MODAL DE ACCESO
   --------------------------------------------------------- */
.gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(30,21,38,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: gateFade .2s ease;
}

@keyframes gateFade { from { opacity: 0; } to { opacity: 1; } }

.gate-modal {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 32px;
  text-align: center;
  animation: gateIn .26s cubic-bezier(.21,1.02,.73,1);
}

@keyframes gateIn {
  from { transform: translateY(18px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.gate-modal.is-shaking { animation: gateShake .38s cubic-bezier(.36,.07,.19,.97); }

@keyframes gateShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.gate-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--grape) 100%);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 26px rgba(194,24,91,.32);
}

.gate-title {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gate-text {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 22px;
}

.gate-label {
  display: block;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.gate-input {
  width: 100%;
  height: 50px;
  border: 2px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 0 16px;
  font-size: 16px;
  letter-spacing: 0.14em;
  background: var(--surface-2);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.gate-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(194,24,91,.14);
  background: #fff;
}

.gate-error {
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-600);
  margin-top: 10px;
  text-align: left;
}

.gate-actions {
  display: flex;
  gap: 11px;
  margin-top: 14px;
}
.gate-actions .lbtn { flex: 1; height: 48px; padding: 0 14px; font-size: 14.5px; }

/* ---------------------------------------------------------
   13. ESTADOS DE CARGA
   --------------------------------------------------------- */
.skel {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--r-md);
}
.skel::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  animation: skelShine 1.4s infinite;
}
@keyframes skelShine { to { transform: translateX(100%); } }

.skel-card { height: 168px; }
.skel-row { height: 58px; border-radius: var(--r-sm); margin-bottom: 10px; }

.load-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--ink-3);
  font-size: 14.5px;
  padding: 22px 0;
}

.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  border-top-color: var(--brand);
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.notice {
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 30px 24px;
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
}
.notice strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------------------------------------------------------
   14. SORTEO / RULETA
   --------------------------------------------------------- */
.sorteo-premio {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--grape) 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(194,24,91,.28);
}

.sorteo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 26px;
  align-items: start;
}

/* ── Ruleta ─────────────────────────────────────────────── */
.ruleta-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--sh-sm);
}

.ruleta-stage {
  position: relative;
  width: min(100%, 480px);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

#ruleta-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--plum);
  box-shadow:
    0 22px 50px rgba(42,30,46,.26),
    inset 0 0 0 1px rgba(255,255,255,.08);
}

.ruleta-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid var(--plum);
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(42,30,46,.35));
}

.ruleta-pointer::after {
  content: '';
  position: absolute;
  left: -11px;
  top: -30px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,255,255,.85);
}

.ruleta-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(150deg, #FFFFFF 0%, #F6EEF2 100%);
  border: 4px solid var(--plum);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 2;
  box-shadow: 0 10px 26px rgba(42,30,46,.30);
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}

.ruleta-spin-icon { font-size: clamp(18px, 3.4vw, 26px); line-height: 1; }

.ruleta-spin-text {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--plum);
}

.ruleta-spin:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 14px 34px rgba(42,30,46,.38);
}

.ruleta-spin:active:not(:disabled) { transform: translate(-50%, -50%) scale(.98); }

.ruleta-spin:disabled { cursor: not-allowed; opacity: .55; }

.ruleta-spin.is-spinning {
  pointer-events: none;
  background: linear-gradient(150deg, #FFF0F5 0%, #FBD9E6 100%);
}

.ruleta-status {
  margin-top: 22px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  min-height: 24px;
}

.ruleta-status.is-ready { color: var(--mint-600); font-weight: 600; }

/* ── Panel lateral ──────────────────────────────────────── */
.sorteo-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sorteo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-sm);
}

.sorteo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sorteo-card-head h3 {
  font-size: 18px;
  font-weight: 700;
}

.sorteo-count {
  min-width: 34px;
  height: 30px;
  padding: 0 11px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.sorteo-mini {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  transition: background .15s ease, color .15s ease;
}
.sorteo-mini:hover { background: var(--brand-50); color: var(--brand); }

/* Formulario */
.sorteo-form { margin-bottom: 20px; }

.sorteo-field { margin-bottom: 13px; }

.sorteo-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.sorteo-field input {
  width: 100%;
  height: 46px;
  border: 2px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 0 15px;
  font-size: 15px;
  background: var(--surface-2);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sorteo-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(194,24,91,.13);
  background: #fff;
}

.sorteo-error {
  min-height: 19px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-600);
  margin-bottom: 6px;
}

.sorteo-form-actions { display: flex; gap: 10px; }
.sorteo-form-actions .lbtn { flex: 1; height: 46px; font-size: 14.5px; }

/* Lista de participantes */
.sorteo-list { display: flex; flex-direction: column; gap: 8px; }

.sorteo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  animation: sorteoIn .22s ease;
}

@keyframes sorteoIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

.sorteo-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.sorteo-item-info { flex: 1; min-width: 0; }

.sorteo-item-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sorteo-item-phone {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 1px;
}

.sorteo-item-actions { display: flex; gap: 4px; flex-shrink: 0; }

.sorteo-icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink-3);
  transition: background .15s ease, color .15s ease;
}
.sorteo-icon-btn:hover { background: var(--brand-50); color: var(--brand); }
.sorteo-icon-btn.is-danger:hover { background: #FCE0E5; color: #B21F38; }

.sorteo-empty {
  text-align: center;
  padding: 22px 12px;
  font-size: 14px;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
}

.sorteo-winner-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--brand-100);
  border-radius: var(--r-sm);
  background: var(--brand-50);
}

.sorteo-winner-row .sorteo-item-name { color: var(--brand-600); }
.sorteo-winner-row .sorteo-medal { font-size: 19px; }

.sorteo-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
  padding: 0 4px;
}

/* ── Anuncio del ganador ────────────────────────────────── */
.winner-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(30,21,38,.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: gateFade .22s ease;
}

.winner-card {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 38px 30px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: gateIn .3s cubic-bezier(.21,1.02,.73,1);
}

.winner-card::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,24,91,.20) 0%, transparent 68%);
  pointer-events: none;
}

.winner-crown {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 36px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--grape) 100%);
  box-shadow: 0 14px 34px rgba(194,24,91,.34);
  animation: crownPop .5s cubic-bezier(.21,1.02,.73,1);
}

@keyframes crownPop {
  0%   { transform: scale(.4) rotate(-14deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(4deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.winner-kicker {
  position: relative;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-600);
  margin-bottom: 10px;
}

.winner-name {
  position: relative;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.winner-phone {
  position: relative;
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 26px;
}

.winner-actions {
  position: relative;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.winner-actions .lbtn { flex: 1; min-width: 140px; height: 48px; font-size: 14.5px; }

/* Mini confirmación (reutiliza el estilo del gate) */
.mini-confirm-text {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ---------------------------------------------------------
   15. RESEÑAS DE CLIENTES
   --------------------------------------------------------- */
.estrellas {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
  font-size: 15px;
}
.estrellas--lg { font-size: 21px; }

.star { color: var(--line-2); }
.star.on { color: var(--amber); }

.resenas-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ── Tarjeta de resumen ─────────────────────────────────── */
.resumen-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--sh-sm);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.resumen-score {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.resumen-numero {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.resumen-lado { min-width: 0; }

.resumen-total {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 7px;
}

.resumen-barras {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 0;
}

.resumen-barra {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 2px 0;
  text-align: left;
  transition: opacity .15s ease;
}
.resumen-barra:hover { opacity: .72; }

.barra-label { width: 30px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

.barra-track {
  flex: 1;
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  overflow: hidden;
}

.barra-fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--amber);
  transition: width .5s cubic-bezier(.21,1.02,.73,1);
}

.barra-count {
  width: 26px;
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.resumen-btn { width: 100%; height: 48px; font-size: 14.5px; }

.resumen-nota {
  font-size: 11.5px;
  color: var(--ink-4);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ── Lista de reseñas ───────────────────────────────────── */
.resenas-col { min-width: 0; }

.resenas-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resena {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
  animation: resenaIn .28s ease;
}

.resena:hover { box-shadow: var(--sh-md); border-color: var(--line-2); }

@keyframes resenaIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.resena-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.resena-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.resena-meta { min-width: 0; }

.resena-nombre {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.resena-fecha {
  font-size: 12.5px;
  color: var(--ink-4);
  margin-top: 2px;
}

.resena .estrellas { margin-bottom: 10px; }

.resena-texto {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.resenas-vacio {
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 44px 26px;
  text-align: center;
  color: var(--ink-3);
}
.resenas-vacio strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

.resenas-mas-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* ── Modal de reseña ────────────────────────────────────── */
.resena-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 32px;
  position: relative;
  text-align: left;
  animation: gateIn .26s cubic-bezier(.21,1.02,.73,1);
}

.resena-cerrar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink-3);
  transition: background .15s ease, color .15s ease;
}
.resena-cerrar:hover { background: var(--bg-2); color: var(--ink); }

.resena-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 40px;
}

.resena-modal-sub {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 22px;
}

.resena-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.resena-campo { margin-bottom: 18px; }

.resena-input,
.resena-textarea {
  width: 100%;
  border: 2px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--surface-2);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.resena-input { height: 48px; }
.resena-textarea { min-height: 118px; resize: vertical; line-height: 1.6; }

.resena-input:focus,
.resena-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(194,24,91,.13);
  background: #fff;
}

/* Selector de estrellas */
.resena-rating {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.rating-star {
  font-size: 34px;
  line-height: 1;
  color: var(--line-2);
  transition: transform .12s ease, color .12s ease;
  padding: 0;
  border-radius: 6px;
}
.rating-star:hover { transform: scale(1.14); }
.rating-star.on { color: var(--amber); }

.resena-rating-texto {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  min-height: 19px;
  margin-bottom: 18px;
}

.resena-contador {
  text-align: right;
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.resena-error {
  min-height: 19px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-600);
  margin-bottom: 8px;
}

.resena-actions { display: flex; gap: 11px; }
.resena-actions .lbtn { flex: 1; height: 48px; font-size: 14.5px; }

/* Estado de éxito */
.resena-exito { text-align: center; padding: 12px 0 4px; }

.resena-exito-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(150deg, var(--mint) 0%, var(--mint-600) 100%);
  box-shadow: 0 14px 34px rgba(14,156,137,.32);
  animation: crownPop .5s cubic-bezier(.21,1.02,.73,1);
}

.resena-exito h3 { font-size: 24px; margin-bottom: 10px; }
.resena-exito p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ---------------------------------------------------------
   15b. CARRUSEL DE FOTOS
   --------------------------------------------------------- */
.section--carrusel { background: var(--bg); }

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.carrusel {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--surface);
}

.carrusel-vista { overflow: hidden; }

.carrusel-pista {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.carrusel-slide {
  flex: 0 0 100%;
  position: relative;
}

.carrusel-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.carrusel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: background .16s ease;
}
.carrusel-nav:hover { background: #fff; }
.carrusel-prev { left: 14px; }
.carrusel-next { right: 14px; }

.carrusel-puntos {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.carrusel-punto {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.65);
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.carrusel-punto.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ---------------------------------------------------------
   16. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { height: 380px; order: -1; }
  .hero-text { max-width: none; }
  .site-nav { display: none; }
  .nav-toggle { display: grid; margin-left: 0; }
  .mobile-nav { display: block; }
  .access-btn { margin-left: auto; }

  .sorteo-layout { grid-template-columns: minmax(0, 1fr); }

  .resenas-layout { grid-template-columns: minmax(0, 1fr); }
  .resumen-card { position: static; }
  .resumen-score { gap: 14px; }
  .resumen-numero { font-size: 44px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  /* Header compacto: evita que se corte el botón de menú */
  .header-inner { gap: 10px; }
  .logo { gap: 9px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 11px; }
  .logo-mark svg { width: 19px; height: 19px; }
  .logo-text { font-size: 18px; }
  .logo-text small { display: none; }
  .access-btn { padding: 0 13px; font-size: 13px; margin-left: auto; gap: 6px; }
  .access-btn svg { width: 14px; height: 14px; }
  .nav-toggle { width: 42px; height: 42px; }

  .section { padding: 54px 0; }
  .hero { padding: 40px 0 56px; }

  .hero-visual { height: 300px; }
  .scoop-stack { width: 220px; }
  .scoop { width: 150px; height: 76px; margin-bottom: -26px; }
  .cone { width: 122px; height: 140px; }
  .float-chip { font-size: 12px; padding: 7px 13px; }
  .float-chip--a { left: 0; }
  .float-chip--b { right: 0; }

  .hero-actions .lbtn { width: 100%; }
  .hero-facts { gap: 20px; }

  /* Menú: 1 columna en móvil (antes forzaba 330px y desbordaba) */
  .menu-list {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    gap: 0;
  }
  .menu-item { padding: 11px 0; gap: 8px; }
  .menu-item-name { font-size: 14.5px; }
  .menu-item-price { font-size: 15.5px; }

  /* Grillas a prueba de pantallas chicas */
  .promo-grid,
  .contact-grid,
  .resenas-layout,
  .sorteo-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  /* Carrusel en móvil */
  .carrusel-nav { width: 36px; height: 36px; font-size: 22px; }
  .carrusel-prev { left: 8px; }
  .carrusel-next { right: 8px; }
  .carrusel-puntos { bottom: 10px; }
  .carrusel-slide img { aspect-ratio: 4 / 5; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .product-card { padding: 15px; }

  .promo-grid { grid-template-columns: 1fr; }

  .cat-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-inline: -20px;
    padding-inline: 20px;
    scrollbar-width: none;
  }
  .cat-filter::-webkit-scrollbar { display: none; }
  .cat-pill { flex: 0 0 auto; }

  .contact-cta { padding: 26px 20px; }
  .contact-cta-actions .lbtn { width: 100%; }

  .footer-top { flex-direction: column; gap: 26px; }
  .footer-links { gap: 34px; }
  .gate-modal { padding: 26px 22px; }

  .ruleta-panel { padding: 18px; }
  .ruleta-status { font-size: 13.5px; margin-top: 18px; }
  .sorteo-card { padding: 18px; }
  .winner-card { padding: 30px 22px 24px; }
  .winner-actions .lbtn { width: 100%; min-width: 0; }
  .sorteo-form-actions { flex-direction: column; }

  .resena { padding: 18px; }
  .resena-modal { padding: 24px 20px; }
  .resena-modal-title { font-size: 21px; }
  .rating-star { font-size: 30px; }
  .resena-actions { flex-direction: column; }
  .resumen-card { padding: 20px; }
}

/* ---------------------------------------------------------
   17. BOTONES FLOTANTES (solo móvil)
   --------------------------------------------------------- */
.order-bar { display: none; }
.to-top { display: none; }

@media (max-width: 640px) {
  /* WhatsApp: botón compacto flotante (esquina inferior derecha) */
  .order-bar {
    display: block;
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 50;
    transition: transform .28s ease, opacity .28s ease;
  }

  .order-bar.is-hidden {
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
  }

  .order-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint-600) 100%);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(14,156,137,.42);
    transition: transform .15s ease;
  }

  .order-bar-btn:active { transform: scale(.96); }

  /* Volver arriba: círculo flotante (esquina inferior izquierda) */
  .to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    z-index: 50;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(30,21,38,.16);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }

  .to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .to-top:active { transform: scale(.94); }

  body { padding-bottom: 76px; }
}

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

body.gate-open { overflow: hidden; }
