@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

/* ==========================================================================
   SECCIÓN NUESTROS SABORES · ZYELO FROZEN BLISS
   Archivo: css/sabores.css
   Independiente de styles.css - Espacio de nombres: .flavors, .flavor-pill, .toppings-
   ========================================================================== */

/* ---- 0. PUNTO DE MONTAJE Y VARIABLES GLOBALES DE LA SECCIÓN ---- */
#sabores-mount {
  display: block;
  min-height: 100svh;
  background: #3F97EA;
}

/* Soporte global para que la navegación (#mainNav) permanezca visible sobre la sección Sabores */
.nav {
  z-index: 1000 !important;
}

.nav__brand {
  display: flex !important;
  align-items: center !important;
  gap: clamp(8px, 1.0vw, 14px) !important;
}

.nav__logo-horse {
  height: clamp(38px, 3.5vw, 52px) !important;
  width: auto !important;
  max-height: 52px !important;
  object-fit: contain !important;
  display: block !important;
}

.nav__logo-brand,
.nav__logo-text {
  height: clamp(36px, 3.3vw, 50px) !important;
  width: auto !important;
  max-height: 50px !important;
  object-fit: contain !important;
  display: block !important;
}

.nav.is-scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.mobile-drawer {
  z-index: 999 !important;
}

.hero {
  isolation: auto !important;
}

.flavors {
  --f-sky-1: #2F80E0;
  --f-glass-bg: rgba(255, 255, 255, 0.12);
  --f-glass-brd: rgba(255, 255, 255, 0.35);
  --f-glass-blur: blur(14px) saturate(140%);
  --f-shadow-soft: 0 8px 24px rgba(20, 60, 140, 0.12);
  --f-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --f-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  width: 100%;
  height: 100svh;
  min-height: 640px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #3F97EA 0%, #5DAEF3 45%, #8CC8FB 100%);
}

/* Reset acotado exclusivamente dentro de .flavors */
.flavors,
.flavors *,
.flavors *::before,
.flavors *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Efecto cristal base propio de la sección */
.flavors .glass {
  background: var(--f-glass-bg);
  border: 1.5px solid var(--f-glass-brd);
  backdrop-filter: var(--f-glass-blur);
  -webkit-backdrop-filter: var(--f-glass-blur);
}


/* ---- 1. FONDO Y NUBES ATMOSFÉRICAS ---- */
.flavors__bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background: url('../assets/images/hero/fondo_hero.webp') center/cover no-repeat;
  pointer-events: none;
  animation: flavorsBgDrift 32s ease-in-out infinite alternate;
}

@keyframes flavorsBgDrift {
  0% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.09) translate3d(-1%, -1%, 0);
  }
}

.flavors__clouds {
  position: absolute;
  inset: -3%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.flavors__cloud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.flavors__cloud--tr {
  object-position: right top;
  animation: flavorsCloudTR 22s ease-in-out infinite alternate;
}

.flavors__cloud--bl {
  object-position: left bottom;
  animation: flavorsCloudBL 26s ease-in-out infinite alternate;
}

.flavors__cloud--br {
  object-position: right bottom;
  animation: flavorsCloudBR 28s ease-in-out infinite alternate;
}

@keyframes flavorsCloudTR {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.06) translate3d(-1.5%, 1.2%, 0);
  }
}

@keyframes flavorsCloudBL {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.06) translate3d(1.5%, -1.2%, 0);
  }
}

@keyframes flavorsCloudBR {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.06) translate3d(-1.2%, -1.5%, 0);
  }
}

/* ---- 1.1 TOPPINGS FLOTANTES DECORATIVOS (Section A2) ---- */
/* Elementos exclusivos de móvil (ocultos en escritorio y tablet) */
.flavors__hint,
.flavors__benefits,
.flavors__floaters--stage {
  display: none;
}

.flavors__floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flavors__floater {
  position: absolute;
  left: var(--fx);
  top: var(--fy-pos);
  width: var(--fsize);
  transform: translate(-50%, -50%) rotate(var(--frot, 0deg));
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.8s var(--f-ease-out), scale 0.8s var(--f-ease-spring);
  transition-delay: calc(0.9s + var(--fi, 0) * 40ms);
}

