/* ==========================================================================
   La Téquería Bubble Tea — hoja de estilos principal
   Mobile-first: los estilos base son para móvil; @media (min-width) amplía.
   Índice:
     1. Fuentes y variables      7. Recompensas
     2. Base y utilidades        8. Crea tu bubble tea (interactivo)
     3. Cabecera y menú          9. Top especiales  9b. Preguntas frecuentes
     4. Hero                    10. Encuéntranos
     5. Animaciones             11. Footer y botón de idioma
     6. Promociones             12. Preferencias de movimiento
   ========================================================================== */

/* 1. FUENTES Y VARIABLES -------------------------------------------------- */
@font-face {
  font-family: "Jua";
  src: url("../fonts/jua-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple-main: #9d4edd;
  --purple-dark: #5a189a;
  --purple-text: #7b2cbf; /* morado legible sobre crema/blanco en texto pequeño */
  --cream-main: #fff8e6;
  --cream-dark: #fdf0cd;
  --text-main: #1f1f1f;
  /* Variables semánticas: en modo claro valen lo mismo que antes */
  --bg: #fff;
  --surface: var(--cream-main);
  --surface-2: var(--cream-dark);
  --card: #fff;
  --muted: #4b4b4b;
  --price: #7a5c2e;
  --legal-text: #333;
  --accent-strong: var(--purple-dark);
  --shine-a: var(--purple-dark);
  --shine-b: var(--purple-main);
  --footer-overlay: transparent;
  --line: rgba(0, 0, 0, 0.12);
  --title: "Jua", "Trebuchet MS", system-ui, sans-serif;
  --standard: "Lilita One", "Jua", system-ui, sans-serif;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: only light; /* por defecto SIEMPRE claro, aunque el dispositivo esté en oscuro */
}

/* 2. BASE Y UTILIDADES ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text-main);
  background: var(--bg);
  overflow-x: clip;
}
img,
svg,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--purple-dark);
  color: #fff;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}
.menu-title {
  font-family: var(--title);
  font-size: clamp(1.9rem, 7.5vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
}
.purple-button {
  display: inline-block;
  padding: 0.55em 1.5em;
  font-family: var(--title);
  font-size: 1.4rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--purple-main);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(157, 78, 221, 0.4);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s;
}
.purple-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(157, 78, 221, 0.5);
  background: var(--purple-text);
}
.shine {
  color: var(--shine-a);
  background: linear-gradient(
    90deg,
    var(--shine-a) 0%,
    var(--shine-b) 25%,
    var(--shine-a) 50%,
    var(--shine-b) 75%,
    var(--shine-a) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}

/* 3. CABECERA Y MENÚ ------------------------------------------------------ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--header-h);
  padding: 0 12px 0 16px;
  background: var(--bg);
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.logo {
  display: block;
  margin-right: auto;
  line-height: 0;
}
.logo-dark {
  display: none !important;
}
.logo img {
  height: 44px;
  width: auto;
}
.hamburger {
  position: relative;
  z-index: 102;
  display: grid;
  place-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--purple-main);
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s,
    background 0.3s;
}
.hamburger[aria-expanded="true"] span {
  background: var(--cream-main);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
/* Un solo <nav>: pantalla completa en móvil, barra horizontal en escritorio */
.nav-desktop {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--purple-main);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease),
    visibility 0s 0.3s;
}
.nav-desktop.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}
.nav-desktop a {
  padding: 10px 24px;
  font-family: var(--title);
  font-size: 2rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-main);
  border-radius: 999px;
}
.nav-desktop a[aria-current] {
  background: rgba(255, 255, 255, 0.18);
}
body.menu-open {
  overflow: hidden;
}

