/* =============================================================
   INSOLENTE ESTUDIO — styles.css
   Paleta tomada del logo: naranjo #D99128, negro, blanco + neutros.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --accent: #D99128;
  --accent-soft: #E8BF82;
  --accent-ink: #0B0B0B;          /* texto sobre naranjo */
  --bg: #0B0B0B;
  --bg-2: #111111;
  --surface: #151515;
  --line: #2E2E2E;
  --text: #F4F1EA;
  --muted: #B3B3B3;

  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --gutter: 1.25rem;
  --max: 1200px;
  --radius: 14px;
  --header-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }

.section { position: relative; padding-block: clamp(4rem, 10vw, 7.5rem); }

/* =============================================================
   4. Typography
   ============================================================= */
h2 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h2 em, .hero-title em { font-style: normal; color: var(--accent); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }

.kicker, .eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.kicker { margin-bottom: 1rem; }
.kicker::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 28px; height: 1px; margin-right: .75rem; background: var(--accent);
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 58ch; margin-top: 1.1rem; }
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent); font-weight: 600; font-size: .95rem;
  padding-block: .35rem;
}
.link-arrow::after { content: "→"; transition: transform .35s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(5px); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .85rem 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .85rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: rgba(244,241,234,.35); color: var(--text); background: rgba(11,11,11,.25); }
.btn-outline { border-color: var(--accent); color: var(--accent); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(217,145,40,.65); }
  .btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
  .btn-outline:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
}

.frame { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame[data-parallax] img { transform: translate3d(0, var(--py, 0px), 0) scale(1.1); will-change: transform; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open {
  background: rgba(11,11,11,.94);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header.is-solid { background: rgba(11,11,11,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.header-inner {
  display: flex; align-items: center; gap: .75rem;
  height: var(--header-h); max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter);
}
.brand { margin-right: auto; flex: none; }
.brand img { height: 38px; width: auto; }

.nav {
  /* absoluto respecto al header: el blur del header ancla los hijos fixed */
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.5rem var(--gutter) 6rem;
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .3s;
}
.site-header.is-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav a {
  font-family: var(--display); text-transform: uppercase;
  font-size: 2rem; line-height: 1.1; padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: grid; place-content: center; gap: 6px;
  width: 44px; height: 44px; flex: none;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .35s var(--ease-out); }
.site-header.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.site-header.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 clamp(2.5rem, 7vw, 5rem);
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  transform: translate3d(0, var(--hy, 0px), 0) scale(1.06);
  animation: heroZoom 14s var(--ease-soft) both;
}
@keyframes heroZoom { from { scale: 1.12; } to { scale: 1; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,11,11,.72) 0%, rgba(11,11,11,.42) 18%, rgba(11,11,11,.76) 44%, rgba(11,11,11,.97) 100%);
}

.viewfinder {
  position: absolute; z-index: 0; pointer-events: none;
  inset: calc(var(--header-h) + 14px) 14px 14px 14px;
  font-size: .68rem; font-weight: 500; letter-spacing: .16em; color: rgba(244,241,234,.85);
  font-variant-numeric: tabular-nums;
}
.vf-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(244,241,234,.7); }
.vf-tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf-rec { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); }
.vf-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: recBlink 1.6s steps(2, jump-none) infinite; }
@keyframes recBlink { 50% { opacity: .15; } }
.vf-meta { position: absolute; bottom: 12px; left: 14px; display: none; }
.vf-time { position: absolute; bottom: 12px; right: 14px; display: none; }

