/* Renzo Helados — Hallmark build · main stylesheet */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-4);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ============ NAV — N2 Floating chip ============ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 60; width: calc(100% - 32px); max-width: 960px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding: 10px 12px 10px 20px;
  background: rgba(17,17,38,.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  box-shadow: 0 14px 34px -20px rgba(0,0,0,.6);
  transition: transform .5s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__brand img { height: 26px; width: auto; }
.nav__brand span {
  font-family: var(--font-display); color: var(--paper); font-size: 1.15rem; letter-spacing: .01em;
}
.nav__links { display: flex; align-items: center; gap: var(--s-5); }
.nav__links a.link {
  color: rgba(250,245,239,.8); font-weight: 500; font-size: .92rem;
  position: relative; padding: 4px 2px; transition: color .3s var(--ease);
}
.nav__links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a.link:hover { color: var(--paper); }
.nav__links a.link:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 0;
  background: var(--accent-2); color: var(--on-accent);
  box-shadow: 0 8px 20px -8px rgba(184,74,54,.7);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--accent-3); transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(184,74,54,.75); }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn svg { width: 17px; height: 17px; }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--paper-3); box-shadow: none;
}
.btn--ghost:hover { background: var(--paper-2); border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn--on-dark { color: var(--paper); border-color: var(--cream-line); }
.btn--on-dark:hover { background: rgba(250,245,239,.08); border-color: var(--accent); color: var(--paper); }

.nav__toggle { display: none; }

/* ============ HERO — Quote-Led ============ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--paper);
  background: radial-gradient(120% 90% at 75% 10%, var(--hero-stop-1) 0%, var(--dark) 55%, var(--hero-stop-2) 100%);
  overflow: hidden; padding: 140px 0 90px;
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  background: var(--dark);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; opacity: .34; transform: scale(1.06); filter: saturate(1.05); }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(17,17,38,.55) 0%, rgba(17,17,38,.4) 40%, rgba(17,17,38,.82) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__logo { height: clamp(48px, 7vw, 78px); width: auto; margin-bottom: var(--s-6); }
.hero__quote {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.6vw, 5.2rem);
  line-height: 1.02;
  max-width: 16ch;
  margin: 0 0 var(--s-5);
}
.hero__quote em { font-style: normal; color: var(--accent); }
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(250,245,239,.82); max-width: 46ch; margin: 0 0 var(--s-7);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.hero__meta {
  margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8);
  border-top: 1px solid var(--cream-line); padding-top: var(--s-6);
}
.hero__meta .item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta .k { font-family: var(--font-display); font-size: 1.7rem; color: var(--paper); }
.hero__meta .k .star { color: var(--gold); }
.hero__meta .v { font-size: .82rem; letter-spacing: .04em; color: rgba(250,245,239,.62); text-transform: uppercase; }

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(250,245,239,.5);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0); opacity:.5 } 50%{ transform: translateY(7px); opacity:1 } }

/* ============ generic section ============ */
.section { padding: clamp(72px, 11vw, 130px) 0; }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 60ch; margin-bottom: var(--s-8); }
.section__head h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: var(--s-4); }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ============ SABORES grid ============ */
.sabores__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-8); }
.sabores__head { margin-bottom: 0; }
.flavors { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-5); }
.flavor {
  position: relative; padding: var(--s-6); border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--paper-3);
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  transform-style: preserve-3d; overflow: hidden;
}
.section--alt .flavor { background: var(--card); }
.flavor::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--swatch, var(--accent)); border-radius: 4px 0 0 4px;
  transform: scaleY(.0); transform-origin: top; transition: transform .45s var(--ease);
}
.flavor:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--swatch, var(--accent)); }
.flavor:hover::before { transform: scaleY(1); }
.flavor .dot {
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: var(--s-4);
  background: var(--swatch, var(--accent));
  box-shadow: inset 0 -6px 10px -4px rgba(0,0,0,.25), 0 6px 14px -6px var(--swatch, var(--accent));
}
.flavor h3 { font-size: 1.55rem; margin-bottom: 6px; }
.flavor p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.flavor .tag { display:inline-block; margin-top: var(--s-4); font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--accent); }