/* 4. HERO ----------------------------------------------------------------- */
#hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  min-height: max(560px, calc(100svh - var(--header-h)));
  padding: 24px 20px 48px;
  text-align: center;
  overflow: hidden;
}
#hero h1 {
  font-family: var(--title);
  font-size: clamp(2.2rem, 10.5vw, 4.2rem);
  line-height: 1.05;
  text-transform: uppercase;
}
#hero h1 span {
  display: block;
  font-size: 1.3em;
}
#hero p {
  max-width: 21rem;
  margin: 18px auto 28px;
  font-size: 1.15rem;
}
.hero-bubbles {
  position: absolute;
  z-index: -1;
  height: auto;
  animation:
    bubble-in 0.9s var(--ease) both,
    float 6s ease-in-out 0.9s infinite alternate;
}
#hero_bubble_1 {
  width: 42vw;
  left: -4vw;
  top: 2%;
  --from-x: -60px;
}
#hero_bubble_2 {
  width: 31vw;
  right: -3vw;
  top: 13%;
  --from-x: 60px;
  animation-delay: 0.1s, 1s;
}
#hero_bubble_3 {
  width: 31vw;
  left: 1vw;
  bottom: 3%;
  --from-x: -60px;
  animation-delay: 0.2s, 1.1s;
}
#hero_bubble_4 {
  width: 42vw;
  right: -6vw;
  bottom: -1%;
  --from-x: 60px;
  animation-delay: 0.3s, 1.2s;
}

/* 5. ANIMACIONES ---------------------------------------------------------- */
@keyframes bubble-in {
  from {
    opacity: 0;
    scale: 0.6;
    translate: var(--from-x, 0) 20px;
  }
}
@keyframes float {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(-14px) rotate(2.5deg);
  }
}
@keyframes shine {
  to {
    background-position: -200% 0;
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}
@keyframes from-left {
  from {
    opacity: 0;
    translate: -45% 0;
  }
}
@keyframes from-right {
  from {
    opacity: 0;
    translate: 45% 0;
  }
}
@keyframes pop-rotate {
  from {
    opacity: 0;
    scale: 0.7;
    rotate: -18deg;
  }
}
/* Revelado al hacer scroll (lo activa main.js con IntersectionObserver) */
.js .reveal:not(.in) {
  opacity: 0;
}
.reveal.in {
  animation: reveal 0.7s var(--ease) var(--d, 0s) backwards;
}
/* Animaciones ligadas al scroll: solo navegadores con animation-timeline */
@supports (animation-timeline: view()) {
  .sd-left {
    animation: from-left linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
  .sd-right {
    animation: from-right linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
  .sd-pop {
    animation: pop-rotate linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
}

/* 6. PROMOCIONES ---------------------------------------------------------- */
#promociones {
  padding: 64px 16px 36px;
  text-align: center;
  background: var(--surface);
  border-radius: 50% 50% 0 0 / 56px 56px 0 0;
  overflow-x: clip;
}
#thursday-promo {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1 / 0.95;
  margin: 0 auto 16px;
  background: url("../img/ui/promo-circles-800.webp") center / contain no-repeat;
}
#thursday-promo img {
  position: absolute;
  width: 62%;
}
#bubble-tea-1 {
  left: -2%;
  top: 2%;
  rotate: -8deg;
  z-index: 1;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25));
}
#bubble-tea-2 {
  right: -2%;
  bottom: 2%;
  rotate: 6deg;
  z-index: 2;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25));
}
#promociones p {
  font-size: 1.15rem;
}
.promo-time {
  margin-bottom: 4px;
  font-family: var(--title);
  font-size: 1.7rem !important;
}
.promo-text {
  max-width: 20rem;
  margin: 0 auto;
  font-size: 1.25rem !important;
  line-height: 1.3;
}

/* 7. RECOMPENSAS ---------------------------------------------------------- */
#recompensas {
  padding: 28px 16px 72px;
  text-align: center;
  background: var(--surface);
  border-radius: 0 0 50% 50% / 0 0 56px 56px;
}
#recompensas img {
  width: min(82%, 400px);
  margin: 8px auto 28px;
  rotate: -5deg;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
#recompensas p {
  font-size: 1.2rem;
  line-height: 1.35;
}

/* 8. CREA TU BUBBLE TEA --------------------------------------------------- */
#bubble-menu {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 16px 48px;
}
.builder {
  display: block;
}
.accordion {
  margin-bottom: 12px;
  background: var(--surface-2);
  border-radius: 22px;
  overflow: hidden;
}
.accordion summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 20px;
  font-family: var(--title);
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin: -4px 4px 0 0;
  border-right: 3px solid var(--purple-text);
  border-bottom: 3px solid var(--purple-text);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.accordion[open] summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}
