/* =============================================================
   IEM · In Ears Montería — styles.css
   Archetype 02 · Editorial Dark Warm (adaptado a audio)
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
@property --mesh-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg:       #0b0a09;
  --bg-2:     #12100e;
  --bg-3:     #1a1714;
  --cream:    #f2ede4;
  --cream-2:  #cfc7b9;
  --cream-3:  #8a8276;
  --accent:   #c9a45c;   /* latón dorado, como las boquillas */
  --accent-2: #e0c07e;
  --violet:   #6d4bff;   /* solo en la sección Phantom */
  --panel:    #ebe8e2;   /* fondo claro para fotos de producto */
  --line:     rgba(242, 237, 228, .12);

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

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

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 22px;
  --nav-h: 72px;
}

/* 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(--nav-h) + 12px);
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ------------------------------------------------- */
[hidden] { display: none !important; }
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* 4. Typography ------------------------------------------------ */
em { font-style: italic; color: var(--accent); font-family: var(--serif); }
.eyebrow, .kicker {
  font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--cream-2); }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(201,164,92,.6); animation: pulse 2.4s var(--ease-soft) infinite;
}
h2 { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; }

/* 5. Components ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .45s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .45s var(--ease-out);
}
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn-primary { background: var(--accent); color: #17130c; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(201,164,92,.7); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream-2); transform: translateY(-2px); }
.btn-small { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-large { padding: 1.15rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: .35rem .75rem; border-radius: 999px;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  background: rgba(11,10,9,.85); color: var(--cream);
}
.badge-accent { background: var(--accent); color: #17130c; }

/* Ticker */
.ticker {
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: var(--bg-2); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--cream-2);
}
.ticker-track {
  display: flex; gap: 1.6rem; width: max-content; padding: .6rem 0;
  animation: marquee 38s linear infinite;
}
.ticker-track i { color: var(--accent); font-style: normal; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,10,9,.92);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
@supports (backdrop-filter: blur(12px)) {
  .nav { background: rgba(11,10,9,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.nav-logo img { height: 40px; width: auto; mix-blend-mode: screen; }
.nav-links { display: none; gap: 2rem; margin-left: auto; font-size: .9rem; color: var(--cream-2); }
.nav-links a { position: relative; padding-block: .3rem; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: auto; }
.nav-toggle { display: grid; gap: 6px; width: 40px; height: 40px; place-content: center; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease-out); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav.is-open .nav-links {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.2rem;
}
.nav.is-open .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }

/* 6. Sections -------------------------------------------------- */
.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { margin-top: .8rem; }
.section-lede { margin-top: 1.2rem; color: var(--cream-2); font-size: 1.08rem; max-width: 38rem; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100vh - var(--nav-h) - 34px);
  min-height: calc(100svh - var(--nav-h) - 34px);
  display: grid; align-items: center;
  padding-block: 3rem 5rem;
}
.hero-mesh {
  position: absolute; inset: -10% -10% 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 45% at 75% 45%, rgba(109,75,255,.30), transparent 70%),
    radial-gradient(35% 40% at 20% 70%, rgba(201,164,92,.16), transparent 70%),
    conic-gradient(from var(--mesh-angle) at 60% 50%, rgba(109,75,255,.10), rgba(201,164,92,.08), rgba(109,75,255,.10));
  filter: blur(70px);
  animation: meshSpin 26s linear infinite;
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero-title {
  margin-top: 1.4rem;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(3rem, 9vw, 6.6rem); line-height: .98; letter-spacing: -.03em;
  max-width: 11ch;
}
.hero-sub { margin-top: 1.5rem; max-width: 32rem; color: var(--cream-2); font-size: 1.1rem; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-facts {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.hero-facts li { display: grid; }
.hero-facts strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.hero-facts span { font-size: .8rem; color: var(--cream-3); letter-spacing: .06em; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  animation: bob 7s ease-in-out infinite;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-3);
  padding-bottom: 2.2rem;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 1.6rem;
  background: linear-gradient(var(--accent), transparent); animation: drip 2.2s var(--ease-soft) infinite;
}

/* Scenes · recorrido horizontal
   Por defecto (móvil / sin JS): carrusel deslizable con el dedo.
   En escritorio, el JS añade .is-pinned y la sección se "fija" mientras el scroll mueve las escenas. */
.scenes { position: relative; background: var(--bg); padding-block: clamp(4rem, 9vw, 6rem); border-top: 1px solid var(--line); }
.scenes-track {
  display: flex; gap: 1rem; padding-inline: var(--gutter);
  overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 1rem;
}
.scenes-track::-webkit-scrollbar { display: none; }
.scene {
  flex: 0 0 86%; scroll-snap-align: start; position: relative;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.scene-intro, .scene-outro {
  background: none; border: 0; justify-content: center; padding: 0 .25rem 1rem 0;
}
.scene-intro h2 { margin-top: .8rem; }
.scene-outro { padding: 2rem 1.6rem; background: linear-gradient(160deg, rgba(109,75,255,.18), rgba(201,164,92,.08)); border: 1px solid rgba(165,140,255,.25); }
.scene-outro h3 { margin-top: .7rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.scene-outro p:not(.eyebrow) { margin: .9rem 0 1.6rem; color: var(--cream-2); }
.scene-outro .btn { align-self: flex-start; }
.scenes-cue { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-3); }
.scenes-cue span { width: 46px; height: 1px; background: var(--accent); position: relative; overflow: hidden; }
.scenes-cue span::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: cue 2s var(--ease-soft) infinite; }
.scene-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.scene-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(26,23,20,.9)); }
.scene-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.scene:hover .scene-media img { transform: scale(1.05); }
.scene-copy { position: relative; padding: 0 1.5rem 1.7rem; margin-top: -2.4rem; z-index: 1; }
.scene-num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); opacity: .9; }
.scene-copy h3 { margin-top: .4rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.scene-copy p { margin-top: .7rem; color: var(--cream-2); font-size: .97rem; max-width: 34rem; }
.scene-pick {
  display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; margin-top: 1.2rem;
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(201,164,92,.45);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3);
  transition: background-color .3s, border-color .3s;
}
.scene-pick b { color: var(--cream); letter-spacing: .06em; font-weight: 600; }
.scene-pick:hover { background: rgba(201,164,92,.12); border-color: var(--accent); }
.scenes-progress { display: none; }