.flavors.is-visible .flavors__floater {
  opacity: 1;
  scale: 1;
}

.flavors__floater.is-back {
  z-index: 2;
}

.flavors__floater.is-front {
  z-index: 4;
}

.flavors__floater img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 18px rgba(10, 45, 115, 0.22));
  animation: flavorsFloaterFloat var(--fdur, 7s) ease-in-out infinite var(--fdelay, 0s);
  will-change: transform;
}

@keyframes flavorsFloaterFloat {

  0%,
  100% {
    transform: translateY(0) rotate(var(--fr0, 0deg));
  }

  50% {
    transform: translateY(var(--ffy, -12px)) rotate(var(--fr1, 4deg));
  }
}


/* ---- 2. COLUMNA IZQUIERDA (.flavors__content) ---- */
.flavors__content {
  position: absolute;
  left: 6%;
  top: 51%;
  transform: translateY(-50%);
  width: max-content;
  max-width: 40vw;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 2.1 Tag 'Nuestros sabores' */
.flavors__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(32px, 2.2vw, 38px);
  padding: 0 clamp(14px, 1.1vw, 18px) 0 clamp(12px, 0.95vw, 16px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  margin-bottom: clamp(16px, 1.1vw, 20px);
  cursor: default;
  user-select: none;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 1.0vw, 16px);
  color: #fff;
  letter-spacing: 0.01em;
}

.flavors__tag-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* 2.2 Título principal */
.flavors__title {
  display: flex;
  flex-direction: column;
  font-family: "Fredoka One", cursive, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(54px, 5.3vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin: 0 0 clamp(14px, 1vw, 18px);
}

.flavors__title-line {
  white-space: nowrap;
}

.flavors__title-line--1 {
  color: #FFFFFF;
}

.flavors__title-line--2 {
  color: #8ED2FB;
  background: linear-gradient(90deg, #5FC8FF 0%, #A9D8F6 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flavorsShine 6s ease-in-out infinite;
}

@keyframes flavorsShine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* 2.3 Subtítulo */
.flavors__subtitle {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.3;
  color: #FFFFFF;
  margin: 0 0 clamp(22px, 1.7vw, 30px);
}

/* 2.4 Lista de píldoras de sabores */
.flavors__list {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.42vw, 9px);
  width: clamp(250px, 17.5vw, 340px);
}

.flavor-pill {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.0vw, 18px);
  width: 100%;
  height: clamp(54px, 3.7vw, 72px);
  padding: 0 clamp(14px, 1.1vw, 20px) 0 clamp(4px, 0.3vw, 6px);
  border-radius: 999px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 0.98vw, 17px);
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--f-shadow-soft);
  transition: transform 0.25s var(--f-ease-out),
    background 0.25s var(--f-ease-out),
    border-color 0.25s var(--f-ease-out),
    box-shadow 0.25s var(--f-ease-out);
  user-select: none;
}

.flavor-pill:hover:not(.is-active) {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.2);
}

.flavor-pill:hover:not(.is-active) .flavor-pill__arrow {
  transform: translateX(4px);
}

.flavor-pill:active {
  transform: scale(0.98);
}

.flavor-pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.flavor-pill.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.22));
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 28px rgba(20, 60, 140, 0.2),
    0 0 22px rgba(255, 255, 255, 0.18);
  cursor: default;
  transform: none;
}