.step-title {
  flex: 1;
}
.sel {
  max-width: 48%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  color: var(--purple-text);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.accordion .content {
  padding: 4px 16px 20px;
}
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  .accordion::details-content,
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.4s var(--ease),
      content-visibility 0.4s allow-discrete;
  }
  .accordion[open]::details-content,
  .faq-item[open]::details-content {
    block-size: auto;
  }
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
fieldset:disabled {
  opacity: 0.45;
}
.section-title,
legend {
  padding: 0;
  margin-bottom: 10px;
  font-family: var(--title);
  font-size: 1.1rem;
  text-decoration: underline;
  text-decoration-color: var(--purple-main);
  text-underline-offset: 4px;
}
.hint {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
}
.content > * + * {
  margin-top: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Radios/checkboxes accesibles: el input se oculta y el span hace de botón */
.opt {
  position: relative;
  display: block;
  cursor: pointer;
}
.opt input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip .face {
  display: block;
  padding: 0.5em 1em;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}
.chip:hover .face {
  border-color: var(--purple-main);
}
.opt input:checked + .face {
  color: #fff;
  background: var(--purple-main);
  border-color: var(--purple-main);
}
.opt input:checked + .face {
  animation: tap 0.35s var(--ease);
}
@keyframes tap {
  50% {
    transform: scale(1.07);
  }
}
.opt input:focus-visible + .face {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}
.card {
  background: var(--card);
  border-radius: 16px;
  text-align: center;
}
.size-card .face {
  display: block;
  padding: 14px 8px;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.size-card:hover .face {
  transform: translateY(-2px);
}
.size-card input:checked + .face {
  color: var(--text-main);
  background: var(--card);
  border-color: var(--purple-main);
  box-shadow: 0 6px 16px rgba(157, 78, 221, 0.3);
}
.emoji {
  display: block;
  font-family: var(--title);
  font-size: 1.6rem;
}
.name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.price {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--price);
}
.block .face {
  display: block;
  padding: 0.75em 1em;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 14px;
}
.block:hover .face {
  border-color: var(--purple-main);
}
.extra {
  cursor: pointer;
}
.extra .face {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0.8em 1em;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 600;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.extra + .extra {
  margin-top: 8px;
}
.extra .face::after {
  content: "";
  order: 3;
  width: 22px;
  height: 22px;
  border: 2px solid var(--purple-main);
  border-radius: 7px;
  background: var(--card) center / 14px no-repeat;
  flex: none;
}
.extra .price {
  display: inline;
  margin-left: auto;
  font-size: 0.95rem;
}
.extra input:checked + .face {
  color: var(--text-main);
  background: var(--card);
  border-color: var(--purple-main);
  animation: none;
}
.extra input:checked + .face::after {
  background-color: var(--purple-main);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3L12 3.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.accordion.done summary .step-title::after {
  content: " ✓";
  color: var(--purple-text);
}

/* Resumen del pedido: barra fija inferior en móvil, tarjeta lateral en escritorio */
.order {
  position: sticky;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--card);
  border: 2px solid var(--surface-2);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(90, 24, 154, 0.25);
}
html:not(.js) .order {
  display: none;
}
.order-cup {
  flex: none;
  width: 46px;
}
.order-info {
  flex: 1;
  min-width: 0;
}
.order-title {
  display: none;
  font-family: var(--title);
  font-size: 1.4rem;
}
.order-lines {
  display: -webkit-box;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-lines li {
  display: inline;
}
.order-lines li + li::before {
  content: " · ";
}
.order-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--title);
  font-size: 1.15rem;
}
.order-total strong {
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--purple-text);
}
.order-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.btn-mini {
  min-height: 40px;
  padding: 0.55em 1em;
  font: 700 0.85rem system-ui, sans-serif;
  color: #fff;
  background: var(--purple-main);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
}
.btn-mini:hover {
  background: var(--purple-text);
}
.btn-mini:active {
  transform: scale(0.96);
}
.btn-link {
  min-height: 36px;
  padding: 8px 4px;
  font: 600 0.8rem system-ui, sans-serif;
  color: var(--purple-text);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
#cup-preview {
  width: 100%;
  height: auto;
}
#cup-preview .liquid,
#cup-preview .foam {
  transition:
    fill 0.5s,
    opacity 0.4s,
    transform 0.5s var(--ease);
}
#cup-preview .pearls circle {
  transition: fill 0.4s;
}
#cup-preview .pearls {
  transition: opacity 0.4s;
}
.order.bump #cup-preview {
  animation: tap 0.4s var(--ease);
}