/* ============ NOSOTROS (split) ============ */
.about { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about__media .frame {
  position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--accent);
  border-radius: var(--radius-lg); z-index: -1;
}
.about__media .badge {
  position: absolute; bottom: -22px; right: clamp(10px, 4vw, 26px);
  background: var(--dark); color: var(--paper); padding: 14px 20px; border-radius: 16px;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; line-height: 1.1;
}
.about__media .badge b { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); }
.about__media .badge span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,245,239,.7); }
.about__copy h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: var(--s-5); }
.about__copy p { color: var(--ink-soft); margin: 0 0 var(--s-4); }
.about__copy p strong { color: var(--ink); }
.about__list { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-3); }
.about__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.about__list svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* ============ DÓNDE / HORARIOS ============ */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: stretch; }
.where__card {
  background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-card);
}
.section--alt .where__card { background: var(--card); }
.where__card h3 { font-size: 1.7rem; margin-bottom: var(--s-5); display:flex; align-items:center; gap:12px; }
.where__card h3 svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.where__row { display: flex; justify-content: space-between; gap: var(--s-4); padding: 12px 0; border-bottom: 1px dashed var(--paper-3); }
.where__row:last-child { border-bottom: 0; }
.where__row .day { color: var(--ink-soft); }
.where__row .hr { font-weight: 700; }
.where__row.is-now .hr { color: var(--accent); }
.where__open {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-5);
  font-weight: 700; color: var(--open); font-size: .92rem;
}
.where__open .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--open); box-shadow: 0 0 0 0 rgba(47,125,79,.5); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(47,125,79,.5) } 70%{ box-shadow: 0 0 0 12px rgba(47,125,79,0) } 100%{ box-shadow: 0 0 0 0 rgba(47,125,79,0) } }
.where__addr p { margin: 0 0 var(--s-3); color: var(--ink-soft); }
.where__addr .big { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: var(--s-3); }
.where__map {
  margin-top: var(--s-5); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--paper-3);
  aspect-ratio: 16 / 9; background: var(--paper-2);
}
.where__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============ CTA final ============ */
.cta {
  position: relative; color: var(--paper); text-align: center; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, var(--cta-stop-1) 0%, var(--dark) 60%, var(--cta-stop-2) 100%);
  padding: clamp(80px, 12vw, 140px) 0;
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
}
.cta::before { width: 360px; height: 360px; background: rgba(212,97,74,.4); top: -120px; left: -80px; }
.cta::after  { width: 320px; height: 320px; background: rgba(232,176,75,.28); bottom: -120px; right: -60px; }
.cta .wrap { position: relative; z-index: 1; }
.cta img.mark { height: 60px; width: auto; margin: 0 auto var(--s-6); }
.cta h2 { font-size: clamp(2.3rem, 6vw, 4.4rem); margin-bottom: var(--s-4); }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { color: rgba(250,245,239,.8); max-width: 44ch; margin: 0 auto var(--s-7); font-size: 1.1rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center; }
.cta .btn--ghost { color: var(--paper); border-color: var(--cream-line); }
.cta .btn--ghost:hover { background: rgba(250,245,239,.08); border-color: var(--accent); color: var(--paper); }

/* ============ FOOTER — Ft5 Statement ============ */
.footer { background: var(--dark); color: rgba(250,245,239,.7); padding: var(--s-9) 0 var(--s-6); }
.footer__statement {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); color: var(--paper);
  line-height: 1.05; max-width: 18ch; margin-bottom: var(--s-8);
}
.footer__statement em { font-style: normal; color: var(--accent); }
.footer__grid { display: flex; flex-wrap: wrap; gap: var(--s-7); justify-content: space-between; align-items: flex-start; border-top: 1px solid var(--cream-line); padding-top: var(--s-6); }
.footer__col h4 { font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,245,239,.5); margin: 0 0 var(--s-3); }
.footer__col p, .footer__col a { display:block; color: rgba(250,245,239,.8); margin-bottom: 6px; font-size: .95rem; }
.footer__col a:hover { color: var(--accent); }
.footer__social { display: flex; gap: var(--s-3); }
.footer__social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--cream-line); color: var(--paper); transition: transform .3s var(--ease-spring), background .3s var(--ease), border-color .3s var(--ease); }
.footer__social a:hover { transform: translateY(-3px); background: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; font-size: .8rem; color: rgba(250,245,239,.45); }

/* ============ Floating WhatsApp ============ */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.7);
  transition: transform .35s var(--ease-spring), box-shadow .3s var(--ease);
  opacity: 0; transform: translateY(20px) scale(.7); pointer-events: none;
}
.fab.is-on { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 18px 34px -8px rgba(37,211,102,.8); }
.fab svg { width: 30px; height: 30px; }

/* ============ scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: transform, opacity; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s }
.reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }
.reveal[data-d="5"]{ transition-delay:.40s }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .flavors { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 540px; }
  .where { grid-template-columns: 1fr; }
  .nav__links a.link { display: none; }
}
@media (max-width: 560px) {
  .flavors { grid-template-columns: 1fr; }
  .nav { padding: 8px 8px 8px 16px; top: 12px; }
  .nav__brand span { display: none; }
  .hero { padding-top: 120px; }
  .hero__meta { gap: var(--s-5) var(--s-6); }
  .footer__bottom { flex-direction: column; }
}

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