/* =====================================================================
   PORTADA: secciones simétricas, video a pantalla completa y más movimiento
   ===================================================================== */
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-bar i { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

.sec-head.center { justify-items: center; text-align: center; margin-inline: auto; max-width: 820px; }
.sec-head.center h2 { max-width: 22ch; }
.sec-head.center .lede { margin-inline: auto; }
.sec-foot { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 40px); }

/* Títulos que aparecen palabra por palabra */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--wi) * 55ms); }
.split.in .w > span { transform: none; }

/* Números */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: grid; justify-items: center; text-align: center; gap: 4px; padding: clamp(22px, 3vw, 36px) 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--mute); font-size: 14px; }

/* Cinta doble en sentidos opuestos */
.marquee { display: grid; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 60s; background: var(--brand); color: #fff; font-size: 13px; padding: 12px 0; }
.marquee-track.rev i { background: #fff; }

/* Tres pasos */
.how { background: var(--paper); border: 0; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-steps li { position: relative; display: grid; grid-template-columns: none; justify-items: center; text-align: center; gap: 10px; padding: 32px 24px 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.how-steps li:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.how-n { position: absolute; top: 14px; right: 18px; font-size: 3rem; }
.how-ic { width: 64px; height: 64px; border-radius: 20px; }
.how-ic .ic { width: 30px; height: 30px; }
.how-steps b { font-size: 1.1rem; font-family: var(--display); font-variation-settings: "wdth" 110; }
.how-steps p { max-width: 30ch; }
.how-steps li:hover .how-ic { animation: hop .6s var(--ease); }
@keyframes hop { 40% { transform: translateY(-8px) rotate(-6deg); } }

/* Luz que sigue al cursor */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* ---------- Video inalámbrico a pantalla completa ---------- */
.cine { position: relative; height: 260vh; background: var(--ink); color: #fff; }
.cine-stick { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: grid; place-items: center; }
.cine-frame { position: absolute; inset: 0; clip-path: inset(calc(var(--k, 1) * 14%) calc(var(--k, 1) * 10%) round calc(var(--k, 1) * 36px)); will-change: clip-path; }
.cine-frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - (1 - var(--k, 1)) * .12)); }
.cine-shade { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 55%, rgba(14, 24, 26, .25), rgba(14, 24, 26, .78)), linear-gradient(180deg, rgba(14, 24, 26, .55), transparent 30%, transparent 60%, rgba(14, 24, 26, .9)); opacity: calc(1 - var(--k, 1) * .5); }
.cine-copy { position: relative; z-index: 2; width: min(1100px, calc(100% - 32px)); display: grid; justify-items: center; text-align: center; gap: clamp(16px, 2.4vw, 26px); opacity: calc(1 - var(--k, 1)); transform: translateY(calc(var(--k, 1) * 40px)); }
.cine-title { font-size: clamp(2.3rem, 6.4vw, 5.6rem); font-variation-settings: "wdth" 125; line-height: .95; text-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.cine-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; }
.cine-point { display: grid; gap: 6px; justify-items: center; padding: 18px 16px; border-radius: var(--r); background: rgba(14, 24, 26, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); opacity: .25; transform: translateY(14px) scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s; }
.cine-point.on { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--brand) 70%, white); }
.cine-point span { font-family: var(--mono); font-size: 12px; color: #8fd0cf; }
.cine-point p { font-size: 14px; color: #c9d6d6; }
.cine-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cine-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #cfdcdc; opacity: var(--k, 1); }
.cine-hint span { width: 2px; height: 34px; background: linear-gradient(#fff, transparent); animation: hint 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); opacity: 0; } }

/* ---------- Rejillas simétricas ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.news { background: var(--white); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tiles .line-tile { min-height: 320px; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; text-align: center; padding: 22px 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tiles .line-tile:hover { box-shadow: var(--shadow); }
.tiles .line-count { justify-self: center; background: var(--brand-t); padding: 4px 10px; border-radius: 999px; }
.tiles .line-media { position: static; z-index: auto; padding: 10px 0; display: grid; place-items: center; inset: auto; }
.tiles .line-media img { width: auto; max-width: 70%; max-height: 150px; mix-blend-mode: multiply; transform: translateZ(30px); }
.tiles .line-tile:hover .line-media img { transform: translateZ(40px) scale(1.06) rotate(-2deg); }
.tiles .line-copy { max-width: 100%; justify-items: center; }
.tiles .line-go { position: static; margin-top: 14px; }

.why-grid .why-item { justify-items: center; text-align: center; padding: 30px 22px; border-radius: var(--r-lg); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.why-grid .why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-grid .zig-ic { width: 60px; height: 60px; border-radius: 18px; }

.rail-ctrl { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.round:hover { background: var(--ink); color: #fff; }
.round:active { transform: scale(.94); }
.round[data-rail-prev] .ic { transform: rotate(180deg); }

.visit-in { display: grid; justify-items: center; text-align: center; gap: 18px; grid-template-columns: none; }
.visit h2 { margin: 0 auto; max-width: 24ch; }
.visit .lede { margin-inline: auto; }
.visit-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.visit-social { display: flex; gap: 12px; justify-content: center; }
.visit-social a { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; color: #fff; transition: background .3s, transform .3s var(--ease); }
.visit-social a:hover { background: var(--brand); transform: translateY(-3px) rotate(-6deg); }
.visit::before { left: 50%; right: auto; transform: translateX(-50%); top: -60%; }

/* Tarjetas de producto: entrada con leve giro */
.js .card.reveal { transform: translateY(30px) rotateX(8deg); transform-origin: 50% 100%; }
.js .card.reveal.in { transform: none; }

@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .how-steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cine { height: 230vh; }
  .cine-point p { display: none; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles .line-tile { min-height: 0; padding: 14px 10px 16px; border-radius: var(--r); }
  .tiles .line-media img { max-height: 84px; max-width: 80%; }
  .tiles .line-copy h3 { font-size: 1rem; }
  .tiles .line-copy p { display: none; }
  .tiles .line-count { font-size: 10.5px; }
  .tiles .line-go { width: 34px; height: 34px; margin-top: 8px; }
  .cine-stick { align-items: end; padding-bottom: 72px; }
  .cine-copy { gap: 14px; }
  .cine-title { font-size: clamp(2rem, 10vw, 2.6rem); }
  .cine-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: none; }
  .cine-point { padding: 10px 6px; gap: 2px; }
  .cine-point b { font-size: 12px; line-height: 1.2; }
  .cine-point span { font-size: 10.5px; }
  .cine-actions { gap: 8px; }
  .cine-actions .btn { height: 50px; font-size: 15px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .why-grid .why-item { padding: 20px 12px; }
  .why-grid .why-item p { font-size: 13.5px; }
  .grid-4 { gap: 10px; }
  .cine-frame { clip-path: inset(calc(var(--k, 1) * 18%) calc(var(--k, 1) * 5%) round calc(var(--k, 1) * 24px)); }
  .cine-actions .btn, .visit-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cine { height: auto; }
  .cine-stick { position: relative; height: auto; min-height: 100vh; padding: 80px 0; }
  .cine-frame { clip-path: none; }
  .cine-copy, .cine-point { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
}

/* ---------- Celular: más ordenado y fácil de leer ---------- */
@media (max-width: 900px) {
  .section { padding: 44px 0; }
  .sec-head { margin-bottom: 20px; gap: 8px; }
  .sec-head h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .hero-in { padding-top: 16px; padding-bottom: 28px; gap: 8px; }
  .hero-stage { width: min(360px, 92%); max-height: 320px; margin: 0 auto; }
  .hero-in > * { min-width: 0; }
  .hero-copy { gap: 14px; text-align: center; justify-items: stretch; width: 100%; }
  .hero-copy > * { min-width: 0; max-width: 100%; }
  .hero-copy .eyebrow { justify-self: center; }
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 2.4rem); font-variation-settings: "wdth" 104; overflow-wrap: anywhere; }
  .hero-actions .btn { white-space: normal; line-height: 1.15; }
  .hero .lede { font-size: 15px; }
  .hero-search { width: 100%; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-actions .btn { height: 48px; padding: 0 10px; font-size: 14px; }
  .float-card { width: 96px; padding: 6px 6px 8px; }
  .float-card .fc-name { font-size: 10.5px; }
  .stage-caption { display: none; }
  .marquee-track.rev { display: none; }
  .how-steps { gap: 10px; }
  .how-steps li { grid-template-columns: auto 1fr; grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; padding: 16px; border-radius: var(--r); }
  .how-steps li .how-ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; }
  .how-steps li b { align-self: end; }
  .how-steps li p { align-self: start; }
  .how-n { font-size: 2rem; top: 10px; right: 14px; }
  .news .grid-4 > :nth-child(n+5) { display: none; }
  .why-grid .why-item h3 { font-size: 1rem; }
  .visit h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
}
@media (max-width: 560px) {
  .stat { padding: 18px 8px; }
  .stat b { font-size: 1.8rem; }
  .stat span { font-size: 12.5px; }
  .rail { grid-auto-columns: 72%; }
}

/* Botón del giroscopio (solo celular) */
.tilt-btn { display: none; }
@media (pointer: coarse), (max-width: 900px) {
  .tilt-btn { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(20, 34, 36, .6); transition: opacity .5s, background .3s; }
  .tilt-btn .ic { width: 16px; height: 16px; animation: wiggle 1.8s ease-in-out infinite; }
  .tilt-btn.done { background: var(--brand); }
  .tilt-btn.done .ic { animation: none; }
  .tilt-btn.gone { opacity: 0; pointer-events: none; }
}
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(18deg); } }