/* 9. TOP ESPECIALES ------------------------------------------------------- */
#special-teas {
  padding-top: 48px;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 70px 70px;
}
#special-teas .menu-title {
  margin-bottom: 36px;
}
.teaDiv {
  position: relative;
  width: 120%;
  height: 300px;
  overflow: hidden;
  rotate: var(--tilt, 0deg);
  border-top-left-radius: 15%;
  border-top-right-radius: 10%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.teaDiv h3 {
  width: fit-content;
  font-family: var(--standard);
  font-size: 2.5rem;
  line-height: 1;
  text-transform: uppercase;
}
.teaDiv img {
  position: absolute;
  bottom: 0;
  object-fit: cover;
  transition: scale 0.4s var(--ease);
}
.teaDiv .tea-img-left,
.teaDiv .tea-img-right {
  filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.4));
}
.teaDiv .tea-img-right {
  filter: drop-shadow(-10px 10px 5px rgba(0, 0, 0, 0.4));
}
.teaDiv:hover .tea-img-left,
.teaDiv:hover .tea-img-right {
  scale: 1.04;
}
#tarococo {
  --tilt: 0deg;
  width: 100%;
  padding-top: 20px;
  border-top-left-radius: 20%;
  border-top-right-radius: 20%;
  background: rgb(211, 154, 234);
  color: rgb(92, 36, 115);
}
#tarococo h3 {
  margin-left: 20px;
}
#tarococo .tea-img-right {
  width: 65%;
  right: -60px;
  transform: rotate(-7deg);
}
#coco-img {
  width: 40%;
  right: 20%;
  top: 55%;
  transform: rotate(7deg) scaleX(-1);
}
#pinklychee,
#meloncito,
#lotus,
#sueñodemango {
  margin-left: -10%;
  margin-top: -55px;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.4);
}
#pinklychee {
  --tilt: 6deg;
  background: rgb(255, 192, 203);
  color: rgb(140, 52, 70);
}
#pinklychee .tea-img-left {
  width: 55%;
  left: -5%;
}
#lychee-img {
  width: 40%;
  left: 15%;
  top: 55%;
}
#pinklychee h3 {
  position: absolute;
  top: 20px;
  left: 36%;
  rotate: -6deg;
}
#meloncito {
  --tilt: -6deg;
  background: rgb(188, 255, 167);
  color: rgb(30, 110, 50);
}
#melon-img {
  width: 40%;
  right: 15%;
  top: 40%;
  transform: rotate(7deg) scaleX(-1);
}
#meloncito .tea-img-right {
  width: 55%;
  top: 30px;
  right: -30px;
}
#meloncito h3 {
  position: absolute;
  top: 20px;
  left: 80px;
  rotate: 6deg;
}
#lotus {
  --tilt: 6deg;
  background: rgb(255, 209, 168);
  color: rgb(140, 76, 25);
}
#lotus .tea-img-left {
  width: 55%;
  left: -5%;
}
#lotus-img {
  width: 40%;
  left: 15%;
  top: 50%;
}
#lotus h3 {
  position: absolute;
  top: 20px;
  left: 37%;
  width: 50%;
  text-align: right;
  rotate: -6deg;
}
#sueñodemango {
  --tilt: 0deg;
  height: 250px;
  background: rgb(250, 182, 104);
  color: rgb(125, 62, 0);
}
#sueñodemango .tea-img-right {
  width: 55%;
  top: 10px;
  right: -30px;
  transform: rotate(-7deg);
}
#mango-img {
  width: 40%;
  right: 17%;
  top: 45%;
  transform: rotate(7deg) scaleX(-1);
}
#sueñodemango h3 {
  position: absolute;
  top: 20px;
  left: 80px;
  width: 50%;
  text-align: left;
}

