/* R2 — BLUE HOUR × ELECTRIC HYBRID. Capa sobre shared/proto.css: no modifica las direcciones anteriores.
   Base cromática de Blue Hour (campaña oscura, catálogo claro) + energía de Electric (escaneo, índice de marcas, borde azul en tarjetas). */

/* ---------- barra de avisos en movimiento ---------- */
.ann { position: relative; z-index: 41; display: flex; align-items: stretch; background: var(--am-blue); color: #fff; font-size: .8125rem; font-weight: 650; letter-spacing: .01em; }
.ann__view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ann__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ann-run var(--ann-dur, 40s) linear infinite; will-change: transform; }
.ann__track li { display: flex; align-items: center; min-height: 44px; padding-inline: 22px; white-space: nowrap; }
.ann__track li::after { content: ""; width: 1.5px; height: 12px; margin-left: 44px; background: rgba(255, 255, 255, .55); transform: skewX(var(--slant)); }
@keyframes ann-run { from { transform: translateX(-50%); } to { transform: translateX(0); } }   /* hacia la derecha: sentido contrario al marquee de marcas */
.ann:hover .ann__track, .ann:focus-within .ann__track, .ann.is-paused .ann__track { animation-play-state: paused; }
.ann__pause { flex: none; width: 44px; display: grid; place-items: center; color: #fff; border-left: 1px solid rgba(255, 255, 255, .22); transition: background-color var(--t-fast); }
.ann__pause:hover { background: rgba(255, 255, 255, .14); }
.ann__pause svg { width: 14px; height: 14px; }
.ann__pause .i-play, .ann.is-paused .ann__pause .i-pause { display: none; } .ann.is-paused .ann__pause .i-play { display: block; }

/* ---------- hero: mismo vídeo y efecto, titular 30–40 % más pequeño ---------- */
[data-r2] .hero .display { font-size: clamp(2rem, 4.5vw, 3.9rem); }
[data-r2] .hero .display em { padding: 0; margin: 0; display: inline; }
[data-r2]:not([data-u="women"]) .hero .display em::before { display: none; }            /* fuera el bloque azul tras el titular */
[data-r2] .hero .display .dot { color: #8A90FF; font-style: normal; }
[data-r2] .hero__copy { gap: 16px; padding-bottom: clamp(96px, 13vh, 148px); max-width: none; }
[data-r2] .hero .lede { max-width: 36ch; font-size: clamp(1rem, 1.2vw, 1.125rem); }
[data-r2]:not([data-u="women"]) .hero__media::after { background: linear-gradient(180deg, rgba(5, 6, 26, .46) 0%, rgba(5, 6, 26, 0) 24%, rgba(5, 6, 26, 0) 50%, rgba(5, 6, 26, .82) 100%), linear-gradient(90deg, rgba(5, 6, 26, .5) 0%, rgba(5, 6, 26, 0) 46%); }
/* de Electric: línea de escaneo e índice de marcas con stock */
/* ronda 9: sin línea de escaneo en el hero (pedido del cliente) */
[data-r2]:not([data-u="women"]) .hero__index { display: grid; position: absolute; right: var(--pad); bottom: clamp(104px, 14vh, 156px); width: min(280px, 22vw); color: #fff; }

/* T1 · Itálica expandida: la voz de Blue Hour, con aire */
[data-hero="1"]:not([data-u="women"]) .hero .display { font-stretch: 125%; font-weight: 800; font-style: italic; letter-spacing: -.012em; line-height: 1; }
[data-hero="1"]:not([data-u="women"]) .hero .display::before { content: ""; display: block; width: 64px; height: 3px; margin-bottom: 20px; background: var(--am-blue); transform: skewX(var(--slant)); transform-origin: left; animation: rule-in var(--t-cine) var(--e-out) backwards 200ms; }
@keyframes rule-in { from { transform: skewX(var(--slant)) scaleX(0); } }
/* T2 · Contraste de peso: recta, una palabra ligera y otra pesada */
[data-hero="2"]:not([data-u="women"]) .hero .display { font-stretch: 112%; font-weight: 300; font-style: normal; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(2.1rem, 4.9vw, 4.3rem); }
[data-hero="2"]:not([data-u="women"]) .hero .display em { font-weight: 800; font-style: normal; }
/* T3 · Condensada alta: ocupa poco ancho, deja ver el vídeo */
[data-hero="3"]:not([data-u="women"]) .hero .display { font-stretch: 62%; font-weight: 750; font-style: normal; letter-spacing: .012em; line-height: .92; font-size: clamp(2.7rem, 6vw, 5.2rem); }
[data-hero="3"]:not([data-u="women"]) .hero .display em { font-style: normal; font-weight: 400; }
[data-hero="3"]:not([data-u="women"]) .hero .lede { text-transform: uppercase; font-stretch: 88%; font-weight: 650; font-size: .8125rem; letter-spacing: .08em; max-width: 30ch; }

/* ---------- tarjetas: comportamiento de Electric, con borde azul que acompaña al telón ---------- */
@media (hover: hover) and (pointer: fine) {
  [data-r2] .card[data-v="1"] .card__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: var(--am-blue); box-shadow: 0 0 14px rgba(27, 33, 215, .8); opacity: 0; pointer-events: none; }
  [data-r2] .card[data-v="1"]:has(.is-back):is(:hover, :focus-within) .card__stage::after { animation: edge var(--t-slow) var(--e-reveal) both; }
  @keyframes edge { 0% { bottom: 0; opacity: 1; } 85% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
  [data-r2] .card__name { transition: color var(--t-fast) var(--e-standard); }
}
[data-r2] .card.rise { animation: fade-up var(--t-slow) var(--e-out) backwards; animation-delay: calc(var(--n, 0) * var(--stagger)); }

/* ---------- The Active Community ---------- */
.comm__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: clamp(24px, 3.5vw, 48px); }
.comm__head p { margin: 10px 0 0; color: var(--muted); max-width: 44ch; }
.comm__links { display: flex; flex-wrap: wrap; gap: 10px; }
.reels { display: flex; gap: clamp(8px, 1.1vw, 16px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; flex: 0 0 calc((100% - 4 * clamp(8px, 1.1vw, 16px)) / 5); aspect-ratio: 9 / 16; overflow: hidden; background: #0b0c1a; color: #fff; border-radius: var(--radius); scroll-snap-align: start; isolation: isolate; transition: transform var(--t-base) var(--e-out); }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-cine) var(--e-out), opacity var(--t-base) var(--e-standard); }
.reel video { opacity: 0; } .reel.is-playing video { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 6, 26, .28), rgba(5, 6, 26, 0) 26%, rgba(5, 6, 26, 0) 58%, rgba(5, 6, 26, .78)); pointer-events: none; }
.reel__top { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; font-size: .75rem; font-weight: 700; }
.reel__play { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0A0C1A; transition: transform var(--t-base) var(--e-out), background-color var(--t-fast), color var(--t-fast); }
.reel__play svg { width: 12px; height: 12px; margin-left: 1px; }
.reel__meta { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 2; display: grid; gap: 2px; }
.reel__meta b { font-size: .9375rem; font-weight: 700; line-height: 1.2; } .reel__meta span { font-size: .75rem; font-weight: 550; color: rgba(255, 255, 255, .82); }
.reel__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, .22); }
.reel__bar i { display: block; height: 100%; background: #fff; }
.reel__bar i { width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; }
@media (hover: hover) { .reel:hover img { transform: scale(1.04); } .reel:hover .reel__play, .reel.is-playing .reel__play { transform: scale(1.1); background: var(--am-blue); color: #fff; } }
.reel:focus-visible { outline: 3px solid #fff; outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--am-blue); }
.roots__media figure { position: relative; }
.roots__pause { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(10, 12, 26, .72); color: #fff; cursor: pointer; }
.roots__pause svg { width: 14px; height: 14px; } .roots__pause .i-play, .roots__pause[aria-pressed="true"] .i-pause { display: none; } .roots__pause[aria-pressed="true"] .i-play { display: block; }

/* ---------- Local roots. Global brands. ---------- */
.roots { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.roots__media { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(8px, 1.2vw, 16px); align-items: end; }
.roots__media figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 9 / 14; background: #0b0c1a; border-radius: var(--radius); }
.roots__media figure:last-child { aspect-ratio: 9 / 12; margin-bottom: clamp(24px, 5vw, 72px); }
.roots__media img, .roots__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.roots__copy { display: grid; gap: 18px; }
.roots__facts { display: grid; margin: 6px 0 0; border-top: 1px solid var(--line); }
.roots__facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.roots__facts dt { font-weight: 650; } .roots__facts dd { margin: 0; color: var(--muted); text-align: right; }
.roots__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.roots__note { margin: 0; font-size: .8125rem; color: var(--muted); }

/* ---------- control de demo: tratamiento del titular ---------- */
.demo-ctl { position: fixed; right: 14px; bottom: 14px; z-index: 46; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 26px; background: rgba(10, 12, 26, .92); color: #fff; font: 650 .75rem "Archivo", sans-serif; backdrop-filter: blur(10px); box-shadow: 0 8px 28px rgba(5, 6, 26, .3); }
.demo-ctl a { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 18px; color: #C9CCE4; transition: background-color var(--t-fast), color var(--t-fast); }
.demo-ctl a:hover { color: #fff; } .demo-ctl a[aria-current="true"] { background: var(--am-blue); color: #fff; }
[data-u="women"] .demo-ctl, [data-u="performance"] .demo-ctl { display: none; }

/* ---------- móvil ---------- */
@media (max-width: 899px) {
  [data-r2] .hero .display { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  [data-hero="2"]:not([data-u="women"]) .hero .display { font-size: clamp(2rem, 9vw, 2.8rem); }
  [data-hero="3"]:not([data-u="women"]) .hero .display { font-size: clamp(2.6rem, 12.5vw, 3.6rem); }
  [data-r2] .hero__copy { padding-bottom: 84px; gap: 14px; }
  [data-r2]:not([data-u="women"]) .hero__index { display: none; }
  .ann { font-size: .75rem; } .ann__track li { padding-inline: 14px; min-height: 44px; } .ann__track li::after { margin-left: 28px; }
  .reel { flex-basis: 58vw; }
  .roots { grid-template-columns: 1fr; }
  .comm__links .btn, .roots__actions .btn { flex: 1 1 auto; }
  .demo-ctl { bottom: 12px; right: 12px; }
  [data-nav="bar"] .demo-ctl { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ann__track { animation: none; } .ann__view { overflow-x: auto; scrollbar-width: none; }
  [data-r2] .hero__media::before { display: none; }
}
