/* =========================================================
   Heladería Tinos — Propuesta de rediseño
   Heladería artesana: fresco y colorido (paleta real de sus
   sabores: frambuesa, pistacho, mango, chocolate) pero editorial
   y con clase — no infantil-chillón. Tipografía redondeada con
   peso propio (Quicksand) + cuerpo limpio (Mulish).
   ========================================================= */

:root {
  /* Marca — frambuesa (acento principal) */
  --berry-900: #5c1530;
  --berry-700: #ad2f56;
  --berry-600: #c23a63;
  --berry-500: #d9527a;
  --berry-300: #f0a8bf;
  --berry-100: #fbe6ec;

  /* Pistacho (acento secundario) */
  --pistachio-800: #33472c;
  --pistachio-600: #5c7c4c;
  --pistachio-400: #93b57e;
  --pistachio-200: #d3e5c4;
  --pistachio-100: #eef5e6;

  /* Mango (acento terciario, uso puntual) */
  --mango-600: #dd8b25;
  --mango-400: #f2b154;
  --mango-200: #fbdfaf;

  /* Neutros — crema y chocolate, no blanco de "app" */
  --choco: #2c1c15;
  --choco-soft: #6b5445;
  --line: #ecdfcd;
  --cream: #fdf7ee;
  --cream-soft: #f7ead4;
  --choco-dark: #1c110c;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(44, 28, 21, .08);
  --shadow: 0 16px 38px rgba(44, 28, 21, .14);
  --shadow-lg: 0 26px 64px rgba(44, 28, 21, .26);

  --maxw: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-body: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Quicksand', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--choco);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 700; letter-spacing: -.01em; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* Eyebrow: versalita con un swatch de color en vez de icono */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--berry-700);
}
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--berry-500); flex-shrink: 0; }

.section { padding: clamp(60px, 8vw, 108px) 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); margin: 14px 0 14px; color: var(--choco); }
.section-head h2 em { font-style: normal; color: var(--berry-700); }
.section-head p { color: var(--choco-soft); font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .96rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  cursor: pointer; border: 1.5px solid transparent; transition: background .25s var(--ease), color .25s, border-color .25s, transform .2s;
  white-space: nowrap; letter-spacing: .01em;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--berry-700); color: #fff; }
.btn-primary:hover { background: var(--berry-900); }
.btn-ghost { background: transparent; color: var(--choco); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--berry-500); color: var(--berry-700); }
.btn-wa { background: transparent; color: var(--choco); border-color: var(--line); }
.btn-wa:hover { border-color: #25D366; color: #1a8f47; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.header.scrolled { background: rgba(28,17,12,.94); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.22); padding: 11px 0; }

.header--hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,12,8,.65), rgba(20,12,8,0));
  z-index: 0; transition: opacity .35s;
}
.header--hero.scrolled::before { opacity: 0; }
.header .nav { position: relative; z-index: 5; }