/* Tablet: se mantiene el diseño de móvil, en una columna centrada */
@media (min-width: 600px) and (max-width: 899px) {
  #special-teas {
    width: min(100%, 620px);
    margin: 0 auto;
  }
}

/* Escritorio (>= 900px): cinco tarjetas verticales con el vaso "saliendo" de cada una.
   El diseño de móvil (arriba) no se toca. */
@media (min-width: 900px) {
  #special-teas {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: clamp(14px, 1.8vw, 30px);
    max-width: 1500px;
    margin: 0 auto;
    padding: 64px clamp(20px, 3vw, 48px) 110px;
    overflow-x: clip; /* los vasos grandes de los extremos no deben provocar scroll horizontal */
    border-radius: 0;
    background: radial-gradient(60% 320px at 50% 0, rgba(157, 78, 221, 0.12), transparent 72%);
  }
  #special-teas .menu-title {
    grid-column: 1 / -1;
    margin-bottom: 72px;
  }
  #special-teas .teaDiv {
    --cup-rot: -6deg;
    position: relative;
    width: auto;
    height: clamp(400px, 32vw, 480px);
    margin: 0;
    padding: clamp(30px, 3vw, 46px) 12px 0;
    overflow: visible;
    rotate: none;
    border-radius: 999px 999px 30px 30px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
    transition:
      translate 0.45s var(--ease),
      box-shadow 0.45s var(--ease);
  }
  /* Ondulación: la 2.ª y la 4.ª tarjeta bajan para dar ritmo */
  #special-teas #pinklychee,
  #special-teas #lotus {
    --cup-rot: 6deg;
    margin-top: 58px;
  }
  #special-teas .teaDiv:hover {
    translate: 0 -14px;
    box-shadow: 0 30px 44px rgba(0, 0, 0, 0.24);
  }
  /* Círculo claro detrás del vaso, como en la portada */
  #special-teas .teaDiv::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 92%;
    aspect-ratio: 1;
    translate: -50% 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: scale 0.45s var(--ease);
  }
  #special-teas .teaDiv:hover::before {
    scale: 1.08;
  }
  #special-teas .teaDiv h3 {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    width: auto;
    margin: 0 auto;
    font-size: clamp(1.55rem, 2.25vw, 2.5rem);
    line-height: 1;
    text-align: center;
    text-wrap: balance;
    rotate: none;
  }
  /* Vaso grande que sobresale por abajo */
  #special-teas .teaDiv .tea-img-left,
  #special-teas .teaDiv .tea-img-right {
    position: absolute;
    top: auto;
    right: auto;
    bottom: -3%;
    left: 50%;
    z-index: 1;
    width: 152%;
    max-width: none;
    translate: -50% 0;
    transform: rotate(var(--cup-rot));
    filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.32));
    transition:
      transform 0.5s var(--ease),
      scale 0.5s var(--ease);
  }
  #special-teas .teaDiv:hover .tea-img-left,
  #special-teas .teaDiv:hover .tea-img-right {
    transform: rotate(calc(var(--cup-rot) * -0.35)) translateY(-8px);
    scale: 1.05;
  }
  /* Fruta delante del vaso, alternando lados */
  #special-teas .teaDiv > img:not(.tea-img-left):not(.tea-img-right) {
    position: absolute;
    top: auto;
    bottom: -3%;
    z-index: 3;
    width: 52%;
    transform: rotate(-9deg);
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s var(--ease);
  }
  #special-teas #coco-img,
  #special-teas #melon-img,
  #special-teas #mango-img {
    left: auto;
    right: -9%;
  }
  #special-teas #lychee-img,
  #special-teas #lotus-img {
    left: -9%;
    right: auto;
    transform: rotate(9deg);
  }
  #special-teas .teaDiv:hover > img:not(.tea-img-left):not(.tea-img-right) {
    transform: rotate(0deg) scale(1.1);
  }
  /* Entrada escalonada al hacer scroll */
  #special-teas .teaDiv:nth-child(3) {
    --d: 0.1s;
  }
  #special-teas .teaDiv:nth-child(4) {
    --d: 0.2s;
  }
  #special-teas .teaDiv:nth-child(5) {
    --d: 0.3s;
  }
  #special-teas .teaDiv:nth-child(6) {
    --d: 0.4s;
  }
}