.hero-content { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: calc(var(--gutter) + 12px); }
.hero .eyebrow { margin-bottom: 1rem; text-shadow: 0 1px 14px rgba(0,0,0,.85); }
.hero-title {
  display: block;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.7rem, 8.4vw, 6.2rem);
  line-height: 1; letter-spacing: .005em;
  max-width: 14ch;
}
.hero-sub { margin-top: 1.25rem; max-width: 50ch; color: rgba(244,241,234,.88); font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(244,241,234,.2);
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hero-facts strong { color: var(--accent); font-weight: 600; margin-right: .3rem; }

/* entrada del hero (solo con JS; sin JS se ve completo) */
.js .hero-content > * { opacity: 0; transform: translateY(26px); animation: heroIn 1s var(--ease-out) forwards; }
.js .hero-content > :nth-child(1) { animation-delay: .15s; }
.js .hero-content > :nth-child(2) { animation-delay: .32s; }
.js .hero-content > :nth-child(3) { animation-delay: .46s; }
.js .hero-content > :nth-child(4) { animation-delay: .6s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding-block: .9rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .06em;
  color: var(--muted); white-space: nowrap; padding-right: 2.4rem;
}
.marquee-track span::after { content: "●"; color: var(--accent); font-size: .5em; margin-left: 2.4rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Propuesta de valor ---------- */
.valor-grid { display: grid; gap: 2.5rem; }
.valor-figure .frame { aspect-ratio: 4 / 5; }
.pilar {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding-block: 1.6rem; border-top: 1px solid var(--line);
}
.pilar:last-child { border-bottom: 1px solid var(--line); }
.pilar-num { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--accent); min-width: 2.2ch; }
.pilar p { color: var(--muted); margin-top: .45rem; }

/* ---------- Equipamiento ---------- */
.equip { background: var(--bg-2); border-block: 1px solid var(--line); }
.equip-layout { display: grid; gap: 1.5rem; }
.equip-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.equip-stage img { width: 100%; }

.hotspot {
  position: absolute; left: var(--x); top: var(--y);
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.hotspot span {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); color: var(--accent); border: 1.5px solid var(--accent);
  font-size: .8rem; font-weight: 600;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s;
}
.hotspot::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: 0;
  animation: ping 2.6s var(--ease-out) infinite;
}
.hotspot:nth-of-type(2)::before { animation-delay: .5s; }
.hotspot:nth-of-type(3)::before { animation-delay: 1s; }
.hotspot:nth-of-type(4)::before { animation-delay: 1.5s; }
.hotspot:nth-of-type(5)::before { animation-delay: 2s; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
.hotspot.is-active span, .hotspot:hover span { background: var(--accent); color: var(--accent-ink); transform: scale(1.18); }

.equip-list { display: grid; gap: .6rem; align-content: start; }
.equip-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s, background-color .3s, transform .5s var(--ease-out), opacity .7s var(--ease-out);
  cursor: pointer; outline-offset: 2px;
}
.equip-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--muted); font-size: .82rem; font-weight: 600;
  transition: all .3s;
}
.equip-item p { color: var(--muted); font-size: .94rem; margin-top: .35rem; }
.equip-item.is-active { border-color: var(--accent); background: #1A1611; }
.equip-item.is-active .equip-num { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

.equip-extra { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.equip-extra li, .otros li {
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; color: var(--text);
}
.equip-extra li::before { content: "+ "; color: var(--accent); font-weight: 600; }

/* ---------- Equipo ---------- */
.equipo-grid { display: grid; gap: 2.5rem; }
.proceso { display: grid; gap: 0; counter-reset: paso; }
.proceso li {
  display: grid; grid-template-columns: 3.2rem 1fr; column-gap: .5rem;
  padding-block: 1.15rem; border-top: 1px solid var(--line);
}
.proceso li > span { grid-row: span 2; font-family: var(--display); font-size: 1.5rem; color: var(--accent); line-height: 1.2; }
.proceso p { color: var(--muted); font-size: .94rem; margin-top: .2rem; }
.equipo-figure .frame { aspect-ratio: 4 / 3; }
.equipo-figure figcaption { margin-top: .8rem; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- Formatos ---------- */
.formatos { padding-top: 0; }
.formatos-media { position: relative; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.formatos-media .frame { border-radius: 0; aspect-ratio: 16 / 10; max-height: 78vh; width: 100%; }
.formatos-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,11,0) 22%, rgba(11,11,11,0) 70%, var(--bg) 100%);
}
.formatos-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.formato { padding: 1.4rem 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease-out), opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.formato h3 { display: flex; align-items: baseline; gap: .7rem; }
.formato h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.formato p { color: var(--muted); font-size: .94rem; margin-top: .35rem; padding-left: calc(8px + .7rem); }

/* ---------- Planes ---------- */
.planes { background: var(--bg-2); border-block: 1px solid var(--line); }
.launch {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.4rem; padding: .5rem 1rem;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.launch i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: recBlink 1.6s steps(2, jump-none) infinite; }
.planes-grid { display: grid; gap: 1.1rem; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 1.9rem 1.5rem 1.6rem; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), border-color .3s, opacity .7s var(--ease-out);
}
.plan::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(217,145,40,.16), transparent 65%);
}
@media (hover: hover) {
  .plan:hover { transform: translateY(-6px); border-color: rgba(217,145,40,.55); }
  .plan:hover::before { opacity: 1; }
  .formato:hover { padding-left: .6rem; }
  .equip-item:hover { border-color: rgba(217,145,40,.55); }
}
.plan-featured { border-color: var(--accent); background: #1A1611; }
.plan-badge {
  position: absolute; top: 1.4rem; right: 1.3rem;
  padding: .28rem .7rem; border-radius: 6px; background: var(--accent); color: var(--accent-ink);
  font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.plan-tag { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.plan h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; text-wrap: balance; letter-spacing: .01em; margin-top: .4rem; line-height: 1.05; }
.plan-desc { color: var(--muted); font-size: .94rem; margin-top: .6rem; min-height: 3.1em; }
.plan-price { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.plan-price strong { font-family: var(--display); font-weight: 400; font-size: 2.7rem; line-height: 1; letter-spacing: .01em; }
.plan-price span { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.plan-list { display: grid; gap: .6rem; margin: 1.3rem 0 1.7rem; font-size: .93rem; }
.plan-list li { display: grid; grid-template-columns: auto 1fr; gap: .65rem; }
.plan-list li::before { content: "✓"; color: var(--accent); font-weight: 600; }
.plan .btn { margin-top: auto; width: 100%; }

.otros {
  display: grid; gap: 1rem; margin-top: 2rem; padding: 1.5rem;
  border: 1px dashed var(--line); border-radius: 20px;
}
.otros ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.otros strong { color: var(--accent); font-weight: 600; }

/* ---------- Portafolio ---------- */
.casos { display: grid; gap: 1.5rem; }
.caso { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); transition: border-color .3s, opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  transition: transform .4s var(--ease-out);
}
.yt-play::after {
  content: ""; position: absolute; left: 27px; top: 22px;
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--accent-ink);
}
@media (hover: hover) {
  .yt:hover img { transform: scale(1.05); }
  .yt:hover .yt-play { transform: scale(1.12); }
  .caso:hover { border-color: rgba(217,145,40,.55); }
}
.caso-body { padding: 1.4rem 1.4rem 1.5rem; }
.caso-meta { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.caso h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; margin-top: .4rem; line-height: 1.05; }
.caso-body > p:not(.caso-meta) { color: var(--muted); font-size: .95rem; margin: .6rem 0 .8rem; }

.testimonio { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-left: 1.4rem; border-left: 2px solid var(--accent); max-width: 900px; }
.testimonio blockquote p { font-size: clamp(1.2rem, 3.2vw, 1.75rem); line-height: 1.45; font-weight: 400; color: var(--text); }
.testimonio figcaption { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }
.testimonio figcaption strong { display: block; color: var(--text); font-weight: 600; font-size: 1rem; }

/* ---------- Agenda ---------- */
.agenda { background: var(--bg-2); border-block: 1px solid var(--line); }
.agenda-box { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: clamp(1.4rem, 4vw, 2.5rem); }
.agenda-steps { display: grid; gap: .8rem; margin-bottom: 1.8rem; }
.agenda-steps li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.agenda-steps span {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .9rem;
}
.agenda-embed { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; background: #fff; }
.agenda-embed iframe { width: 100%; height: min(820px, 85vh); border: 0; }
.agenda-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.agenda-note { margin-top: 1rem; color: var(--muted); font-size: .88rem; }
[hidden] { display: none !important; }

/* ---------- Ubicación ---------- */
.ubi-grid { display: grid; gap: 1.5rem; }
.ubi-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4 / 3; }
.ubi-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.ubi-list { display: grid; align-content: start; }
.ubi-list li { padding-block: 1.2rem; border-top: 1px solid var(--line); }
.ubi-list h3 { color: var(--accent); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.ubi-list p { margin-top: .4rem; color: var(--text); }
.ubi-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); border-top: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.04rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--accent); font-size: 1.2rem; font-weight: 400;
  transition: transform .4s var(--ease-out), background-color .25s, color .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq-list details p { color: var(--muted); padding: 0 3rem 1.4rem 0; }
.faq-list details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA final ---------- */
.cta-final { padding-block: clamp(4.5rem, 12vw, 8rem); text-align: center; background: radial-gradient(60% 90% at 50% 100%, rgba(217,145,40,.2), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.cta-final h2 { font-size: clamp(2.6rem, 9vw, 6rem); }
.cta-final .hero-actions { justify-content: center; margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 7rem; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 2.2rem; }
.footer-logo { width: 170px; margin-bottom: 1rem; margin-left: -6px; }
.site-footer h2 { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; color: var(--accent); margin-bottom: .9rem; line-height: 1.4; }
.site-footer address { color: var(--text); margin-bottom: .6rem; }
.site-footer li a { display: inline-block; padding-block: .4rem; color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; }

/* ---------- Flotantes ---------- */
.floating {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  display: flex; gap: .6rem; align-items: center;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11,11,11,0), rgba(11,11,11,.92) 45%);
  transform: translateY(110%); transition: transform .5s var(--ease-out);
  pointer-events: none;
}
.floating > * { pointer-events: auto; }
.floating.is-visible, html:not(.js) .floating { transform: none; }
.floating-cta { flex: 1; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.floating-wa {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--accent); color: var(--accent);
  transition: transform .35s var(--ease-out), background-color .25s, color .25s;
}
@media (hover: hover) { .floating-wa:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); } }

