/* ═══════════════════════════════════════════
   GENERICBAR — Shared Styles (plantilla de demo)
   Paleta deliberadamente distinta a Can Joan (slate/teal, no marrón/naranja),
   para que se note a simple vista que esto es la plantilla neutra, no un
   clon de marca. Cambiar estas variables es todo lo que hace falta para
   adaptar el look a un cliente nuevo mientras se prueba el motor de carta.
   ═══════════════════════════════════════════ */
:root {
  --bg:  #0B1220;
  --bg2: #121B2E;
  --bg3: #1A2740;
  --ac:  #14B8A6;
  --ac2: #0D9488;
  --cr:  #E8EEF5;
  --cr2: rgba(232,238,245,.64);
  --cr3: rgba(232,238,245,.38);
  --wh:  #FFFFFF;
  --ff-h: 'Fraunces', Georgia, serif;
  --ff-b: 'Inter', system-ui, sans-serif;
  --nav-h: 76px;
  --mw: 1200px;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --sh: 0 8px 32px rgba(0,0,0,.45);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-b);
  background: var(--bg);
  color: var(--cr);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

/* ── FADE-IN ── */
.fi { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fi.on { opacity: 1; transform: none; }
.fi.d1 { transition-delay: .08s; } .fi.d2 { transition-delay: .16s; }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem,4vw,3rem);
  background: transparent; transition: background .3s, box-shadow .3s;
}
#nav.solid { background: rgba(11,18,32,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(232,238,245,.06); }
.logo-text { font-family: var(--ff-h); font-size: 1.3rem; font-weight: 700; color: var(--cr); letter-spacing: .01em; }
.logo-text span { color: var(--ac); }
.nav-links { display: none; align-items: center; gap: 2.25rem; }
.nav-links a {
  font-size: .78rem; font-weight: 500; letter-spacing: .04em; color: var(--cr2);
  transition: color .2s; position: relative;
}
.nav-links a:hover, .nav-links a.act { color: var(--cr); }
.nav-links a.act::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--ac); }
.nav-r { display: flex; align-items: center; gap: 1rem; }
.lt { display: flex; gap: 2px; background: rgba(232,238,245,.06); border-radius: 20px; padding: 3px; }
.lt button { padding: 5px 10px; font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: var(--cr3); border-radius: 16px; transition: all .2s; }
.lt button.a { background: var(--ac); color: var(--bg); }
.hb { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.hb span { display: block; height: 2px; background: var(--cr); border-radius: 2px; transition: all .25s; }
.hb.o span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hb.o span:nth-child(2) { opacity: 0; }
.hb.o span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav-links { display: flex; } .hb { display: none; } }

.mob {
  position: fixed; inset: 0; top: var(--nav-h); z-index: 190;
  background: var(--bg2); display: flex; flex-direction: column; gap: 1.75rem;
  padding: 2.5rem clamp(1.5rem,6vw,3rem);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
}
.mob.o { transform: none; opacity: 1; pointer-events: all; }
.mob a { font-family: var(--ff-h); font-size: 1.6rem; font-weight: 600; color: var(--cr); }
.mob-lt { display: flex; gap: 8px; margin-top: .5rem; }
.mob-lt button { padding: 8px 16px; font-size: .8rem; font-weight: 600; border-radius: 20px; background: rgba(232,238,245,.08); color: var(--cr3); }
.mob-lt button.a { background: var(--ac); color: var(--bg); }
@media (min-width: 900px) { .mob { display: none; } }

/* ── HERO (index) ── */
#hero {
  min-height: 92vh; display: flex; align-items: center; position: relative;
  padding: calc(var(--nav-h) + 2rem) clamp(1.5rem,4vw,3rem) 4rem;
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(20,184,166,.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(13,148,136,.14), transparent 60%),
    var(--bg);
}
.hero-in { max-width: 720px; margin: 0 auto; text-align: center; }
.lbl {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ac); margin-bottom: 1.25rem;
}
.hero-h1 {
  font-family: var(--ff-h); font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 600;
  line-height: 1.12; color: var(--cr); margin-bottom: 1.25rem;
}
.hero-h1 em { font-style: italic; color: var(--ac); }
.hero-p { font-size: 1.02rem; color: var(--cr2); line-height: 1.7; max-width: 560px; margin: 0 auto 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ac); color: var(--bg); padding: 13px 26px;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 3px; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--ac2); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--cr); padding: 12px 25px;
  font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 3px; border: 1px solid rgba(232,238,245,.22); transition: all .2s;
}
.btn-outline:hover { border-color: var(--ac); color: var(--ac); }

/* ── FEATURE STRIP (index) ── */
#features { padding: 5rem clamp(1.5rem,4vw,3rem) 6rem; }
.feat-grid {
  max-width: var(--mw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 720px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat-card {
  background: var(--bg2); border: 1px solid rgba(232,238,245,.08); border-radius: 6px;
  padding: 2rem 1.75rem; border-top: 2px solid var(--ac);
}
.feat-icon {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(20,184,166,.14);
  color: var(--ac); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.feat-card h3 { font-family: var(--ff-h); font-size: 1.1rem; font-weight: 600; color: var(--cr); margin-bottom: .5rem; }
.feat-card p { font-size: .86rem; color: var(--cr3); line-height: 1.6; }

/* ── PAGE HEADER (carta) ── */
.page-hd { padding: calc(var(--nav-h) + 3.5rem) clamp(1.5rem,4vw,3rem) 2.5rem; text-align: center; }
.page-hd-in { max-width: 640px; margin: 0 auto; }
.page-hd h1 { font-family: var(--ff-h); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; color: var(--cr); margin: .5rem 0 1rem; }
.page-hd p { font-size: .95rem; color: var(--cr2); line-height: 1.7; }

/* ── ALLERGY BANNER ── */
#allergy { background: var(--bg2); padding: 3rem clamp(1.5rem,4vw,3rem); border-top: 1px solid rgba(20,184,166,.14); }
.allergy-in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
@media (min-width: 640px) { .allergy-in { flex-direction: row; text-align: left; gap: 1.75rem; } }
.allergy-icon { width: 48px; height: 48px; flex-shrink: 0; background: rgba(20,184,166,.14); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ac); }
.allergy-body h3 { font-family: var(--ff-h); font-size: 1.15rem; font-weight: 700; color: var(--cr); margin-bottom: .4rem; }
.allergy-body p { font-size: .86rem; color: var(--cr3); line-height: 1.6; }

/* ── FOOTER ── */
#foot { padding: 3rem clamp(1.5rem,4vw,3rem) 2rem; border-top: 1px solid rgba(232,238,245,.07); }
.foot-in { max-width: var(--mw); margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; align-items: center; text-align: center; }
.foot-logo { font-family: var(--ff-h); font-size: 1.15rem; font-weight: 700; color: var(--cr); }
.foot-note { font-size: .8rem; color: var(--cr3); line-height: 1.6; max-width: 480px; }
.fcopy { font-size: .74rem; color: var(--cr3); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 4px; }