/* 9b. PREGUNTAS FRECUENTES ------------------------------------------------ */
#faq {
  margin: 28px 0 8px;
  padding: 64px 16px 72px;
  background: var(--surface);
  border-radius: 50% / 56px;
  overflow-x: clip;
}
.faq-wrap {
  display: grid;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.faq-intro {
  text-align: center;
}
.faq-intro .menu-title {
  margin-bottom: 14px;
}
.faq-intro p {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted);
}
.faq-visual {
  display: none;
}
.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(90, 24, 154, 0.1);
  transition: box-shadow 0.3s;
}
.faq-item[open] {
  box-shadow: 0 10px 26px rgba(157, 78, 221, 0.28);
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin: -4px 2px 0 0;
  border-right: 3px solid var(--purple-text);
  border-bottom: 3px solid var(--purple-text);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}
/* El número hace de "perla" de bubble tea */
.faq-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--title);
  font-size: 1rem;
  color: #fff;
  background: var(--purple-main);
  border-radius: 50%;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.14);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-num {
  transform: scale(1.08) rotate(-8deg);
}
.faq-item h3 {
  flex: 1;
  font-family: var(--title);
  font-size: 1.1rem;
  line-height: 1.25;
}
.faq-a {
  padding: 0 20px 20px 68px;
}
.faq-a p {
  margin: 0;
  line-height: 1.6;
}
.faq-a a {
  color: var(--purple-text);
  font-weight: 600;
  text-underline-offset: 3px;
}
.faq-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 22px;
  text-align: center;
}
.faq-cta p {
  font-family: var(--title);
  font-size: 1.3rem;
}
@media (min-width: 960px) {
  #faq {
    padding: 96px 40px 104px;
    border-radius: 50% / 90px;
  }
  .faq-wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: 56px;
    align-items: start;
  }
  .faq-intro {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    text-align: left;
  }
  .faq-intro .menu-title {
    text-align: left;
  }
  .faq-intro p {
    margin: 0;
  }
  .faq-visual {
    display: block;
    position: relative;
    width: min(320px, 100%);
    aspect-ratio: 1;
    margin-top: 28px;
    background: url("../img/ui/promo-circles-800.webp") center / contain no-repeat;
  }
  .faq-cup {
    position: absolute;
    left: 12%;
    top: 6%;
    width: 62%;
    rotate: -8deg;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.25));
    animation: float 6s ease-in-out infinite alternate;
  }
  .faq-cta {
    justify-items: start;
    text-align: left;
  }
}

/* 10. ENCUÉNTRANOS -------------------------------------------------------- */
.find-us {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 16px 56px;
}
.find-us-container {
  display: grid;
  gap: 16px;
}
.map {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}
.info {
  display: grid;
  gap: 12px;
  align-content: start;
}
.info-block {
  padding: 18px 20px;
  background: var(--surface-2);
  border-radius: 20px;
}
.info-block h3 {
  margin-bottom: 4px;
  font-family: var(--title);
  font-size: 1.3rem;
}
.info-block a {
  display: inline-block;
  padding: 10px 0;
  color: var(--purple-text);
  font-weight: 600;
}