.flavor-pill__icon {
  width: clamp(44px, 3.2vw, 58px);
  height: clamp(44px, 3.2vw, 58px);
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 12px rgba(10, 45, 115, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flavor-pill__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flavor-pill__name {
  flex: 1;
  color: #fff;
  font-weight: 500;
}

.flavor-pill__check,
.flavor-pill__arrow {
  width: clamp(18px, 1.25vw, 22px);
  height: clamp(18px, 1.25vw, 22px);
  stroke: #fff;
  flex-shrink: 0;
  transition: transform 0.25s var(--f-ease-out);
}

.flavor-pill .flavor-pill__check {
  display: none;
}

.flavor-pill .flavor-pill__arrow {
  display: block;
}

.flavor-pill.is-active .flavor-pill__check {
  display: block;
}

.flavor-pill.is-active .flavor-pill__arrow {
  display: none;
}


/* ---- 3. CENTRO — HELADO GRANDE (.flavors__showcase) ---- */
.flavors__showcase {
  position: absolute;
  left: 34.5%;
  width: 34%;
  top: 19%;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}

.flavors__scoop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.7s var(--f-ease-out), transform 0.7s var(--f-ease-out);
  filter: drop-shadow(0 22px 32px rgba(10, 50, 130, 0.22));
  will-change: transform, opacity;
}

.flavors__scoop.is-active {
  opacity: 1;
  transform: scale(1);
}

.flavors__scoop.is-leaving {
  opacity: 0;
  transform: scale(0.98);
}

/* 3.1 Superposiciones de toppings sobre helado (Section B3.3) */
.flavors__overlay {
  --topping-scale: 1.0001;
  /* <-- MODIFICA AQUÍ EL TAMAÑO (1 = 100% exacto al original, 1.01 = 101%, etc.) */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
  opacity: 0;
  transform: scale(var(--topping-scale));
  pointer-events: none;
  filter: none;
  transition: opacity 0.18s var(--f-ease-out);
  will-change: opacity;
}

.flavors__overlay.is-instant-off {
  transition: none !important;
  opacity: 0 !important;
}

.flavors__overlay.is-on {
  opacity: 1;
  transform: scale(var(--topping-scale));
  transition: opacity 0.15s var(--f-ease-out);
}

.flavors__overlay.is-leaving {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.7s var(--f-ease-out), transform 0.7s var(--f-ease-out);
}


/* ---- 4. DERECHA — TOPPINGS Y BOTÓN (.flavors__side) ---- */
.flavors__side {
  position: absolute;
  left: 70.1%;
  width: 24.8%;
  top: 25.3%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 2.4vw, 42px);
}

/* Fila contenedora: en escritorio es 'contents' para no alterar el layout flex */
.flavors__panel-row {
  display: contents;
}

/* Beneficios solo móvil: ocultos por defecto en escritorio y tablet */
.flavors__benefits {
  display: none;
}

/* 4.1 Panel de toppings */
.toppings-panel {
  width: 100%;
  border-radius: clamp(26px, 2.15vw, 38px);
  padding: clamp(20px, 1.55vw, 28px) clamp(22px, 2vw, 36px) clamp(22px, 1.9vw, 34px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 14px 40px rgba(20, 60, 140, 0.16);
}

.toppings-panel__title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 1.7vw, 30px);
  color: #fff;
  line-height: 1.1;
  margin: 0;
}

.toppings-panel__subtitle {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.02vw, 17px);
  color: rgba(255, 255, 255, 0.78);
  margin: 6px 0 clamp(26px, 2.3vw, 40px);
}

.toppings-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(14px, 1.7vw, 30px);
  row-gap: clamp(18px, 2vw, 34px);
  justify-items: center;
}

.topping {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.topping__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.topping__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 16px;
}

.topping__media {
  position: relative;
  display: block;
  width: clamp(66px, 5.75vw, 100px);
}

.topping__circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35) 70%);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px rgba(20, 60, 140, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 0.4vw, 8px);
  transition: transform 0.25s var(--f-ease-spring),
    box-shadow 0.25s var(--f-ease-out),
    border-color 0.25s;
}

.topping__circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Efectos interactivos cuando el panel está habilitado */
.toppings-panel[data-enabled="true"] .topping__btn {
  cursor: pointer;
}

.toppings-panel[data-enabled="true"] .topping__btn:hover .topping__circle {
  transform: translateY(-3px) scale(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 24px rgba(20, 60, 140, 0.22);
}

.toppings-panel[data-enabled="true"] .topping__btn:active .topping__circle {
  transform: scale(0.96);
}

/* Estado seleccionado */
.topping__btn.is-selected .topping__circle {
  border-color: rgba(255, 255, 255, 0.95);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28),
    0 0 24px rgba(255, 255, 255, 0.5),
    0 10px 22px rgba(20, 60, 140, 0.2);
}

