/* Tequimix — estilos base y componentes (escenario vivo). */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 0.98; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 8vw, 6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

/* Skip link (a11y) */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem var(--gutter);
  background: rgba(10, 8, 16, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 8, 16, 0.86); }
.brand { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.02em; text-transform: uppercase; display: inline-flex; align-items: center; }
.brand span { color: var(--accent); }
.brand__logo { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; padding: 0.85rem 1.5rem;
  border-radius: 999px; border: 1px solid var(--accent-line);
  background: var(--accent); color: var(--accent-ink);
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px var(--accent-soft); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn.block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-block: 8rem 4rem; overflow: hidden;
}
.hero__stage {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 50% at 20% 10%, var(--accent-soft), transparent 70%),
    radial-gradient(50% 60% at 90% 30%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink) 100%);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.4; filter: saturate(1.15) contrast(1.05);
}
.hero__stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 14, 23, 0.55) 0%, rgba(15, 14, 23, 0.35) 40%, var(--ink) 96%);
}
.hero__beam { z-index: 1; }

/* Galería */
.gallery { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.gallery a:hover img { transform: scale(1.03); border-color: var(--accent-line); }
/* Luces de tarima */
.hero__beam {
  position: absolute; top: -20%; width: 30vw; height: 140%;
  background: linear-gradient(180deg, var(--accent-line), transparent 65%);
  filter: blur(40px); opacity: 0.5; transform: rotate(12deg);
}
.hero__beam.b1 { left: 6%; }
.hero__beam.b2 { left: 40%; transform: rotate(-9deg); opacity: 0.35; }
.hero__beam.b3 { right: 4%; transform: rotate(15deg); opacity: 0.28; }
.hero__inner { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__doors { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); margin: 0; }
.card__num { font-family: var(--font-display); color: var(--accent); font-size: 1.4rem; margin-bottom: 0.8rem; display: block; }

/* ---------- Sección "escenario" (chapters) ---------- */
.chapter { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .chapter { grid-template-columns: 1fr 1fr; } }
.chapter__visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 30% 20%, var(--accent-soft), transparent), var(--surface);
  display: grid; place-items: center; overflow: hidden;
}
.chapter__visual span { font-family: var(--font-display); color: var(--muted-2); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- CTA banda ---------- */
.banda {
  border-radius: var(--radius); border: 1px solid var(--accent-line);
  background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--surface);
  padding: clamp(2rem, 5vw, 4rem); text-align: center;
}

/* ---------- Funnel ---------- */
.funnel { max-width: 620px; margin-inline: auto; }
.funnel__progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 2rem; }
.funnel__progress i { display: block; height: 100%; width: 25%; background: var(--accent); transition: width 0.4s var(--ease); }
.funnel__step { display: none; }
.funnel__step.is-active { display: block; animation: fade 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  background: var(--ink-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 0.98rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.choices { display: grid; gap: 0.7rem; }
.choice {
  display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  background: var(--ink-2); transition: border-color 0.2s, background 0.2s;
}
.choice:hover { border-color: var(--accent-line); }
.choice input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.choice.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.funnel__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.form-error { color: var(--accent); font-size: 0.9rem; margin-top: 0.8rem; min-height: 1.2rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; margin-top: var(--section-y); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; margin: 0 0 1rem; }
.footer a, .footer p { color: var(--muted); font-size: 0.92rem; display: block; margin-bottom: 0.5rem; }
.footer a:hover { color: var(--text); }
.footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------- Reveal (motion) ---------- */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); }

/* ---------- Accesibilidad / foco ---------- */
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Trust strip ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-block: 1px solid var(--line); }
.strip__item { padding: 1.2rem var(--gutter); border-left: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; display: flex; align-items: center; gap: 0.6rem; }
.strip__item:first-child { border-left: 0; }
.strip__item b { color: var(--text); font-family: var(--font-display); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.04em; }
.strip__dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); flex: none; }

