/* ---------- Base común (se usa igual en todas las páginas) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 0; padding: 10px 14px; z-index: 100; background: #000; color: #fff; }
.saltar:focus { left: 8px; top: 8px; }
.form__error:empty { display: none; }
[hidden] { display: none !important; }

/* Botón flotante de WhatsApp con menú */
.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 10px; transition: transform .3s ease, opacity .3s ease; }
.wa.oculto { transform: translateY(110px); opacity: 0; pointer-events: none; }
.wa__boton { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #1F8A4C; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .2s ease; }
.wa__boton:hover { transform: scale(1.06); }
.wa__boton:active { transform: scale(.95); }
.wa__boton .ico { width: 30px; height: 30px; }
.wa__menu { display: grid; gap: 6px; min-width: 230px; padding: 8px; border-radius: 16px; background: #fff; color: #1d1d1f; box-shadow: 0 14px 40px rgba(0,0,0,.25);
  transform-origin: bottom right; transform: scale(.85) translateY(10px); opacity: 0; visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s .22s; }
.wa.abierto .wa__menu { transform: none; opacity: 1; visibility: visible; transition: transform .22s ease, opacity .22s ease; }
.wa__menu p { font-size: .8125rem; color: #555; padding: 6px 10px 2px; }
.wa__menu a { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; background: #F1F4F2; }
.wa__menu a:hover, .wa__menu a:focus-visible { background: #DCF1E3; }

/* Movimiento al hacer scroll: solo si la persona no pidió reducirlo */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js [data-reveal].visto { opacity: 1; transform: none; }
  .js [data-cascada] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-cascada].visto > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* ---------- Margot ---------- */
:root { --crema: #FFF6E8; --choco: #3B2318; --pista: #B9D7A1; --pista-osc: #5E7F45; --frutilla: #F4A6A6; --vainilla: #F7E2A8; --barquillo: #D9A066; --gris: #6E5A4E;
  --display: "Young Serif", Georgia, serif; --texto: "Work Sans", system-ui, sans-serif; --max: 1120px; --g: 20px; }
body { background: var(--crema); color: var(--choco); font: 400 1.0625rem/1.6 var(--texto); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
:focus-visible { outline: 3px solid var(--pista-osc); outline-offset: 3px; border-radius: 8px; }
.titulo { font-size: clamp(2.1rem, 8.5vw, 3.4rem); max-width: 18ch; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--texto); text-decoration: none; transition: transform .2s ease, background-color .2s; }
.boton:hover { transform: translateY(-2px); }
.boton--choco { background: var(--choco); color: var(--crema); }
.boton--choco:hover { background: #52321F; }
.boton--linea { border-color: var(--choco); color: var(--choco); }
.boton--borde { border-color: var(--choco); color: var(--choco); }

.hero { position: relative; overflow: hidden; background: var(--pista); padding: 56px var(--g) 30px; display: grid; gap: 10px; }
.hero__texto { display: grid; gap: 12px; justify-items: start; position: relative; z-index: 2; }
.hero__marca { font: 400 clamp(4.2rem, 22vw, 9rem)/.85 var(--display); letter-spacing: -.02em; color: var(--choco); }
.hero__sub2 { font: italic 400 1.15rem var(--display); color: var(--pista-osc); margin-top: -4px; }
.hero__titulo { font-size: clamp(1.6rem, 6.4vw, 2.5rem); max-width: 18ch; }
.hero__sub { color: #3E4A32; max-width: 30em; }
.hero__acciones { display: grid; gap: 10px; width: 100%; max-width: 360px; margin-top: 4px; }
.hero__abierto { font-weight: 700; font-size: .95rem; color: #3E4A32; }
.cucurucho { position: relative; width: 190px; height: 300px; margin: 6px auto 0; }
.bocha { position: absolute; left: 50%; width: 130px; height: 120px; margin-left: -65px; border-radius: 50% 50% 46% 46%; box-shadow: inset -12px -14px 0 rgba(0,0,0,.08); }
.bocha::after { content: ""; position: absolute; left: 18%; top: 18%; width: 26px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.55); transform: rotate(-25deg); }
.b1 { top: 140px; background: var(--vainilla); z-index: 3; }
.b2 { top: 70px; background: var(--frutilla); z-index: 2; }
.b3 { top: 0; background: #8C5A3C; z-index: 1; }
.cono { position: absolute; left: 50%; top: 210px; margin-left: -58px; width: 0; height: 0; border-left: 58px solid transparent; border-right: 58px solid transparent; border-top: 120px solid var(--barquillo); z-index: 4; filter: drop-shadow(0 8px 10px rgba(59,35,24,.2)); }
.cono::after { content: ""; position: absolute; left: -58px; top: -120px; width: 116px; height: 120px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(59,35,24,.18) 12px 14px), repeating-linear-gradient(-45deg, transparent 0 12px, rgba(59,35,24,.18) 12px 14px); }
.ondas { height: 34px; background: radial-gradient(circle at 17px -2px, var(--pista) 18px, transparent 19px) 0 0 / 34px 34px repeat-x; }

.momentos { max-width: var(--max); margin: 0 auto; padding: 48px var(--g) 64px; }
.momentos .titulo { margin-bottom: 24px; }
.momentos__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.momento { background: #fff; border-radius: 26px; padding: 20px; display: grid; gap: 4px; border: 2px solid #F1E3CC; transition: transform .25s ease, background-color .25s; }
.momento:nth-child(1) { background: var(--vainilla); border-color: transparent; }
.momento:nth-child(3) { background: #FDE3E0; border-color: transparent; }
.momento:nth-child(5) { background: #E3F0D8; border-color: transparent; }
.momento:hover { transform: translateY(-3px) rotate(-.5deg); }
.momento__hora { font-size: .85rem; font-weight: 700; color: var(--gris); }
.momento h3 { font-size: 1.8rem; }
.momento p:last-child { color: var(--gris); }

.favoritos { padding: 0 var(--g) 64px; }
.favoritos__caja { max-width: 820px; margin: 0 auto; background: var(--choco); color: var(--crema); border-radius: 32px; padding: 30px 22px; display: grid; gap: 16px; justify-items: start; }
.favoritos__titulo { font-size: clamp(1.7rem, 6.4vw, 2.5rem); }
.favoritos__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; }
.fav { padding: 14px 0; border-bottom: 1px dashed rgba(255,246,232,.3); }
.fav h3 { font-size: 1.4rem; color: var(--vainilla); }
.fav p { color: #E8D8C4; }
.favoritos__nota { color: #E8D8C4; font-size: .95rem; }
.favoritos .boton--choco { background: var(--pista); color: var(--choco); }

.visita { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) 72px; display: grid; gap: 24px; }
.visita__info { display: grid; gap: 16px; align-content: start; }
address { font-style: normal; font-size: 1.15rem; font-weight: 500; }
.horarios { width: 100%; border-collapse: collapse; }
.horarios th, .horarios td { text-align: left; padding: 11px 0; border-bottom: 1px solid #EBDCC4; font-weight: 400; vertical-align: top; }
.horarios td { text-align: right; }
.horarios .hoy th, .horarios .hoy td { color: var(--pista-osc); font-weight: 700; }
.hoy__marca { font-size: .72rem; background: var(--pista); color: var(--choco); border-radius: 999px; padding: 1px 9px; margin-left: 4px; vertical-align: 2px; font-weight: 700; }
.abierto { color: var(--gris); }
.abierto--si { color: #2F6B2A; font-weight: 700; }
.visita__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visita__acciones .boton { padding: 12px 8px; }
.visita__mapa { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; }
.visita__mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.pie { background: var(--choco); color: #E8D8C4; text-align: center; padding: 40px var(--g) 110px; display: grid; gap: 4px; }
.pie__marca { font: 400 2.6rem/1 var(--display); color: var(--crema); margin-bottom: 6px; }
.pie a { color: var(--crema); text-underline-offset: 4px; }
.pie__brito { margin-top: 12px; font-size: .88rem; }
.wa__boton { background: var(--choco); color: var(--crema); }

@media (prefers-reduced-motion: no-preference) {
  .hero__marca { animation: subir .8s ease both; }
  .hero__sub2, .hero__titulo { animation: subir .8s .15s ease both; }
  .hero__sub, .hero__acciones, .hero__abierto { animation: subir .8s .3s ease both; }
  .cono { animation: cono .7s .2s cubic-bezier(.2,1.3,.4,1) both; }
  .b1 { animation: caer .7s .6s cubic-bezier(.3,1.5,.5,1) both, bambo 5s 2s ease-in-out infinite; }
  .b2 { animation: caer .7s .85s cubic-bezier(.3,1.5,.5,1) both, bambo 5s 2.2s ease-in-out infinite; }
  .b3 { animation: caer .7s 1.1s cubic-bezier(.3,1.5,.5,1) both, bambo 5s 2.4s ease-in-out infinite; }
  @keyframes subir { from { opacity: 0; transform: translateY(16px); } }
  @keyframes cono { from { opacity: 0; transform: translateY(60px); } }
  @keyframes caer { from { opacity: 0; transform: translateY(-260px) scale(.9); } }
  @keyframes bambo { 50% { transform: translateX(3px) rotate(1.5deg); } }
  .js .momentos__lista[data-cascada] > li { transform: translateY(26px) rotate(1deg); }
  .js .momentos__lista[data-cascada].visto > li { transform: none; }
}

@media (min-width: 860px) {
  :root { --g: 40px; }
  .hero { grid-template-columns: 1.4fr 1fr; align-items: center; min-height: min(86vh, 760px); padding: 70px max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))); }
  .hero__acciones { grid-auto-flow: column; width: auto; max-width: none; }
  .cucurucho { transform: scale(1.35); }
  .momentos__lista { grid-template-columns: repeat(5, 1fr); }
  .momento { min-height: 230px; align-content: start; }
  .favoritos__caja { padding: 44px; }
  .favoritos__lista { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .fav { border-bottom: 0; border-top: 1px dashed rgba(255,246,232,.3); }
  .visita { grid-template-columns: 1fr 1.3fr; }
  .visita__mapa { aspect-ratio: auto; min-height: 400px; }
  .pie { padding-bottom: 48px; }
}