.topping__btn.is-selected .topping__name {
  font-weight: 600;
}

.topping__check {
  width: clamp(20px, 1.55vw, 26px);
  height: clamp(20px, 1.55vw, 26px);
  position: absolute;
  top: 2%;
  right: 2%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FFFFFF;
  color: #2F80E0;
  box-shadow: 0 4px 10px rgba(20, 60, 140, 0.25);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.35s var(--f-ease-spring);
  pointer-events: none;
}

.topping__check svg {
  width: 60%;
  height: 60%;
}

.topping__btn.is-selected .topping__check {
  opacity: 1;
  transform: scale(1);
}

.topping__name {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.92vw, 16px);
  color: #fff;
  text-align: center;
  margin-top: 8px;
  white-space: nowrap;
}

/* 4.2 Botón Ver Sucursales */
.flavors__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: clamp(190px, 15.1vw, 260px);
  height: clamp(46px, 3.5vw, 60px);
  border-radius: 999px;
  background: #FFFFFF;
  color: #2F80E0;
  border: none;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.1vw, 19px);
  box-shadow: 0 8px 22px rgba(20, 60, 140, 0.22);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.25s var(--f-ease-out), box-shadow 0.25s var(--f-ease-out);
}

.flavors__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s var(--f-ease-out);
  pointer-events: none;
}

.flavors__cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(20, 60, 140, 0.3);
}

.flavors__cta:hover::after {
  left: 150%;
}

.flavors__cta:hover .flavors__cta-arrow {
  transform: translateX(5px);
}

.flavors__cta:active {
  transform: scale(0.97);
}

.flavors__cta-arrow {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.25s var(--f-ease-out);
}


/* ---- 5. ANIMACIONES DE ENTRADA AL SCROLL (Section 8.3) ---- */
.flavors:not(.is-visible) .flavors__tag,
.flavors:not(.is-visible) .flavors__title-line,
.flavors:not(.is-visible) .flavors__subtitle,
.flavors:not(.is-visible) .flavor-pill,
.flavors:not(.is-visible) .toppings-panel,
.flavors:not(.is-visible) .flavors__cta,
.flavors:not(.is-visible) .flavors__benefits {
  opacity: 0;
  transform: translateY(24px);
}

.flavors:not(.is-visible) .flavors__hint {
  opacity: 0;
  translate: 0 24px;
}

.flavors:not(.is-visible) .flavors__scoop.is-active {
  opacity: 0;
  transform: none;
}

.flavors.is-visible .flavors__tag,
.flavors.is-visible .flavors__title-line,
.flavors.is-visible .flavors__subtitle,
.flavors.is-visible .flavor-pill,
.flavors.is-visible .toppings-panel,
.flavors.is-visible .flavors__cta,
.flavors.is-visible .flavors__benefits {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--f-ease-out), transform 0.8s var(--f-ease-out);
}

.flavors.is-visible .flavors__hint {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.8s var(--f-ease-out), translate 0.8s var(--f-ease-out);
}

.flavors.is-visible .flavors__scoop.is-active {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--f-ease-out);
}

.flavors.is-visible .flavors__tag {
  transition-delay: 0.05s;
}

.flavors.is-visible .flavors__title-line--1 {
  transition-delay: 0.15s;
}

.flavors.is-visible .flavors__title-line--2 {
  transition-delay: 0.25s;
}

.flavors.is-visible .flavors__subtitle {
  transition-delay: 0.4s;
}

.flavors.is-visible .flavors__scoop.is-active {
  transition-delay: 0.3s;
}

.flavors.is-visible .flavor-pill:nth-child(1) {
  transition-delay: 0.50s;
}

.flavors.is-visible .flavor-pill:nth-child(2) {
  transition-delay: 0.58s;
}

.flavors.is-visible .flavor-pill:nth-child(3) {
  transition-delay: 0.66s;
}

.flavors.is-visible .flavor-pill:nth-child(4) {
  transition-delay: 0.74s;
}