/* Logo sobre una chapa crema fija: funciona igual sobre el hero
   transparente que sobre la cabecera ya sólida tras el scroll. */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-chip {
  display: flex; align-items: center; height: 40px; padding: 0 14px;
  background: var(--cream); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.brand-chip img { height: 20px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: .92rem; }
.nav-links > a { color: rgba(255,255,255,.88); transition: color .2s; }
.nav-links > a:hover { color: var(--berry-300); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.header .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.header .btn-ghost:hover { border-color: var(--berry-300); color: var(--berry-300); }
.header .burger { color: #fff; }

.burger { display: none; position: relative; background: none; border: 0; width: 28px; height: 28px; cursor: pointer; }
.burger svg { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; transition: opacity .2s; }
.burger .icon-close { opacity: 0; }
.header.menu-open .burger .icon-menu { opacity: 0; }
.header.menu-open .burger .icon-close { opacity: 1; }

/* El panel exterior anima max-height sin padding propio (ver nota):
   si el padding viviera aquí, no se comprimiría por debajo de
   max-height y dejaría una barra visible tapando la cabecera con
   el menú "cerrado". El padding real vive en .mobile-menu-inner.
   z-index por debajo de .header .nav (5) para que la marca y la
   hamburguesa (que también cierra el menú) queden siempre encima. */
.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; z-index: 2;
  background: var(--choco-dark); box-shadow: var(--shadow-lg);
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.mobile-menu.open { max-height: 100vh; overflow-y: auto; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 2px; padding: 92px 24px 24px; }
.mm-link { padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 600; color: rgba(255,255,255,.9); font-size: .96rem; }
.mm-cta { justify-content: center; margin-top: 16px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background:
    linear-gradient(180deg, rgba(20,12,8,.42) 0%, rgba(20,12,8,.58) 50%, rgba(20,12,8,.9) 100%),
    url('img/vitrina-helados.jpg') center 55% / cover no-repeat;
}
.hero-inner { color: #fff; max-width: 680px; }
.hero .eyebrow { color: var(--berry-300); }
.hero .eyebrow::before { background: var(--berry-300); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); margin: 20px 0 18px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--berry-300); }
.hero .lead { font-size: 1.14rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 30px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: var(--berry-300); color: var(--berry-300); }

.hero-trust { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-trust .stars { color: var(--mango-400); letter-spacing: 2px; font-size: 1.05rem; }
.hero-trust small { color: rgba(255,255,255,.78); font-size: .92rem; }
.hero-trust small b { color: #fff; }

.hero-swatches { display: flex; gap: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.sw-1 { background: var(--berry-500); }
.sw-2 { background: var(--pistachio-400); }
.sw-3 { background: var(--mango-400); }
.sw-4 { background: #efe3cf; }
.sw-5 { background: #8a5a3c; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ---------- Marquee de sabores ---------- */
.strip { background: var(--berry-700); overflow: hidden; padding: 14px 0; }
.marquee { display: flex; gap: 40px; width: max-content; animation: scroll-left 26s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; opacity: .95; }
.marquee span::after { content: '·'; margin-left: 40px; color: var(--berry-300); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---------- Nosotros / obrador ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photos { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.about-photos img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.about-photos .ph-tall { aspect-ratio: 3/4; }
.about-photos .ph-short { aspect-ratio: 3/4; margin-top: 34px; }
.about-text > p { color: var(--choco-soft); margin-bottom: 24px; font-size: 1.02rem; }
.quote-block {
  border-left: 3px solid var(--berry-500); padding: 4px 0 4px 20px; margin: 24px 0 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--choco);
}
.quote-block small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--choco-soft); font-size: .84rem; margin-top: 8px; }
.trait-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.trait { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.trait .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.trait h4 { font-size: 1rem; margin-bottom: 4px; }
.trait p { color: var(--choco-soft); font-size: .92rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 34px; } .about-photos .ph-short { margin-top: 0; } }

.zones { background: var(--cream-soft); }

/* ---------- Carta / productos (ilustraciones oficiales de marca) ---------- */
.price-note {
  text-align: center; color: var(--choco-soft); font-size: .88rem; margin-top: -20px; margin-bottom: 40px;
}
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.prod-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 20px 26px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prod-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.prod-photo img { max-width: 78%; max-height: 78%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(44,28,21,.18)); }
.bg-berry { background: var(--berry-100); }
.bg-pistachio { background: var(--pistachio-100); }
.bg-mango { background: var(--mango-200); }
.bg-choco { background: var(--cream-soft); }
.bg-cream { background: var(--berry-100); }
.prod-card h3 { font-size: 1.04rem; margin-bottom: 6px; }
.prod-card p { color: var(--choco-soft); font-size: .88rem; }

/* ---------- Stats ---------- */
.stats { background: var(--choco-dark); border-radius: var(--radius-lg); padding: 44px 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stats .num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; color: var(--berry-300); }
.stats .lbl { color: rgba(255,255,255,.62); font-size: .85rem; margin-top: 8px; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 18px; } }

/* ---------- Galería ---------- */
.gallery-teaser, .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-teaser figure, .gallery figure { border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; position: relative; }
.gallery-teaser img, .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-teaser figure:hover img, .gallery figure:hover img { transform: scale(1.06); }
@media (max-width: 720px) { .gallery-teaser, .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Prensa ---------- */
.press-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.press-card img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; }
.press-card .press-tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--berry-700); margin-bottom: 10px;
}
.press-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.press-card p { color: var(--choco-soft); font-size: .94rem; margin-bottom: 10px; }
.press-card a.press-link { color: var(--berry-700); font-weight: 700; font-size: .88rem; }
.press-card a.press-link:hover { text-decoration: underline; }
.press-credit { font-size: .74rem; color: var(--choco-soft); margin-top: 6px; opacity: .8; }
@media (max-width: 640px) { .press-card { grid-template-columns: 1fr; } }

/* ---------- Horario ---------- */
.hours-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 30px; }
.hours-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.hours-row:last-child { border-bottom: 0; }
.hours-row .day { font-weight: 600; }
.hours-row .time { color: var(--choco-soft); }
.hours-row.today { color: var(--berry-700); }
.hours-row.today .day, .hours-row.today .time { color: var(--berry-700); font-weight: 700; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 46px);
}
.contact-card .eyebrow { margin-bottom: 16px; }
.contact-card h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; }
.contact-card > p { color: var(--choco-soft); margin-bottom: 26px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--berry-100); color: var(--berry-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-line small { display: block; color: var(--choco-soft); font-size: .8rem; }
.contact-line b { font-size: 1rem; font-weight: 700; }
.contact-actions { display: flex; gap: 12px; margin: 26px 0 8px; flex-wrap: wrap; }
.contact-note { font-size: .82rem; color: var(--choco-soft); margin-top: 14px; }

.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.map-card iframe { width: 100%; height: 100%; border: 0; min-height: 320px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { background: var(--choco-dark); }
.cta-box { text-align: center; color: #fff; }
.cta-box .eyebrow { justify-content: center; color: var(--berry-300); }
.cta-box .eyebrow::before { background: var(--berry-300); }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 14px 0; }
.cta-box p { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 28px; }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-box .btn-ghost:hover { border-color: var(--berry-300); color: var(--berry-300); }

/* ---------- Footer ---------- */
.footer { background: var(--choco); color: rgba(255,255,255,.68); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--berry-300); }
.footer .brand-chip { background: rgba(255,255,255,.95); margin-bottom: 14px; }
.footer p.desc { max-width: 320px; font-size: .92rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Llamar flotante ----------
   El negocio no publica confirmación de WhatsApp Business (el 622...
   es un número de móvil, plausible, pero sin ninguna fuente pública
   que lo confirme como canal de pedidos) — el botón persistente usa
   el canal 100% verificado: llamada directa. */
.call-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--berry-700); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  border: 1.5px solid rgba(255,255,255,.25); transition: transform .3s var(--ease);
}
.call-float:hover { transform: scale(1.07); background: var(--berry-900); }
.call-float svg { width: 26px; height: 26px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,12,8,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 8px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .hero { padding-top: 90px; }
}
