/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

html, body {
   width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important; /* bloquea el scroll lateral */
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #3d1d17;
  color: white;
  overflow-x: hidden;
}

header {
  padding: 20px 40px;
}








.hero, .hero-text {
  min-width: 0 !important; /* evita que se fuerce el ancho */
}

.highlight, .bottom-yellow-section {
  overflow-x: clip !important; /* arregla curvas que rompen el ancho */
}











/* Navbar active and hover styles */
#main-nav a.active {
  color: #3d1d17;
  background-color: #ffd600;
  font-weight: 700;
  border-radius: 20px;
  padding: 10px 18px;
}

#main-nav a:hover {
  color: #3d1d17;
  background-color: rgba(255,214,0,0.9);
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 20px;
}


.navbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  min-height: 64px;
}

#main-nav a {
  padding: 10px 18px;
  border-radius: 20px;
}



.menu-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;  /* apila las barritas */
  justify-content: space-between; /* distribuye arriba-centro-abajo */
  width: 34px;   /* ancho del botón */
  height: 26px;  /* alto del botón */
  background-color: #ffc400 !important;
  border-radius: 8px;
  box-shadow: 2px 4px 0px #a27c00;
  border: none;
  cursor: pointer;
  padding: 6px;   /* un respiro interno */
   box-sizing: border-box; /* ✅ evita que el padding sume al tamaño */

}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #3d1d17; /* café BAT */
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Contenedor invisible para alinear las barras */
.menu-toggle .bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 16px;
 position: relative;        /* permite transformaciones sin recortar */

}
.menu-toggle:hover {
  background: #ffd600;
  transform: translateY(-2px);
}


body.nav-open .menu-toggle {
  background-color: #ffc400; /* sigue amarillo */
}