/* 11. FOOTER Y BOTÓN DE IDIOMA -------------------------------------------- */
#site-footer {
  margin-top: 24px;
  padding: 40px 20px 28px;
  background:
    linear-gradient(var(--footer-overlay), var(--footer-overlay)),
    var(--surface) url("../img/ui/footer-pattern-700.webp") center / 360px;
  border-radius: 40px 40px 0 0;
}
.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand {
  grid-column: 1 / -1;
}
.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
}
.footer-brand p {
  max-width: 28rem;
}
.footer-section h3 {
  margin-bottom: 6px;
  font-family: var(--title);
  font-size: 1.15rem;
  color: var(--purple-text);
}
.footer-section a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}
.footer-section a:hover {
  color: var(--purple-text);
  text-decoration: underline;
}
.footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.made-by a {
  display: inline-block;
  padding: 12px 2px;
  color: var(--purple-text);
  font-weight: 600;
}
.lang-switch {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease);
}
.lang-switch:hover {
  transform: scale(1.1);
}
.lang-switch svg {
  width: 100%;
  height: 100%;
}

/* Páginas legales */
.legal-container {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 32px 20px 0;
  color: var(--legal-text);
  line-height: 1.6;
}
.legal-container h1 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-family: var(--title);
  font-size: 2.2rem;
  color: var(--purple-text);
  border-bottom: 2px solid #e0aaff;
}
.legal-container h2 {
  margin: 30px 0 12px;
  font-size: 1.4rem;
  color: var(--accent-strong);
}
.legal-container p,
.legal-container ul {
  margin-bottom: 15px;
}
.legal-container ul {
  padding-left: 20px;
}
.legal-container li {
  margin-bottom: 8px;
}
.legal-container a {
  color: var(--purple-text);
  text-decoration: underline;
}

/* ==========================================================================
   TABLET (≥ 768px) Y ESCRITORIO
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --header-h: 72px;
  }
  .navbar {
    padding: 0 28px;
  }
  .logo img {
    height: 52px;
  }
  .hamburger {
    display: none;
  }
  .nav-desktop {
    order: 2;
    position: static;
    flex-direction: row;
    gap: 2px;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-desktop a {
    padding: 8px 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--text-main);
    transition:
      background 0.2s,
      color 0.2s;
  }
  .nav-desktop a:hover,
  .nav-desktop a[aria-current] {
    color: var(--accent-strong);
    background: var(--surface-2);
  }

  #hero h1 {
    font-size: clamp(3.4rem, 6vw, 5.6rem);
  }
  #hero p {
    max-width: 26rem;
    font-size: 1.35rem;
  }
  #hero_bubble_1 {
    width: min(30vw, 480px);
    left: 2%;
    top: 4%;
  }
  #hero_bubble_2 {
    width: min(24vw, 340px);
    right: 6%;
    top: 8%;
  }
  #hero_bubble_3 {
    width: min(20vw, 290px);
    left: 22%;
    bottom: -2%;
  }
  #hero_bubble_4 {
    width: min(26vw, 380px);
    right: 20%;
    bottom: -4%;
  }

  #promociones {
    padding-top: 84px;
    border-radius: 50% 50% 0 0 / 90px 90px 0 0;
  }
  #thursday-promo {
    width: 560px;
  }
  .promo-time {
    font-size: 2rem !important;
  }
  .promo-text {
    max-width: none;
    font-size: 1.5rem !important;
  }
  #recompensas {
    border-radius: 0 0 50% 50% / 0 0 90px 90px;
  }
  #recompensas img {
    width: 420px;
  }

  #bubble-menu {
    padding-top: 72px;
  }
  .accordion summary {
    font-size: 1.3rem;
  }

  .find-us-container {
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
  }
  .map iframe {
    height: 100%;
    min-height: 380px;
  }

  #site-footer {
    padding: 56px 40px 32px;
    border-radius: 56px 56px 0 0;
    background-size: auto, 520px;
  }
  .footer-container {
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .lang-switch {
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
  }
  .legal-container h1 {
    font-size: 2.6rem;
  }
}

@media (min-width: 960px) {
  .nav-desktop a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  .builder {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
    gap: 32px;
    align-items: start;
  }
  .order {
    top: calc(var(--header-h) + 24px);
    bottom: auto;
    flex-direction: column;
    margin-top: 0;
    padding: 28px 24px;
    text-align: center;
    border-radius: 32px;
  }
  .order-cup {
    width: 150px;
  }
  .order-title {
    display: block;
    margin-bottom: 8px;
  }
  .order-lines {
    display: block;
    margin-bottom: 14px;
    font-size: 0.95rem;
  }
  .order-lines li {
    display: block;
    padding: 2px 0;
  }
  .order-lines li + li::before {
    content: none;
  }
  .order-total {
    justify-content: center;
    margin-bottom: 14px;
  }
  .order-actions {
    align-items: center;
    width: 100%;
  }
  .order-actions .btn-mini {
    width: 100%;
    padding: 0.8em 1em;
    font-size: 1rem;
  }
}

/* 12. PREFERENCIAS DE MOVIMIENTO ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal:not(.in) {
    opacity: 1;
  }
}


/* ==========================================================================
   13. INTERRUPTOR DE MODO NOCHE
   - Por defecto la web es SIEMPRE clara (ignora el modo del dispositivo).
   - Solo se oscurece cuando la persona activa el interruptor de la cabecera
     (html[data-tq-theme="dark"]). La elección se mantiene solo durante la sesión.
   ========================================================================== */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 68px;
  height: 48px;
  margin-right: 2px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle .track {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--purple-main);
  transition: background 0.3s;
}
.theme-toggle .knob {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--purple-main);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}
.theme-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.theme-toggle .t-moon,
.theme-toggle .t-sun {
  position: absolute;
  top: 9px;
  width: 14px;
  height: 14px;
  color: var(--purple-text);
  opacity: 0.85;
}
.theme-toggle .t-moon {
  right: 8px;
}
.theme-toggle .t-sun {
  left: 8px;
  display: none;
}
.theme-toggle .k-moon {
  display: none;
}
.theme-toggle[aria-checked="true"] .knob {
  transform: translateX(26px);
}
.theme-toggle[aria-checked="true"] .k-sun,
.theme-toggle[aria-checked="true"] .t-moon {
  display: none;
}
.theme-toggle[aria-checked="true"] .k-moon,
.theme-toggle[aria-checked="true"] .t-sun {
  display: block;
}
.theme-toggle:hover .knob {
  transform: scale(1.1);
}
.theme-toggle[aria-checked="true"]:hover .knob {
  transform: translateX(26px) scale(1.1);
}
@media (min-width: 768px) {
  .theme-toggle {
    order: 3;
    margin-left: 10px;
    margin-right: 0;
  }
}
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    fill 0.35s ease !important;
}