/* ---------- Split + lista numerada ---------- */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(280px, 1fr) 1.5fr; align-items: start; } .split__head { position: sticky; top: 6.5rem; } }
.numlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.numlist li { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.numlist__i { font-family: var(--font-display); color: var(--accent); font-size: 1.25rem; }
.numlist h3 { margin-bottom: 0.35rem; }
.numlist p { color: var(--muted); margin: 0; }

/* ---------- Marquee (uno por página) ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.2rem 0; }
.marquee__track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 4.5vw, 2.8rem); color: var(--muted-2); }
.marquee span em { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Feature rows ---------- */
.feature { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature__row { display: grid; gap: 0.7rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--ink-2)); }
.feature__row .k { font-family: var(--font-display); color: var(--accent); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Galería horizontal (scroll-snap) ---------- */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 360px); gap: 1rem; overflow-x: auto; padding: 0 var(--gutter) 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); scroll-snap-align: center; transition: transform 0.4s var(--ease); }
.hscroll a:hover img { transform: scale(1.03); }
.scrollhint { color: var(--muted-2); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 0.4rem; }

/* ---------- Acordeón FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.35rem 0; font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.15rem); text-transform: uppercase; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.6rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list p { color: var(--muted); padding-bottom: 1.4rem; margin: 0; max-width: 68ch; }

/* ---------- WhatsApp flotante ---------- */
.float-wa { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 54px; height: 54px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(240, 0, 105, 0.35); transition: transform 0.25s var(--ease); }
.float-wa:hover { transform: translateY(-3px); }

/* ---------- Nav activo ---------- */
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 2px; width: 100%; background: var(--accent); margin-top: 3px; }

/* ---------- Menú móvil ---------- */
.nav__toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--text); width: 44px; height: 40px; border-radius: 10px; font-size: 1.15rem; cursor: pointer; }
@media (max-width: 860px) { .nav__toggle { display: inline-flex; align-items: center; justify-content: center; } }
.navmenu { position: fixed; inset: 0; z-index: 80; background: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; }
.navmenu[hidden] { display: none; }
.navmenu nav { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.navmenu a { font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2rem); text-transform: uppercase; color: var(--text); }
.navmenu a:hover { color: var(--accent); }
.navmenu__close { position: absolute; top: 1rem; right: 1.2rem; background: transparent; border: 0; color: var(--text); font-size: 2.2rem; line-height: 1; cursor: pointer; }
body.nav-open { overflow: hidden; }

/* ---------- Setlist / repertorio ---------- */
.setlist { columns: 2; column-gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 640px) { .setlist { columns: 1; } }
.setlist li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); color: var(--muted); break-inside: avoid; }
.setlist li b { color: var(--text); font-weight: 600; }

/* ---------- Videos (facade → iframe al clic) ---------- */
.videos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.video { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #000; cursor: pointer; padding: 0; aspect-ratio: 16 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); transition: transform 0.25s var(--ease); }
.video:hover .video__play { transform: scale(1.12); }
.video__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 0.9rem; font-size: 0.85rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78)); text-align: left; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.quote { margin: 0; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--ink-2)); }
.quote p { font-size: 1.12rem; margin: 0 0 1.1rem; }
.quote p::before { content: "\201C"; color: var(--accent); font-family: var(--font-display); margin-right: 2px; }
.quote cite { color: var(--muted); font-style: normal; font-size: 0.9rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1.5rem; text-align: center; border-block: 1px solid var(--line); padding-block: 2.6rem; }
.stats b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3.2rem); color: var(--accent); line-height: 1; }
.stats span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Pasos (proceso) ---------- */
.steps { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps .step { border-top: 2px solid var(--accent); padding-top: 1.2rem; }
.steps .step b { font-family: var(--font-display); color: var(--accent); display: block; margin-bottom: 0.5rem; }
.steps .step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.steps .step p { color: var(--muted); margin: 0; }

/* ---------- Transición de página ---------- */
.js body { animation: pageIn 0.45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.leaving { opacity: 0 !important; transition: opacity 0.18s ease; }

/* ---------- Galería completa + lightbox ---------- */
.gallery--full { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery__item { padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; border-radius: var(--radius-sm); overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform 0.4s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; }
.lightbox::backdrop { background: rgba(9, 8, 14, 0.92); }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: var(--radius-sm); display: block; }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 90; background: rgba(15, 14, 23, 0.7); color: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Artículo (blog) ---------- */
.article { max-width: 760px; }
.article h1 { margin-bottom: 0.4rem; }
.article h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); margin: 2.4rem 0 0.8rem; text-transform: none; }
.article p { color: var(--muted); max-width: 68ch; }
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { padding: 0.5rem 0 0.5rem 1.8rem; position: relative; border-bottom: 1px solid var(--line); color: var(--text); }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