.menu-toggle .arrow {
  font-size: 20px;
  color: #ffd600;
  font-weight: bold;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


/* Hamburger to X animation (when menu is open) */
/* Animación hamburguesa → X */
body.nav-open .menu-toggle .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .menu-toggle .bar:nth-child(2) {
  opacity: 0; /* solo se oculta, no se mueve */
}
body.nav-open .menu-toggle .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo img {
  width: 80px;   /* ajusta el ancho */
  height: auto;  /* mantiene proporción */
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.user-icon {
  font-size: 22px;
}

/* HERO */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 40px 60px 40px;
}

.hero-text {
  width: 45%;
  min-width: 320px;
}

.hero-text h1 {
  font-size: 60px;
  font-family: 'Fredoka', sans-serif;
  line-height: 1.1;
  color: white;
}

.hero-text p {
  margin: 20px 0;
  font-size: 16px;
  color: #ddd;
}

.shop-button {
  padding: 15px 25px;
  font-size: 18px;
  border: none;
  background-color: #ffc400;
  border-radius: 30px;
  box-shadow: 2px 4px 0px #a27c00;
  cursor: pointer;
}

.hero-image img {
  /* más grande pero aún responsive */
  width: clamp(290px, 30vw, 340px);
  /* súbelo (negativo = arriba) */
   transform: translateY(-12px) !important; /* solo arriba, nunca lateral */
  /* un poco menos separado del texto */
   margin-left: auto;
  margin-right: auto; /* centra en lugar de empujar */
}

/* Flavors section heading */
/* Animación para el título de sabores */
.flavors-heading {
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 2.1rem;
  margin: 0 auto 32px;
  max-width: 90%;
  padding: 0 16px;
  color: #fff;
  letter-spacing: 0.02em;

  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

.flavors-heading .highlight-text {
  color: #ffd600;
  font-weight: 800;
}

/* Animación de entrada escalonada para los sabores */
.flavors .flavor {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.flavors .flavor:nth-child(1) { animation-delay: 0.4s; }
.flavors .flavor:nth-child(2) { animation-delay: 0.55s; }
.flavors .flavor:nth-child(3) { animation-delay: 0.7s; }
.flavors .flavor:nth-child(4) { animation-delay: 0.85s; }
.flavors .flavor:nth-child(5) { animation-delay: 1s; }
.flavors .flavor:nth-child(6) { animation-delay: 1.15s; }

/* FLAVORS */

.flavors {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  /* sit justo en la orilla amarilla */
  transform: translateY(10px);
  z-index: 3;
}

/* Botones de sabores estilo 3D pastel */
.flavors button {
  padding: 12px 22px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  background: var(--pill-bg);
  color: var(--pill-fg);
  /* Sombra sólida 3D hacia abajo, color adaptado al sabor */
  /* Por defecto, sombra dorada suave */
  box-shadow: 2px 4px 0px var(--pill-shadow, #c2b07c);
 transform: none !important; 
  position: relative;
}

/* Sombra personalizada por sabor */
.flavor[data-flavor="vanilla"] button,
.flavors button[data-flavor="vanilla"] {
  --pill-shadow: #e5c36c;
}
.flavor[data-flavor="vanillab"] button,
.flavors button[data-flavor="vanillab"] {
  --pill-shadow: #e2ce95;
}
.flavor[data-flavor="cookies"] button,
.flavors button[data-flavor="cookies"] {
  --pill-shadow: #a99a7a;
}
.flavor[data-flavor="mango"] button,
.flavors button[data-flavor="mango"] {
  --pill-shadow: #b9ae6c;
}
.flavor[data-flavor="choco"] button,
.flavors button[data-flavor="choco"] {
  --pill-shadow: #c6a87e;
}
.flavor[data-flavor="lime"] button,
.flavors button[data-flavor="lime"] {
  --pill-shadow: #8ca98c;
}
.flavor[data-flavor="banana"] button,
.flavors button[data-flavor="banana"] {
  --pill-shadow: #b8a3e6;
}

/* Hover (levanta el botón y sombra más grande) */
.flavors button:hover {
  transform: translateY(-2px);
  box-shadow: 3px 6px 0px var(--pill-shadow, #c2b07c);
}
/* Active (presionado, botón baja y sombra más pequeña) */
.flavors button:active {
  transform: translateY(1.5px);
  box-shadow: 1px 2px 0px var(--pill-shadow, #c2b07c);
}

/* Botón de sabor seleccionado: énfasis visual, pero mantiene 3D */
.flavors .active,
.flavors button.active {
  background-color: #ffc400;
  color: #3d1d17;
  box-shadow: 2px 4px 0px #a27c00, 0 6px 14px rgba(0,0,0,0.13);
  filter: saturate(1.08) brightness(0.97);
  outline: 2px solid rgba(0,0,0,0.08);
}

#flavor-img {
  width: 190px;    /* ajusta este valor a lo que necesites */
  height: auto;
  margin: 40px auto;
  display: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* pills "tocando" la ola amarilla con una ligera curvatura */
.flavors button:nth-child(1) { transform: translateY(8px) rotate(-2deg); }
.flavors button:nth-child(2) { transform: translateY(6px) rotate(-1.5deg); }
.flavors button:nth-child(3) { transform: translateY(3px) rotate(-1deg); }
.flavors button:nth-child(4) { transform: translateY(0); }
.flavors button:nth-child(5) { transform: translateY(3px) rotate(1deg); }
.flavors button:nth-child(6) { transform: translateY(6px) rotate(1.5deg); }
.flavors button:nth-child(7) { transform: translateY(8px) rotate(2deg); }
.flavors button:nth-child(8) { transform: translateY(10px) rotate(2.5deg); }


.flavor-info {
  margin-top: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 12px 20px;
  border-radius: 12px;
  display: none; /* oculto por defecto */
}


/* HIGHLIGHT */

.highlight-wrapper {
  position: relative;
  padding: 40px 20px 60px 20px;
  margin-top: 80px;
  position: relative;
  overflow: hidden; /* evita overflow lateral por curvas/rotos */
}

.highlight {
  height: 150px;
  padding: 0;
  background-color: #ffd600;
  text-align: center;
  border-top-left-radius: 120% 200px;
  border-top-right-radius: 120% 200px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
  --highlight-top-offset: 100px;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  overflow: hidden;
}

.highlight-text {
  /* transform: skewY(3deg); */
  max-width: 600px;
  margin: 0 auto;
}


.highlight h3 {
  margin-top:30px; /* lo bajas un poco */
}

.highlight p {
  margin-top: 15px;
}

.highlight h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 32px;
  color: #3d1d17;
  margin-bottom: 20px;
}

.story-button {
  background: #ff3cb1;
  color: white;
  font-size: 18px;
  padding: 14px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

/* BOTTOM ICE CONTAINER */

.bottom-section {
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ice-container {
  background: white;
  color: black;
  text-align: center;
  border-radius: 20px;
  padding: 20px;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ice-container img {
  width: 100%;
  margin-bottom: 10px;
}

.ice-container h3 {
  font-family: 'Fredoka', sans-serif;
  margin-bottom: 10px;
  font-size: 20px;
}

.wave-separator {
  position: relative;
  height: 120px;
  background: #3d1d17;
  margin-top: -72px;
  z-index: 1;
  border-bottom-left-radius: 120% 80px;
  border-bottom-right-radius: 120% 80px;
  overflow: hidden;
   max-width: 100vw;
  overflow-x: hidden;
}



.yellow-circle {
  position: absolute;
  top: auto;
  bottom: 0;
  width: 100%;
  height: 180px;
  background-color: #ffd600;
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  box-shadow: 0 -6px 12px rgba(0,0,0,0.3);
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  color: #3d1d17;
  padding-top: 0;
  z-index: 0;
  overflow: hidden;
}

.bottom-yellow-section {
  width: 100%;
  background-color: #ffd600;   /* full-bleed */
  padding: 60px min(40px, 4vw);          /* respiro del fondo */
  text-align: center;
  margin-top: -56px;           /* súbela; ajusta -40/-80 si necesitas */
}
.bottom-yellow-inner {
  max-width: min(1160px, 100%);
  margin: 10px auto 0;   /* 👈 40px arriba, auto laterales, 0 abajo */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
  text-align: center;
  flex-wrap: wrap;
}

/* alineación de la sección amarilla inferior (centra imagen y textos) */
.bottom-yellow-inner .left,
.bottom-yellow-inner .center,
.bottom-yellow-inner .right {
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 360px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.bottom-yellow-inner .left  { order: 1; }
.bottom-yellow-inner .center{ order: 2; }
.bottom-yellow-inner .right { order: 3; }

.bottom-yellow-inner .center img {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: translateY(60px); /* súbela 20px */
}

/* en pantallas chicas, apila y mantén los botones/pills tocando la ola */
@media (max-width: 900px) {
  .flavors { transform: translateY(-24px); gap: 10px; flex-wrap: wrap; justify-content: center; overflow: visible; padding: 0 12px; }
  .flavors button { padding: 9px 14px; font-weight: 600; }
  .flavors button:nth-child(n) { transform: translateY(0) rotate(0); }

  .bottom-yellow-section { padding: 48px 24px; margin-top: -48px; }

  nav ul { display: none; }
  .menu-toggle { display: flex; }
  header { padding: 16px 20px; }
  .navbar { padding: 0; }
  .logo { font-size: 24px; }
  .navbar {
    display: flex;
    align-items: center;
    min-height: 56px;
  }
}

/* ===== Responsive: tablets (<= 900px) ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 48px 24px 24px; gap: 20px; }
  .hero-text { width: 100%; min-width: 0; text-align: center; }
  .hero-text h1 { font-size: 42px; }
  .hero-image img { width: 280px; margin-left: 0; transform: translateY(0); }

  /* chips de sabores: revert horizontal scroll, center pills */
  .flavors {
    transform: translateY(-24px);
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding:  -12px;
  }
  .flavors button { padding: 9px 14px; font-weight: 600; }

  .highlight { height: 120px; }
  .yellow-circle { height: 120px; }

  .bottom-yellow-section { padding: 48px 20px; margin-top: -56px; }
  .bottom-yellow-inner { flex-direction: column; gap: 24px; padding: 0 4px; }
  .bottom-yellow-inner .left,
  .bottom-yellow-inner .center,
  .bottom-yellow-inner .right { width: min(360px, 92vw); }
  .bottom-yellow-inner .center img { max-width: 220px; }

  .bottom-yellow-section .comment { 
    display: none;
  }
}

/* ===== Responsive: phones (<= 600px) ===== */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero-text h1 { font-size: 36px; }
  .shop-button { padding: 12px 20px; font-size: 16px; }

  .flavors { transform: translateY(-22px); padding: 0 12px; gap: 8px; }
  .flavors button { padding: 8px 12px; font-size: 14px; }

  .bottom-yellow-inner { gap: 20px; }
  .bottom-yellow-inner .center img { max-width: 200px; }
}

/* ===== Responsive: small phones (<= 420px) ===== */
@media (max-width: 420px) {
  .hero-text h1 { font-size: 32px; }
  .hero { padding: 40px 16px 16px; }
  .flavors { transform: translateY(-18px); }
}

/* Cuadro blanco del menú centrado */
body.nav-open nav ul {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 80px;
  width: 90%;
  max-width: 360px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 26px;
  z-index: 6001; /* encima del overlay */
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  margin-top: 40px;
}
/* ===== Mejora de estilo para menú móvil ===== */
body.nav-open nav ul li {
  width: 100%;
  text-align: center;
}

body.nav-open nav ul li a {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #3d1d17;   /* café BAT por defecto */
  background: transparent;
  border-radius: 12px;
  transition: background 0.3s, color 0.3s;
}

body.nav-open nav ul li a:hover,
body.nav-open nav ul li a:focus {
  background: #fff;
  color: #3d1d17;
}

/* Animación escalonada al abrir */
body.nav-open nav ul li {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInMenu 0.35s ease forwards;
}

body.nav-open nav ul li:nth-child(1) { animation-delay: 0.1s; }
body.nav-open nav ul li:nth-child(2) { animation-delay: 0.2s; }
body.nav-open nav ul li:nth-child(3) { animation-delay: 0.3s; }
body.nav-open nav ul li:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInMenu {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== Animaciones de entrada/salida ===== */
@keyframes slide-in-left { from{opacity:0; transform:translateX(-24px)} to{opacity:1; transform:translateX(0)} }
@keyframes slide-in-right{ from{opacity:0; transform:translateX(24px)}  to{opacity:1; transform:translateX(0)} }
@keyframes slide-out-left{ from{opacity:1; transform:translateX(0)}     to{opacity:0; transform:translateX(-24px)} }
@keyframes slide-out-right{from{opacity:1; transform:translateX(0)}     to{opacity:0; transform:translateX(24px)} }
@keyframes fade-up { from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:translateY(0)} }

.animating { pointer-events: none; } /* evita doble clic durante animación */
.in-left   { animation: slide-in-left  .28s ease-out both; }
.in-right  { animation: slide-in-right .28s ease-out both; }
.out-left  { animation: slide-out-left .22s ease-in both; }
.out-right { animation: slide-out-right .22s ease-in both; }

.text-in   { animation: fade-up .28s ease-out both; }

/* Contenedor de la leyenda dentro del círculo .highlight */
.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;    /* centrado vertical */
  text-align: center;
  height: 180px;              /* sube si necesitas más espacio */
}
.highlight .flavor-legend img { max-height: 120px; }

/* Asegura contraste legible en el círculo */
.highlight h3,
.highlight p { color: #3d1d17; }

/* Hamburgesa: ya tienes estilos base; añade accesibilidad visual */
/* Estado visual del botón hamburguesa cuando el menú está abierto */
.menu-toggle .bar {
  transition: transform .2s ease, opacity .2s ease;
}

body.nav-open .menu-toggle .bar:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .menu-toggle .bar:nth-child(2){
  opacity: 0;
}
body.nav-open .menu-toggle .bar:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}
/* Botón de sabor activo (feedback claro) */
.flavors .flavor.active{
  background-color: #ffc400;
  box-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 6px 14px rgba(0,0,0,0.22);
}


/* ===== WhatsApp Floating Button ===== */
/* Botón flotante de WhatsApp */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366; /* verde WhatsApp */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 5000;
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

/* Icono dentro del botón */
.whatsapp-fab img {
  width: 32px;
  height: 32px;
  filter: invert(1); /* lo pone blanco si el icono es negro */
}
.whatsapp-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 26px rgba(0,0,0,0.38), 0 2px 0 rgba(0,0,0,0.28);
}
.whatsapp-fab:active {
  transform: translateY(0) scale(0.98);
}
.whatsapp-fab:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Ajustes responsive para no tapar UI en móviles */
@media (max-width: 600px) {
  .whatsapp-fab {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
  .whatsapp-fab img { width: 26px; height: 26px; }
}


/* ===== Pasteles por sabor (píldoras de la sección .flavors) ===== */
.flavors .flavor{
  /* usa el color por defecto si no hay var */
  --pill-bg: #ffffff;
  --pill-fg: #2b2b2b;
  background: var(--pill-bg);
  color: var(--pill-fg);
  border: 1px solid rgba(0,0,0,0.04);
}

/* Paleta pastel por sabor */
.flavor[data-flavor="vanilla"]  { --pill-bg:#fff1d0; }
.flavor[data-flavor="vanillab"] { --pill-bg:#fde5af; } /* Vanilla Being (ligeramente distinto) */
.flavor[data-flavor="cookies"]  { --pill-bg:#c9b89c; }
.flavor[data-flavor="mango"]    { --pill-bg:#d1c18f; }
.flavor[data-flavor="choco"]    { --pill-bg:#e7cdb3; }
.flavor[data-flavor="lime"]     { --pill-bg:#b2c9b2; }
.flavor[data-flavor="banana"]   { --pill-bg:#d3bfff; }

/* Hover y activo con ligero énfasis */
.flavors .flavor:hover{
  filter: saturate(1.05) brightness(0.98);
  transform: translateY(-1px);
}
.flavors .flavor.active{
  outline: 2px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 6px 14px rgba(0,0,0,0.22);
  filter: saturate(1.08) brightness(0.97);
}

:root{
  --highlight-color: #ffd600;
}
/* Contenedor del círculo: sin height fija */
.highlight{
  /* elimina cualquier height:150px previo */
  height: auto;
  min-height: 180px;          /* reserva base; súbelo si hace falta */
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Reserva vertical para que el alto no cambie entre estados */
.flavor-legend{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 140px;          /* asegura que título/desc + imagen quepan sin recortar */
}

/* La imagen: tamaño consistente + evita recortes */
.highlight .flavor-legend img{
  max-height: 120px;          /* ajústalo a tu gusto */
  width: auto;
  height: auto;
  object-fit: contain;
  will-change: transform, opacity;
  opacity: 0;                 /* oculto sin colapsar */
  visibility: hidden;         /* oculto accesible */
}

/* Tablets y abajo */
@media (max-width: 900px){
  .highlight{
    height: auto;          /* deja que crezca si el contenido lo necesita */
    min-height: 160px;     /* altura mínima para que no corte */
    padding: 12px 16px;    /* respiro interno */
  }
  .highlight .flavor-legend img{
    max-height: 88px;      /* reduce la altura de la imagen */
    width: auto;
  }
  .highlight h3{ margin-top: 6px; }
  .highlight p{ margin-top: 4px; }
}

/* Teléfonos */
@media (max-width: 600px){
  .highlight{
    min-height: 0px;     /* un poco más para textos de 2 líneas */
    padding: 14px 16px;
  }
  .highlight .flavor-legend img{
    max-height: 76px;      /* ajusta aún más en móviles pequeños */
  }
  .highlight h3{
    font-size: 18px;
    margin-top: 6px;
  }
  .highlight p{
    font-size: 13px;
    margin-top: 4px;
  }
}


@media (min-width: 901px){ .scroll-hint-fab{ display:none; } }


/* ===== Scroll Hint Floating Button (arriba del WhatsApp) ===== */
:root{
  /* coordina con tu .whatsapp-fab (desktop) */
  --wa-right: 20px;
  --wa-bottom: 20px;
  --wa-size: 60px; /* mismo tamaño que tu whatsapp-fab */
}

.scroll-hint-fab{
  position: fixed;
  right: var(--wa-right);
  /* 12px por encima del WhatsApp */
  bottom: calc(var(--wa-bottom) + var(--wa-size) + 12px);
  z-index: 5000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  color: #3d1d17;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35), 0 2px 0 rgba(0,0,0,0.18);
  animation: wiggle 1.4s ease-in-out infinite, glow 2.2s ease-in-out infinite alternate;
  will-change: transform, box-shadow;
}
.scroll-hint-fab .arrow{ font-size: 18px; line-height: 1; }
.scroll-hint-fab .label{ font-size: 14px; line-height: 1; white-space: nowrap; }
.scroll-hint-fab:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.38), 0 2px 0 rgba(0,0,0,0.22);
}

@keyframes wiggle{
  0%,100%{ transform: translateY(0) rotate(0); }
  25%{ transform: translateY(-2px) rotate(-2deg); }
  50%{ transform: translateY(0) rotate(0.8deg); }
  75%{ transform: translateY(-1px) rotate(-1.2deg); }
}
@keyframes glow{
  from{ box-shadow: 0 8px 22px rgba(0,0,0,0.30), 0 2px 0 rgba(0,0,0,0.16); }
  to  { box-shadow: 0 12px 28px rgba(0,0,0,0.42), 0 2px 0 rgba(0,0,0,0.22); }
}

/* En móviles: actualiza variables para coincidir con tu whatsapp-fab (56px) */
@media (max-width: 600px){
  :root{ --wa-right: 14px; --wa-bottom: 14px; --wa-size: 56px; }
  .scroll-hint-fab{ padding: 9px 12px; }
  .scroll-hint-fab .label{ font-size: 13px; }
  .scroll-hint-fab .arrow{ font-size: 16px; }
}

/* (Opcional) solo mostrar en pantallas chicas
@media (min-width: 901px){ .scroll-hint-fab{ display:none; } }
*/

/* Estado oculto del scroll-hint (fade + slide) */
.scroll-hint-fab {
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}
.scroll-hint-fab.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}


strong {
  font-weight: bold; /* asegura que se vea en negritas */
  color: #ffc400;    /* opcional: le das un color distintivo */
}
/* ===== Menú móvil: flecha de scroll al final ===== */
body.nav-open nav ul .menu-arrow {
  font-size: 22px;
  color: #3d1d17;
  margin-top: 20px;
  animation: bounce 1.5s infinite;
  display: block;
  width: 100%;
  text-align: center;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.1em;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
/* Botón de cierre (❌) dentro del cuadro blanco */
.mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.8rem;
  background: transparent;
  color: #3d1d17;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 10;
  line-height: 1;
}
body.nav-open .mobile-menu-close {
  display: block;
}


#menuOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 800;
  overflow: hidden;
}
#menuOverlay.active {
  display: block;
}

body.nav-open #main-nav ul {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%);
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    border-radius: 18px;
    z-index: 2000; /* Encima del overlay */
    padding: 2.2rem 1.6rem 1.8rem 1.6rem;
    min-width: 230px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    overflow-x: hidden;  
     max-width: 100vw;       /* nunca más ancho que la ventana */
  }

  body.nav-open #main-nav {
    position: static;
    /* No afecta el nav, solo el ul */
  }

  /* Botón de cierre dentro del menú móvil */
  body.nav-open .mobile-menu-close {
    display: block;
    position: absolute;
    top: 1.1rem;
    right: 1.3rem;
    background: none;
    border: none;
    font-size: 2.1rem;
    color: #3d1d17;
    cursor: pointer;
    line-height: 1;
    z-index: 120;
    font-family: 'Fredoka', Arial, sans-serif;
    transition: color 0.2s;
  }

  body.nav-open #main-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 110;
    /* Fondo transparente, el ul es el contenedor blanco */
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* El ul es interactivo, el nav no */
  }
  body.nav-open #main-nav ul,
  body.nav-open .mobile-menu-close {
    pointer-events: auto;
  }

  /* ============================== */




  /* === Estilos personalizados para preguntas y textarea en el modal de cotización === */
  #cotizacionSplash .question p {
    color: #fff !important;
    font-weight: bold;
    /* Asegura buena legibilidad sobre fondo amarillo */
    text-shadow: 0 1px 2px rgba(61,29,23,0.13);
  }
  #cotizacionSplash textarea {
    color: #fff;
    background: #3d1d17;
    border: 1px solid #fff;
  }
  #cotizacionSplash textarea::placeholder {
    color: #fff;
    opacity: 0.9;
  }
  /* Si usas label para textarea, también puedes forzar el color */
  #cotizacionSplash label {
    color: #fff !important;
  }
  
  #cotizacionSplash textarea {
  background: #fff;
  color: #3d1d17;
}

#cotizacionSplash textarea::placeholder {
  color: #888; /* gris claro para distinguirlo */
}