/* =============================================================
   7. Effects — reveal al hacer scroll (solo con JS activo)
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  :root { --gutter: 1.75rem; }
  .formatos-grid { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .agenda-steps { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem 2.2rem; }
  .vf-time, .vf-meta { display: block; }
}

@media (min-width: 720px) {
  :root { --header-h: 76px; --gutter: 2.25rem; }
  .brand img { height: 46px; }
  .hero-media img { object-position: 50% 60%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(11,11,11,.72) 0%, rgba(11,11,11,.28) 26%, rgba(11,11,11,.5) 52%, rgba(11,11,11,.96) 100%),
      linear-gradient(90deg, rgba(11,11,11,.6) 0%, rgba(11,11,11,0) 70%);
  }
  .hero-sub { font-size: 1.1rem; }
  .valor-grid { grid-template-columns: 5fr 6fr; gap: 3.5rem; align-items: center; }
  .planes-grid { grid-template-columns: 1fr 1fr; }
  .planes-grid .plan:last-child { grid-column: span 2; }
  .casos { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .site-footer { padding-bottom: 3rem; }
  .otros { grid-template-columns: 1fr auto; align-items: center; }
  .otros ul { grid-column: 1; }
  .otros .link-arrow { grid-column: 2; grid-row: 1 / span 2; }

  /* en pantallas grandes solo queda el botón de WhatsApp flotante */
  .floating { left: auto; right: 1.5rem; bottom: 1.5rem; padding: 0; background: none; }
  .floating-cta { display: none; }
  .floating-wa { width: 58px; height: 58px; box-shadow: 0 14px 34px -10px rgba(0,0,0,.8); }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; height: auto; flex-direction: row; gap: 1.6rem; padding: 0; overflow: visible;
    background: none; visibility: visible; opacity: 1; transform: none; margin-right: 1rem;
  }
  .nav a { font-family: var(--sans); text-transform: none; font-size: .88rem; font-weight: 500; padding: .4rem 0; border: 0; position: relative; color: rgba(244,241,234,.86); }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease-out); }
  .nav a:hover { color: var(--text); }
  .nav a:hover::after { transform: scaleX(1); }

  .equip-layout { grid-template-columns: 1.65fr 1fr; gap: 1.75rem; align-items: start; }
  .equip-stage { position: sticky; top: calc(var(--header-h) + 1.25rem); }
  .equipo-grid { grid-template-columns: 6fr 5fr; gap: 4rem; align-items: center; }
  .formatos-grid { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
  .formatos-media .frame { aspect-ratio: 21 / 9; }
  .planes-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .planes-grid .plan:last-child { grid-column: auto; }
  .plan { padding: 2.2rem 1.9rem 1.9rem; }
  .ubi-grid { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
  .ubi-map { aspect-ratio: auto; min-height: 460px; }
}

@media (min-width: 1280px) {
  .hero-content { padding-inline: 3.5rem; }
  .viewfinder { inset: calc(var(--header-h) + 20px) 28px 28px 28px; }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo; hovers y fades siguen
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  .frame[data-parallax] img { transform: none; }
  .marquee-track { animation-duration: 90s; }
  .vf-rec i, .launch i, .hotspot::before { animation: none; }
  .js .reveal { transform: none; transition-duration: .4s; }
}