.flavors.is-visible .flavor-pill:nth-child(5) {
  transition-delay: 0.82s;
}

.flavors.is-visible .toppings-panel {
  transition-delay: 0.60s;
}

.flavors.is-visible .flavors__cta {
  transition-delay: 0.85s;
}

.flavors.is-visible .flavors__benefits {
  transition-delay: 0.95s;
}

.flavors.is-visible .flavors__hint {
  transition-delay: 1.0s;
}


/* ---- 6. DISEÑO RESPONSIVO ---- */

/* Tablet 768px – 1279px */
@media (max-width: 1279px) and (min-width: 768px) {
  .flavors {
    height: auto;
    min-height: 100svh;
    padding: 120px 6% 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .flavors__content {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
  }

  .flavors__title {
    font-size: clamp(44px, 5.8vw, 76px);
  }

  .flavors__showcase {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: 60vh;
    min-height: 420px;
  }

  .flavors__side {
    grid-column: 1 / -1;
    position: static;
    left: auto;
    top: auto;
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .flavors__floaters {
    display: none;
  }
}

/* Móvil <768px */
@media (max-width: 767px) {
  :root {
    --u: calc(min(100vw, 560px) / 390);
    --col: calc(390 * var(--u));
  }

  .flavors {
    --u: calc(min(100vw, 560px) / 390);
    --col: calc(390 * var(--u));

    height: auto;
    min-height: 100svh;
    display: block;
    text-align: left;
    padding: calc(72 * var(--u)) 0 calc(18 * var(--u) + env(safe-area-inset-bottom, 0px));
    gap: 0;
  }

  /* Parche del header fijo sobre la sección con cristal translúcido */
  .nav.is-scrolled {
    background: rgba(47, 128, 224, 0.55) !important;
    backdrop-filter: blur(14px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  }

  #sabores {
    scroll-margin-top: 0;
  }

  /* Nubes en móvil: NO cubrir el fondo inferior; solo nubes contenidas en esquinas inferiores */
  .flavors__clouds {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  .flavors__cloud {
    position: absolute;
    pointer-events: none;
    user-select: none;
  }

  .flavors__cloud--tr {
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: 58%;
    max-height: 220px;
    object-fit: contain;
    object-position: right top;
    opacity: 0.45;
  }

  /* Solo nubes discretas en esquina inferior izquierda y esquina inferior derecha */
  .flavors__cloud--bl {
    bottom: 0;
    left: 0;
    top: auto;
    right: auto;
    width: 44%;
    max-height: 180px;
    object-fit: contain;
    object-position: left bottom;
    opacity: 0.6;
  }

  .flavors__cloud--br {
    bottom: 0;
    right: 0;
    top: auto;
    left: auto;
    width: 44%;
    max-height: 160px;
    object-fit: contain;
    object-position: right bottom;
    opacity: 0.6;
  }

  /* Ancho de columnas del diseño (centrado si >560px) */
  .flavors__content,
  .flavors__side {
    width: var(--col);
    max-width: 100%;
    margin-inline: auto;
  }

  /* Contenido principal: pegado al margen izquierdo natural (sin desplazamiento de escritorio) */
  .flavors__content {
    position: relative !important;
    left: 0 !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 10 !important;
    transform: none !important;
    display: block !important;
    padding-left: max(calc(16 * var(--u)), env(safe-area-inset-left, 16px)) !important;
    padding-right: max(calc(16 * var(--u)), env(safe-area-inset-right, 16px)) !important;
    max-width: 100% !important;
  }

  /* Tag "✦ Nuestros sabores" */
  .flavors__tag {
    display: inline-flex;
    align-self: flex-start;
    height: max(24px, calc(24 * var(--u)));
    padding: 0 calc(12 * var(--u)) 0 calc(11 * var(--u));
    gap: calc(6 * var(--u));
    margin: 0 0 calc(8 * var(--u));
    border-radius: 999px;
    font-size: max(12px, calc(12 * var(--u)));
    font-weight: 500;
    color: #fff;
    cursor: default;
    user-select: none;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .flavors__tag-icon {
    width: calc(12 * var(--u));
    height: calc(12 * var(--u));
  }

  /* Título en 2 líneas: visible siempre entre el tag y la lista de sabores */
  .flavors__title {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    font-family: "Fredoka One", cursive, sans-serif !important;
    font-size: max(36px, calc(45 * var(--u))) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.005em !important;
    margin: 0 0 calc(6 * var(--u)) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .flavors__title-line {
    white-space: nowrap !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .flavors__title-line--1 {
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .flavors__title-line--2 {
    color: #8ED2FB !important;
    background: linear-gradient(90deg, #5FC8FF 0%, #A9D8F6 100%) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  @supports not (-webkit-background-clip: text) {
    .flavors__title-line--2 {
      -webkit-text-fill-color: #8ED2FB !important;
    }
  }

  /* Subtítulo */
  .flavors__subtitle {
    font-size: max(11.5px, calc(12 * var(--u)));
    line-height: 1.38;
    text-align: left;
    margin: 0 0 calc(12 * var(--u));
    color: #FFFFFF;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .flavors__subtitle br {
    display: inline;
  }

  /* Lista de 5 sabores en columna estrecha a la izquierda - Reducido 1% */
  .flavors__list {
    width: calc(150 * var(--u));
    margin: 0;
    gap: calc(4 * var(--u));
  }

  .flavor-pill {
    height: max(34px, calc(36 * var(--u)));
    padding: 0 calc(12 * var(--u)) 0 calc(2 * var(--u));
    gap: calc(10 * var(--u));
    font-size: max(13px, calc(13 * var(--u)));
    border-radius: 999px;
  }

  .flavor-pill__icon {
    width: max(30px, calc(32 * var(--u)));
    height: max(30px, calc(32 * var(--u)));
  }

  .flavor-pill__check,
  .flavor-pill__arrow {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  /* Helado grande (showcase) - Reducido 1% a 0.78 */
  .flavors__showcase {
    position: relative;
    z-index: 3;
    left: auto;
    top: auto;
    bottom: auto;
    width: calc(var(--col) * 0.78);
    height: auto;
    aspect-ratio: var(--scoop-ratio, 0.75);
    margin-left: calc((100% - var(--col)) / 2 + var(--col) * 0.255);
    margin-top: calc(-188 * var(--u));
    pointer-events: none;
  }

  /* Anotación manuscrita dentro del showcase - Oculta a petición del usuario */
  .flavors__hint,
  .flavors__hint-arrow {
    display: none !important;
  }

  /* Toppings flotantes en móvil: capa stage dentro del showcase */
  .flavors__floaters {
    display: none;
  }

  .flavors__floaters--stage {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .flavors__floaters--stage .flavors__floater.is-front {
    z-index: 1000;
  }

  .flavors__floaters--stage .flavors__floater.is-back {
    z-index: -1;
  }

  .flavors__floaters--stage .flavors__floater img {
    filter: drop-shadow(0 calc(4 * var(--u)) calc(9 * var(--u)) rgba(10, 45, 115, 0.22));
    animation-name: flavorsFloaterFloatM;
  }

  @keyframes flavorsFloaterFloatM {

    0%,
    100% {
      transform: translateY(0) rotate(var(--fr0, 0deg));
    }

    50% {
      transform: translateY(calc(var(--ffy-n, -12) * var(--u) * 0.55)) rotate(var(--fr1, 4deg));
    }
  }

  /* Columna derecha / panel de toppings y botón */
  .flavors__side {
    position: relative;
    left: auto;
    top: auto;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(9 * var(--u));
    padding-inline: 0;
    margin-top: calc(-56 * var(--u));
    width: 100%;
  }

  /* Fila contenedora: beneficios a la izquierda, toppings a la derecha */
  .flavors__panel-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding-left: calc(14 * var(--u));
    padding-right: calc(6 * var(--u));
    gap: calc(8 * var(--u));
  }

  .toppings-panel {
    width: 74%;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
    border-radius: calc(19 * var(--u));
    padding: calc(10 * var(--u)) calc(6 * var(--u)) calc(12 * var(--u));
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.10) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }

  .toppings-panel__title {
    font-size: max(16.5px, calc(17.5 * var(--u)));
    margin: 0 0 0 calc(12 * var(--u));
  }

  .toppings-panel__subtitle {
    font-size: max(11.5px, calc(12 * var(--u)));
    margin: calc(2 * var(--u)) 0 calc(8 * var(--u)) calc(12 * var(--u));
  }

  .toppings-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
    row-gap: calc(3 * var(--u));
  }

  .topping__media {
    width: max(38px, calc(42 * var(--u)));
  }

  .topping__name {
    font-size: max(11px, calc(11.5 * var(--u)));
    margin-top: calc(2.5 * var(--u));
  }

  .topping__btn.is-selected .topping__circle {
    box-shadow: 0 0 0 calc(2.5 * var(--u)) rgba(255, 255, 255, 0.35),
      0 0 calc(14 * var(--u)) rgba(255, 255, 255, 0.5);
  }

  .topping__check {
    width: calc(15 * var(--u));
    height: calc(15 * var(--u));
    top: auto;
    bottom: 0;
    right: 0;
  }

  .flavors__cta {
    width: calc(180 * var(--u));
    height: max(38px, calc(40 * var(--u)));
    font-size: max(14px, calc(15 * var(--u)));
    gap: calc(8 * var(--u));
    margin: 0 auto;
  }

  .flavors__cta-arrow {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  /* Beneficios en columna vertical al lado izquierdo del panel de toppings */
  .flavors__benefits {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: calc(6 * var(--u)) 0 calc(6 * var(--u)) 0;
    box-sizing: border-box;
  }

  .flavors__benefit {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: calc(6 * var(--u));
    color: #fff;
  }

  .flavors__benefit img {
    width: calc(22 * var(--u));
    height: calc(22 * var(--u));
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  }

  .flavors__benefit span {
    font-size: max(9.5px, calc(10 * var(--u)));
    line-height: 1.15;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(10, 30, 80, 0.35);
  }

  /* Optimizaciones táctiles en móvil */
  .flavor-pill,
  .topping__btn,
  .flavors__cta {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .flavor-pill:active {
    transform: scale(0.98);
  }

  .toppings-panel[data-enabled="true"] .topping__btn:active .topping__circle {
    transform: scale(0.97);
  }

  .flavors__cta:active {
    transform: scale(0.97);
  }

  @media (hover: none) {
    .flavor-pill:hover:not(.is-active) {
      transform: none;
      background: rgba(255, 255, 255, 0.12);
    }

    .flavor-pill:hover:not(.is-active) .flavor-pill__arrow {
      transform: none;
    }

    .toppings-panel[data-enabled="true"] .topping__btn:hover .topping__circle {
      transform: none;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px rgba(20, 60, 140, 0.14);
    }

    .flavors__cta:hover {
      transform: none;
      box-shadow: 0 8px 22px rgba(20, 60, 140, 0.22);
    }

    .flavors__cta:hover .flavors__cta-arrow {
      transform: none;
    }
  }
}

/* Accesibilidad: Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {

  .flavors *,
  .flavors *::before,
  .flavors *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .flavors:not(.is-visible) .flavors__tag,
  .flavors:not(.is-visible) .flavors__title-line,
  .flavors:not(.is-visible) .flavors__subtitle,
  .flavors:not(.is-visible) .flavor-pill,
  .flavors:not(.is-visible) .flavors__scoop,
  .flavors:not(.is-visible) .toppings-panel,
  .flavors:not(.is-visible) .flavors__cta,
  .flavors:not(.is-visible) .flavors__hint,
  .flavors:not(.is-visible) .flavors__benefits {
    opacity: 1 !important;
    transform: none !important;
    translate: 0 0 !important;
  }

  .flavors__floater {
    opacity: 1 !important;
    scale: 1 !important;
    transition: none !important;
  }

  .flavors__floater img,
  .flavors__floaters--stage .flavors__floater img {
    animation: none !important;
  }

  .flavors__overlay {
    transition-duration: 0.01ms !important;
  }
}