/* Modo fijado (escritorio con JS) */
.scenes.is-pinned { padding: 0; height: var(--pin-h, 400vh); }
.scenes.is-pinned .scenes-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.scenes.is-pinned .scenes-track {
  overflow: visible; scroll-snap-type: none; width: max-content; gap: 1.6rem;
  padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2)); padding-bottom: 0;
  will-change: transform;
}
.scenes.is-pinned .scene { flex: 0 0 auto; width: min(62vw, 860px); flex-direction: row; height: min(68vh, 560px); }
.scenes.is-pinned .scene-intro, .scenes.is-pinned .scene-outro { width: min(36vw, 460px); flex-direction: column; align-items: flex-start; }
.scenes.is-pinned .scene-outro { justify-content: center; padding: 2.6rem 2.4rem; }
.scenes.is-pinned .scene-media { aspect-ratio: auto; flex: 1 1 58%; }
.scenes.is-pinned .scene-media::after { background: linear-gradient(90deg, transparent 60%, rgba(26,23,20,.95)); }
.scenes.is-pinned .scene-copy { flex: 0 0 42%; margin: 0; padding: 2.4rem 2.2rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.scenes.is-pinned .scenes-progress {
  display: block; position: absolute; left: max(var(--gutter), calc((100vw - 1200px) / 2)); right: max(var(--gutter), calc((100vw - 1200px) / 2));
  bottom: 2.4rem; height: 1px; background: var(--line);
}
.scenes-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Manifesto · banda a pantalla completa */
.manifesto { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(6rem, 16vw, 12rem); }
.manifesto-bg { position: absolute; inset: -60px 0; z-index: -2; }
.manifesto-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); will-change: transform; }
.manifesto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(11,10,9,.35), rgba(11,10,9,.85) 75%),
    linear-gradient(180deg, var(--bg) 0%, rgba(11,10,9,.2) 25%, rgba(11,10,9,.2) 70%, var(--bg) 100%);
}
.manifesto-inner { text-align: center; }
.manifesto-quote {
  margin: 1.2rem auto 0; max-width: 18ch;
  font-family: var(--serif); font-weight: 600; letter-spacing: -.025em; line-height: 1.02;
  font-size: clamp(2.4rem, 7vw, 5.8rem); text-wrap: balance;
}
.manifesto-stats {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0; max-width: 860px;
  display: grid; gap: 1px; background: rgba(242,237,228,.14);
  border: 1px solid rgba(242,237,228,.14); border-radius: var(--radius); overflow: hidden;
}
.manifesto-stats div { display: grid; gap: .3rem; padding: 1.4rem 1.2rem; background: rgba(11,10,9,.72); }
@supports (backdrop-filter: blur(10px)) {
  .manifesto-stats div { background: rgba(11,10,9,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.manifesto-stats strong { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: var(--accent); }
.manifesto-stats span { font-size: .85rem; color: var(--cream-2); }

/* Reel · galería horizontal en movimiento */
.reel { padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; border-block: 1px solid var(--line); }
.reel-word {
  white-space: nowrap; width: max-content;
  font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 10vw, 8.5rem); line-height: 1;
  letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(242,237,228,.28);
  animation: marquee 40s linear infinite; margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.reel-word em { -webkit-text-stroke: 0; color: var(--accent); font-size: .5em; vertical-align: middle; }
.reel-row { overflow: hidden; }
.reel-track { display: flex; gap: 1rem; width: max-content; animation: marquee 55s linear infinite; }
.reel-row:hover .reel-track { animation-play-state: paused; }
.reel-track figure { flex: none; width: clamp(220px, 28vw, 380px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.reel-track figure:nth-child(even) { aspect-ratio: 4 / 3; align-self: center; }
.reel-track img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: filter .6s, transform 1s var(--ease-out); }
.reel-track figure:hover img { filter: none; transform: scale(1.05); }

/* Products */
.products { background: var(--bg-2); }
.product-grid { display: grid; gap: 1.5rem; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transform: perspective(900px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.product:hover { border-color: rgba(201,164,92,.45); box-shadow: 0 40px 70px -40px rgba(0,0,0,.9); }
.product::before { /* halo que sigue al cursor */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 30%), rgba(201,164,92,.16), transparent 60%);
  transition: opacity .4s;
}
.product:hover::before { opacity: 1; }
.product-media {
  position: relative; aspect-ratio: 1 / 1; background: var(--panel);
  display: grid; place-items: center; padding: 1.6rem; overflow: hidden;
}
.product-media img {
  max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .8s var(--ease-out);
}
.product:hover .product-media img { transform: scale(1.06); }
.product-body { display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem 1.6rem 1.8rem; flex: 1; }
.product-tag { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.product-body h3 { font-size: 1.75rem; }
.product-body > p:not(.product-tag):not(.price) { color: var(--cream-2); font-size: .97rem; }
.specs { display: grid; gap: .45rem; margin-bottom: .6rem; font-size: .9rem; color: var(--cream-2); }
.specs li { position: relative; padding-left: 1.2rem; }
.specs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.price {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1;
}
.price span { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; color: var(--cream-3); vertical-align: middle; margin-right: .3rem; }
.product .btn-block { margin-top: .4rem; }
.product-featured { border-color: rgba(201,164,92,.35); }

/* Tech */
.tech-grid { display: grid; gap: 2.5rem; align-items: center; }
.tech-figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #2b2b2b; }
.tech-figure img { width: 100%; }
.parts { display: grid; gap: 0; counter-reset: none; }
.parts li {
  display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease-out), color .3s;
}
.parts li:first-child { border-top: 1px solid var(--line); }
.parts li:hover { padding-left: .6rem; color: var(--accent-2); }
.parts b { font-family: var(--serif); color: var(--accent); font-weight: 500; font-size: 1.1rem; }
.parts span { font-size: 1.05rem; }
.tech-duo { margin-top: clamp(3rem, 7vw, 5rem); display: grid; gap: 1.5rem; }
.tech-card {
  display: grid; border-radius: var(--radius); overflow: hidden;
  background: #050505; border: 1px solid var(--line);
}
.tech-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease-out); }
.tech-card:hover img { transform: scale(1.04); }
.tech-card figcaption { padding: 1.5rem 1.6rem 1.8rem; }
.tech-card p { margin-top: .6rem; color: var(--cream-2); }

/* Phantom */
.phantom { background: #0a0712; isolation: isolate; }
.phantom-glow {
  position: absolute; inset: -20% -10% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 35% at 30% 40%, rgba(109,75,255,.28), transparent 75%);
  filter: blur(80px);
}
.phantom em { color: #a58cff; }
.phantom .eyebrow { color: #a58cff; }
.phantom-grid { display: grid; gap: 2rem; align-items: center; }
.phantom-figure { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(165,140,255,.2); }
.phantom-figure img { width: 100%; }

.dip {
  padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: var(--radius);
  background: rgba(26,20,44,.85); border: 1px solid rgba(165,140,255,.22);
}
.dip-board {
  display: inline-grid; gap: .6rem; padding: 1rem 1.2rem 1rem;
  background: #dcd8e6; border: 3px solid #7b63e6; border-radius: 12px; color: #121018;
}
.dip-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; }
.dip-switches { display: flex; gap: .55rem; }
.dip-sw { display: grid; justify-items: center; gap: .35rem; }
.dip-sw span {
  position: relative; display: block; width: 34px; height: 64px; border-radius: 4px;
  background: #f7f6fa; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.dip-sw span::after {
  content: ""; position: absolute; left: 5px; right: 5px; height: 24px; bottom: 5px;
  border-radius: 3px; background: #121018;
  transition: bottom .35s var(--ease-out), background-color .3s;
}
.dip-sw[aria-pressed="true"] span::after { bottom: 35px; background: #6d4bff; }
.dip-sw b { font-size: .9rem; }
.dip-sw:hover span { box-shadow: inset 0 0 0 2px #7b63e6; }
.dip-result { margin-top: 1.6rem; display: grid; gap: .2rem; }
.dip-result span { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: #a58cff; }
.dip-result strong { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 600; }
.dip-result strong.is-flash { animation: flash .6s var(--ease-out); }
.dip-legend { margin-top: 1.4rem; display: grid; gap: .5rem; font-size: .92rem; color: var(--cream-2); }
.dip-legend b { display: inline-block; min-width: 5.2rem; color: var(--cream); font-weight: 600; }

.phantom-strip { margin-top: 2rem; display: grid; gap: 1.5rem; }
.phantom-strip figure { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(165,140,255,.18); background: #07050d; }
.phantom-strip img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.phantom-strip figcaption { padding: 1.1rem 1.4rem 1.3rem; color: var(--cream-2); font-size: .95rem; }

/* Fit */
.fit-grid { display: grid; gap: 2.5rem; align-items: center; }
.fit-figure { border-radius: var(--radius); overflow: hidden; }
.fit-figure img { width: 100%; }
.fit-copy h2 { margin-top: .8rem; }
.fit-copy > p { margin-top: 1.2rem; color: var(--cream-2); font-size: 1.08rem; }
.tips { margin-top: 2rem; display: flex; align-items: flex-end; flex-wrap: wrap; gap: .9rem; }
.tips p { flex-basis: 100%; font-size: .85rem; color: var(--cream-3); letter-spacing: .04em; }
.tip {
  display: grid; place-items: center; border-radius: 50% 50% 46% 46%;
  background: linear-gradient(160deg, #f0eee9, #bdb9b1); color: #2a2620; font-weight: 600;
  transition: transform .5s var(--ease-out);
}
.tip:hover { transform: translateY(-6px); }
.tip-s { width: 42px; height: 46px; }
.tip-m { width: 52px; height: 58px; }
.tip-l { width: 62px; height: 70px; }

/* Why */
.why { background: var(--bg-2); }
.why-grid { display: grid; gap: 1.2rem; }
.why-item {
  padding: 2rem 1.8rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-3);
  transition: border-color .4s, transform .6s var(--ease-out);
}
.why-item:hover { border-color: rgba(201,164,92,.45); transform: translateY(-4px); }
.why-num { font-family: var(--serif); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.why-item h3 { margin-top: 1.2rem; }
.why-item p { margin-top: .7rem; color: var(--cream-2); }

/* CTA */
.cta { text-align: center; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 50% 55%, rgba(201,164,92,.16), transparent 75%);
}
.cta-inner { max-width: 44rem; }
.cta h2 { margin-top: .8rem; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.cta-inner > p:not(.eyebrow) { margin: 1.2rem auto 2.2rem; color: var(--cream-2); font-size: 1.1rem; max-width: 34rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 6rem; }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand img { width: 170px; mix-blend-mode: screen; }
.footer-brand p { margin-top: .6rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; color: var(--cream-2); font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .82rem; color: var(--cream-3); }
.footer-credits { display: block; margin-top: .4rem; font-size: .8rem; }
.footer-credits a { color: var(--cream-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--accent); }

/* Página de créditos */
.credits { padding-block: 3rem 5rem; max-width: 820px; }
.credits h1 { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.4rem); margin-top: 1.5rem; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }
.credits-back { font-size: .9rem; color: var(--accent); text-decoration: none !important; }
.credits-list { margin-top: 2.5rem; display: grid; gap: 1rem; }
.credits-list li { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-3); }
.credits-list img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.credits-list div { display: grid; gap: .2rem; font-size: .88rem; color: var(--cream-2); min-width: 0; }
.credits-list strong { color: var(--cream); font-size: .95rem; overflow-wrap: anywhere; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem; border-radius: 999px;
  background: #25d366; color: #06290f; font-weight: 600; font-size: .9rem;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.55);
  transition: transform .45s var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float span { display: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }

/* Ana · asistente con IA */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ana-orb {
  position: fixed; right: 1.15rem; bottom: 5.4rem; z-index: 61;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  transition: transform .45s var(--ease-out);
}
.ana-orb[hidden], .ana[hidden] { display: none; }
.ana-orb:hover { transform: scale(1.06); }
.ana-orb-core {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 6%, transparent 22%),
    radial-gradient(circle at 50% 55%, #b49cff 0%, #6d4bff 38%, #2a1d63 70%, #120c2b 100%);
  box-shadow: 0 0 0 1px rgba(201,164,92,.55), 0 0 26px rgba(109,75,255,.55), inset 0 -6px 14px rgba(0,0,0,.45);
  animation: orbGlow 3.2s ease-in-out infinite;
}
.ana-orb-tip {
  position: absolute; right: calc(100% + .7rem); white-space: nowrap;
  padding: .45rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--cream); color: var(--bg);
  opacity: 0; translate: 6px 0; pointer-events: none;
  transition: opacity .35s, translate .45s var(--ease-out);
}
.ana-orb:hover .ana-orb-tip, .ana-orb.is-nudge .ana-orb-tip { opacity: 1; translate: 0 0; }
.ana-orb.is-active .ana-orb-core { background: radial-gradient(circle, #2a2520 0%, #15120f 100%); box-shadow: 0 0 0 1px rgba(201,164,92,.7); animation: none; }
.ana-orb.is-active::after {
  content: "×"; position: absolute; color: var(--accent); font-size: 1.8rem; line-height: 1;
}

.ana {
  position: fixed; z-index: 70; right: .75rem; left: .75rem; bottom: 9.2rem;
  max-height: min(600px, calc(100svh - 11rem));
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: #14110f; border: 1px solid rgba(201,164,92,.28);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.4);
  animation: anaIn .45s var(--ease-out);
}
.ana-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(109,75,255,.14), transparent);
}
.ana-avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 6%, transparent 22%), radial-gradient(circle at 50% 55%, #b49cff, #6d4bff 40%, #1c1440);
  box-shadow: 0 0 14px rgba(109,75,255,.6);
}
.ana.is-speaking .ana-avatar { animation: orbGlow 1s ease-in-out infinite; }
.ana-id { display: grid; line-height: 1.25; margin-right: auto; }
.ana-id strong { font-family: var(--serif); font-size: 1.15rem; }
.ana-id span { font-size: .76rem; color: var(--cream-3); display: inline-flex; align-items: center; gap: .35rem; }
.ana-live { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.ana-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--cream-2); transition: background-color .25s, color .25s; }
.ana-icon svg { width: 20px; height: 20px; fill: currentColor; }
.ana-icon:hover { background: rgba(242,237,228,.08); color: var(--cream); }
.ana-icon[aria-pressed="true"] { color: var(--accent); background: rgba(201,164,92,.14); }

.ana-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.ana-msg { max-width: 86%; padding: .7rem .95rem; border-radius: 16px; font-size: .93rem; line-height: 1.5; white-space: pre-line; }
.ana-bot { align-self: flex-start; background: #221d19; border-bottom-left-radius: 5px; }
.ana-user { align-self: flex-end; background: var(--accent); color: #17130c; border-bottom-right-radius: 5px; }
.ana-typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.ana-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cream-3); animation: typing 1.1s ease-in-out infinite; }
.ana-typing i:nth-child(2) { animation-delay: .15s; }
.ana-typing i:nth-child(3) { animation-delay: .3s; }
.ana-wa { display: inline-block; margin-top: .55rem; font-weight: 600; color: #3ddc84; }

.ana-chips { display: flex; gap: .45rem; overflow-x: auto; padding: 0 1rem .6rem; scrollbar-width: none; }
.ana-chips::-webkit-scrollbar { display: none; }
.ana-chip {
  flex: none; padding: .45rem .8rem; border-radius: 999px; font-size: .8rem;
  border: 1px solid var(--line); color: var(--cream-2); transition: border-color .25s, color .25s;
}
.ana-chip:hover { border-color: var(--accent); color: var(--cream); }
.ana-hint { padding: 0 1rem .5rem; font-size: .74rem; color: var(--cream-3); }
.ana-form { display: flex; align-items: center; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }
.ana-form input {
  flex: 1; min-width: 0; padding: .75rem .9rem; border-radius: 999px;
  background: #0e0c0a; border: 1px solid var(--line); color: var(--cream); font: inherit; font-size: .95rem;
}
.ana-form input:focus { outline: none; border-color: rgba(201,164,92,.6); }
.ana-mic, .ana-send { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.ana-mic svg, .ana-send svg { width: 20px; height: 20px; fill: currentColor; }
.ana-mic { background: #221d19; color: var(--accent); }
.ana-mic[aria-pressed="true"] { background: #c0392b; color: #fff; animation: micPulse 1.2s ease-in-out infinite; }
.ana-mic[hidden] { display: none; }
.ana-send { background: var(--accent); color: #17130c; }
.ana-send:disabled { opacity: .5; cursor: default; }

@keyframes orbGlow { 0%, 100% { box-shadow: 0 0 0 1px rgba(201,164,92,.55), 0 0 18px rgba(109,75,255,.45), inset 0 -6px 14px rgba(0,0,0,.45); } 50% { box-shadow: 0 0 0 1px rgba(201,164,92,.75), 0 0 34px rgba(109,75,255,.8), inset 0 -6px 14px rgba(0,0,0,.45); } }
@keyframes anaIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.6); } 50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); } }

/* 7. Effects --------------------------------------------------- */
/* usa "translate" (no "transform") para no chocar con el tilt de las tarjetas */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), transform .6s var(--ease-out), border-color .4s, box-shadow .6s var(--ease-out); }
.reveal.is-revealed { opacity: 1; translate: none; }
/* seguridad: si el JS no llega, todo aparece a los 3 s */
html:not(.is-ready) .reveal { animation: revealSafety .01s 3s forwards; }
@keyframes revealSafety { to { opacity: 1; translate: none; } }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,164,92,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(201,164,92,0); } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes flash { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 8. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .wa-float { padding: .8rem 1.2rem .8rem .9rem; }
  .wa-float span { display: inline; }
  .ana { left: auto; width: 380px; right: 1rem; }
}
@media (min-width: 720px) {
  .tech-duo, .phantom-strip { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .scene { flex-basis: 64%; }
  .manifesto-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .footer-copy { grid-column: 1 / -1; }
  .footer { padding-bottom: 3rem; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-cta { margin-left: 0; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-featured { --lift: -1.5rem; }
  .tech-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .phantom-grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  .fit-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* 9. Reduced motion (solo lo intrusivo) ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .hero-figure img { animation: none; }
  .ticker-track { animation-duration: 80s; }
  .reel-word { animation-duration: 90s; }
  .reel-track { animation-duration: 120s; }
}