/* Overlay para modal de cotización */
  #splashOverlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    transition: opacity 0.3s;
    opacity: 0;
  }
  #splashOverlay.active {
    display: block;
    opacity: 1;
    animation: fadeIn .3s ease;
  }

  #cotizacionSplash {
    display: none;
    opacity: 0;
    position: fixed;
    z-index: 1010;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background: #ffd600;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    max-width: 600px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    animation-fill-mode: forwards;
    transition: opacity 0.3s, transform 0.3s;
    color: #3d1d17;
  }
  #cotizacionSplash.active {
    display: block;
    opacity: 1;
    animation: scaleInModal 0.45s cubic-bezier(.35,1.4,.5,1) forwards;
    transform: translate(-50%, -50%) scale(1);
  }
  @keyframes scaleInModal {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.93);}
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1);}
  }

  #cotizacionSplash .close-modal {
    position: absolute;
    top: 1.1rem;
    right: 1.3rem;
    background: none;
    border: none;
    font-size: 2.1rem;
    color: #3d1d17;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    font-family: 'Fredoka', Arial, sans-serif;
    transition: color 0.2s;
  }
  #cotizacionSplash .close-modal:hover {
    color: #5a2a20;
  }

  #cotizacionSplash h2 {
    font-family: 'Fredoka', cursive;
    margin-bottom: 1rem;
    text-align: center;
  }

  #cotizacionSplash .question {
    margin-bottom: 1.5rem;
  }

  #cotizacionSplash .options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  

  #cotizacionSplash .option {
    background: #fff;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border: 2px solid #3d1d17;
    color: #3d1d17;
  }

  #cotizacionSplash .option.selected {
    background: #3d1d17;
    color: #ffd600;
    animation: bounceIn 0.6s ease;
    border: 2px solid #3d1d17;
  }

 
  #cotizacionSplash button.send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #3d1d17;
    color: #ffd600;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin: 1rem auto 0;
    transition: background-color 0.3s ease;
    font-family: 'Fredoka', cursive;
  }

  #cotizacionSplash button.send-btn:hover {
    background: #5a2a20;
  }

  #cotizacionSplash button.send-btn svg {
    fill: #ffd600;
  }

  /* Forzar títulos y preguntas en café */
  #cotizacionSplash h2,
  #cotizacionSplash .question p,
  #cotizacionSplash .question strong {
    color: #3d1d17 !important;
  }







  @media (max-width: 900px) {
  nav ul {
    display: none;
  }
}
