/* RZN VFX — identidad "Brasa"
   Paleta análoga cálida (vino → rojo → ámbar) sobre negro cálido con grano.
   La luz es el único color: el destello del logo, los brillos y el acento.
   El vidrio esmerilado es "el filtro": se usa solo sobre luz y tipografía, nunca sobre video. */
:root {
  --bg: #0B0807;
  --bg-lift: #1E1210;
  --fg: #F6E7D3;
  --soft: #DCC8B8;
  --muted: #B9A595;
  --dim: #A8968A;
  --line: #2E211D;
  --line-2: #3A2A24;
  --wine: #8E1F2F;
  --red: #FF5A36;
  --accent: #FF6A2B;
  --amber: #FFC27A;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --display: 'Archivo', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); }
a { color: var(--fg); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
button { font-family: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

.page {
  position: relative; isolation: isolate;
  background: var(--bg); color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip;
}
/* Grano de película en toda la página */
.page::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background-image: var(--grain); opacity: .06; mix-blend-mode: overlay;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 88px; padding-bottom: 32px; position: relative; }

/* ---------- Vidrio ---------- */
.glass {
  position: relative;
  background: linear-gradient(140deg, rgba(246,231,211,0.09), rgba(246,231,211,0.025) 60%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(246,231,211,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  border-radius: 16px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(30,18,16,0.92); }
}

/* ---------- Cinta ---------- */
.ticker-bar { overflow: hidden; background: rgba(30,18,16,0.7); border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 0.12em; font-weight: 600; color: var(--soft); position: relative; z-index: 2; }
@keyframes rz-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rz-ticker { display: flex; width: max-content; padding: 11px 0; animation: rz-scroll 50s linear infinite; }
.tick { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.tick-star { width: 10px; height: 10px; fill: var(--accent); flex: none; }

/* ---------- Cabecera y logo ---------- */
.site-header { position: relative; z-index: 3; padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-size: 40px; }
.mk { position: relative; width: 1em; height: 1em; flex: none; display: block; }
.mk-img { width: 1em; height: 1em; display: block; }
.blk { width: 100%; height: 100%; display: block; overflow: visible; }
.wordmark { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-stretch: 112%; line-height: .9; font-size: .5em; letter-spacing: -.02em; }
.wordmark span + span { font-weight: 500; letter-spacing: .42em; font-size: .62em; margin-top: .3em; color: var(--dim); }

/* Animación del logo: cortinilla log → gradeado, luz en el destello, reflejo anamórfico */
.blk .d-grade { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 850ms var(--ease); }
.blk .d-line { opacity: 0; transition: transform 850ms var(--ease), opacity 250ms; }
.blk .hole-glow { opacity: 0; transition: opacity 600ms var(--ease) 450ms; }
.brand.on .d-grade { transform: scaleX(1); }
.brand.on .d-line { transform: translateX(100px); opacity: 0; }
.brand.wiping .d-line { opacity: 1; }
.brand.on .hole-glow { opacity: 1; }
.streak {
  position: absolute; left: 50%; top: 50%; width: 5.5em; height: .05em; translate: 0 -50%;
  transform-origin: 0 50%; transform: scaleX(0); opacity: 0; border-radius: 99px; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFE2B8 10%, #FF7A3D 38%, #B3123A 72%, transparent 100%);
  box-shadow: 0 0 .22em rgba(255,110,60,.6); mix-blend-mode: screen;
}
.streak::before { content: ""; position: absolute; right: 100%; top: 0; width: 1.1em; height: 100%; background: linear-gradient(270deg, #FFFFFF, transparent); }
@keyframes rz-streak {
  0% { transform: scaleX(0); opacity: 1; }
  45% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.brand.flash .streak { animation: rz-streak 1.3s var(--ease) both; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 14px; }
.main-nav a { color: var(--soft); transition: color 160ms var(--ease); }
.lang-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang-switch button { min-width: 44px; min-height: 36px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--soft); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.lang-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ---------- Tipografía común ---------- */
.kicker { font-size: 12px; letter-spacing: 0.16em; font-weight: 600; color: var(--accent); }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.025em; color: var(--fg); }
.kicker + .h2 { margin-top: 12px; }
.section-sub { margin: 14px 0 0; max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--bg); box-shadow: 0 0 34px rgba(255,106,43,0.35); }
.btn--ghost { border: 1px solid rgba(246,231,211,0.22); background: rgba(246,231,211,0.03); color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #FF7D45; }
  .btn--ghost:hover { border-color: rgba(246,231,211,0.4); }
  .main-nav a:hover { color: var(--fg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 24px; }
.hero-bg { position: absolute; inset: -140px 0 -60px; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob--a { width: 760px; height: 760px; left: -160px; top: 40px; background: radial-gradient(circle, rgba(255,106,43,0.42) 0%, rgba(142,31,47,0.32) 38%, transparent 68%); animation: rz-drift 22s ease-in-out infinite alternate; }
.blob--b { width: 620px; height: 620px; right: -140px; top: -80px; background: radial-gradient(circle, rgba(255,194,122,0.16) 0%, rgba(142,31,47,0.18) 40%, transparent 68%); animation: rz-drift 28s ease-in-out infinite alternate-reverse; }
@keyframes rz-drift { from { transform: translate(0, 0); } to { transform: translate(120px, 60px); } }
.giant {
  position: absolute; left: -2vw; top: 96px; white-space: nowrap;
  font-family: var(--display); font-weight: 900; font-stretch: 125%; letter-spacing: -0.05em; line-height: .8;
  font-size: clamp(180px, 31vw, 470px); color: #3A1712; opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; align-items: center; padding-top: 32px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-card { padding: 40px 36px; }
@media (max-width: 520px) { .hero-card { padding: 28px 22px; } }
.hero h1 { margin: 16px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.03em; color: var(--fg); }
.h1-light { display: block; color: var(--amber); text-shadow: 0 0 34px rgba(255,106,43,0.45); }
.hero-sub { margin: 20px 0 0; max-width: 480px; font-size: 17px; line-height: 1.6; color: var(--soft); }
.hero-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Visor antes/después */
.viewer { margin: 0; }
.viewer-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--bg-lift); border: 1px solid rgba(246,231,211,0.16); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 90px rgba(255,106,43,0.16); }
.viewer-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(11,8,7,0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.badge--tl { left: 14px; }
.badge--tr { right: 14px; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.viewer-label { font-size: 13px; color: var(--dim); }
.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--soft); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
@media (max-width: 480px) { .badge { font-size: 10px; padding: 5px 9px; top: 10px; } .badge--tl { left: 10px; } .badge--tr { right: 10px; } }

/* ---------- Gratis ---------- */
.free { position: relative; }
.free-light { position: absolute; inset: -40px -20px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 70% at 82% 50%, rgba(255,106,43,0.35), transparent 70%), radial-gradient(35% 60% at 10% 60%, rgba(142,31,47,0.35), transparent 70%); }
.free-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 44px; }
.free-text { flex: 1 1 440px; }
.free-box .h2 { font-size: clamp(28px, 3.8vw, 44px); }
.free-box p { margin: 16px 0 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { padding: 6px 12px; border: 1px solid rgba(246,231,211,0.16); border-radius: 999px; background: rgba(246,231,211,0.04); font-size: 12px; color: var(--soft); }
@media (max-width: 520px) { .free-box { padding: 28px 22px; } }

/* ---------- Catálogo (como un tracklist) ---------- */
.tracks { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) 150px auto; align-items: center; gap: 8px 22px;
  padding: 26px 12px; border-bottom: 1px solid var(--line); border-radius: 12px;
  transition: background-color 220ms var(--ease);
}
.t-star { width: 14px; height: 14px; fill: var(--line-2); transition: fill 220ms var(--ease), transform 400ms var(--ease); }
.track--live .t-star { fill: var(--accent); }
.t-name { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.05; }
.t-desc { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 620px; }
.t-meta { font-size: 13px; color: var(--dim); }
.t-action { justify-self: end; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); font-size: 13px; font-weight: 600; white-space: nowrap; transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease); }
.t-action--live { background: var(--accent); border-color: var(--accent); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .track:hover { background: rgba(246,231,211,0.035); }
  .track:hover .t-star { fill: var(--accent); transform: rotate(45deg); }
  .t-action:not(.t-action--live):hover { border-color: var(--accent); color: var(--fg); }
}
@media (max-width: 720px) {
  .track { grid-template-columns: 18px minmax(0, 1fr); padding: 22px 4px; }
  .t-meta { grid-column: 2; }
  .t-action { grid-column: 2; justify-self: start; }
}

/* ---------- Por qué ---------- */
.why-title { max-width: 820px; }
.features { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.feature { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.feature h3 { margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 20px; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; padding-bottom: 88px; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-size: 17px; font-weight: 600; color: var(--fg); }
.faq-plus { color: var(--accent); font-size: 22px; line-height: 1; transition: transform 200ms var(--ease); }
.faq-list details[open] .faq-plus { transform: rotate(45deg); }
.faq-list p { margin: 0 0 20px; max-width: 720px; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(30,18,16,0.4), rgba(11,8,7,1)); }
.footer-cols { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col--brand { flex-basis: 280px; gap: 16px; }
.footer-col--brand .brand { font-size: 34px; }
.footer-col--brand p { margin: 0; max-width: 300px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.footer-col a, .footer-col .plain { color: var(--soft); }
.footer-head { font-size: 12px; letter-spacing: 0.14em; font-weight: 600; color: var(--dim); }
.copyright { padding: 20px 24px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--dim); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .rz-ticker, .blob--a, .blob--b { animation: none; }
  .brand.flash .streak { animation: none; }
  .blk .d-grade, .blk .d-line, .blk .hole-glow, .btn, .lang-switch button, .seg button, .track, .t-star, .t-action, .faq-plus, .main-nav a { transition: none; }
  .btn:active { transform: none; }
}