html[data-tq-theme="dark"] {
  color-scheme: dark;
  --bg: #150c20;
  --surface: #221334;
  --surface-2: #2f1c47;
  --card: #3b2659;
  --text-main: #f5edfc;
  --muted: #d3c3e8;
  --price: #f0c987;
  --legal-text: #e8def5;
  --purple-text: #cfa4f7;
  --accent-strong: #e2c6ff;
  --shine-a: #e3c4ff;
  --shine-b: #b36be8;
  --footer-overlay: rgba(34, 19, 52, 0.82);
  --line: rgba(255, 255, 255, 0.14);
}
html[data-tq-theme="dark"] .logo-light {
  display: none !important;
}
html[data-tq-theme="dark"] .logo-dark {
  display: block !important;
}
html[data-tq-theme="dark"] .navbar.scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
html[data-tq-theme="dark"] .opt input:checked + .face {
  border-color: #d9b0ff;
}
html[data-tq-theme="dark"] .size-card input:checked + .face,
html[data-tq-theme="dark"] .extra input:checked + .face {
  border-color: #d9b0ff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
html[data-tq-theme="dark"] .extra .face::after {
  border-color: #d9b0ff;
}
html[data-tq-theme="dark"] .faq-item {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
html[data-tq-theme="dark"] .faq-item[open] {
  box-shadow: 0 10px 26px rgba(157, 78, 221, 0.35);
}
html[data-tq-theme="dark"] .order {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
html[data-tq-theme="dark"] #cup-preview .glass {
  fill-opacity: 0.12;
}
html[data-tq-theme="dark"] #cup-preview .lid {
  fill-opacity: 0.3;
}
html[data-tq-theme="dark"] .accordion .content a,
html[data-tq-theme="dark"] .legal-container a {
  color: var(--purple-text);
}
