/* =========================================================
   ThunderWave DJ · estilos propios sobre Bootstrap 5.3
   Paleta ThunderWave: ámbar, negro, grises oscuros, blanco.
   Para cambiar colores, edita solo las variables de :root.
   ========================================================= */
:root {
  color-scheme: dark;
  --tw-bg: #070707;
  --tw-bg-2: #121213;
  --tw-gray-1: #1c1c1e;
  --tw-gray-2: #2a2a2d;
  --tw-line: #232326;
  --tw-text: #f5f5f7;
  --tw-muted: #8e8e93;
  --tw-amber: #ffb02e;
  --tw-amber-glow: rgba(255, 150, 30, .30);

  /* Bootstrap usa estas variables en todo el sitio */
  --bs-body-bg: var(--tw-bg);
  --bs-body-color: var(--tw-text);
  --bs-body-font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bs-border-color: var(--tw-line);
  --bs-link-color: var(--tw-amber);
  --bs-link-hover-color: #ffc862;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--tw-amber); outline-offset: 3px; box-shadow: none; }
.text-amber { color: var(--tw-amber) !important; }
.text-tw-muted { color: var(--tw-muted) !important; }

/* Grano sutil de fondo */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .06; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.9'/></svg>");
}

/* ---------- Tipografía ---------- */
.tw-eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--tw-amber); margin-bottom: .9rem; }
.tw-h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.03; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.tw-h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.tw-lead { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; color: var(--tw-muted); max-width: 45rem; }
.tw-lead b { color: var(--tw-text); font-weight: 500; }
.text-center .tw-lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn-tw {
  --bs-btn-bg: var(--tw-amber); --bs-btn-color: #111; --bs-btn-border-color: var(--tw-amber);
  --bs-btn-hover-bg: #ffc05a; --bs-btn-hover-color: #111; --bs-btn-hover-border-color: #ffc05a;
  --bs-btn-active-bg: #f09c10; --bs-btn-active-color: #111;
  border-radius: 980px; font-weight: 600; padding: .75rem 1.5rem;
  box-shadow: 0 8px 30px -8px rgba(255, 176, 46, .55);
}
.btn-tw-light {
  --bs-btn-bg: #f5f5f7; --bs-btn-color: #111; --bs-btn-border-color: #f5f5f7;
  --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #111;
  border-radius: 980px; font-weight: 600; padding: .7rem 1.4rem;
}
.btn-tw-ghost {
  --bs-btn-color: var(--tw-text); --bs-btn-border-color: #48484c;
  --bs-btn-hover-bg: var(--tw-gray-1); --bs-btn-hover-color: var(--tw-text); --bs-btn-hover-border-color: var(--tw-amber);
  border-radius: 980px; font-weight: 600; padding: .7rem 1.4rem;
}
.btn-sm.btn-tw { padding: .35rem .9rem; font-size: .8rem; }
.tw-link { color: var(--tw-amber); font-weight: 500; text-decoration: none; }
.tw-link::after { content: " ›"; }

/* ---------- Barra de navegación ---------- */
.tw-nav { background: rgba(0, 0, 0, .72); backdrop-filter: blur(20px); border-bottom: 1px solid var(--tw-line); font-size: .85rem; }
.tw-nav .navbar-brand { font-weight: 600; font-size: .95rem; }
.tw-nav .nav-link { color: #d2d2d7; }
.tw-nav .nav-link:hover { color: var(--tw-text); }

/* ---------- Secciones ---------- */
.tw-section { position: relative; padding-block: clamp(5rem, 10vw, 7.5rem); }
.tw-alt { overflow: hidden; background: linear-gradient(180deg, #0a0a0a 0%, #161618 50%, #0c0c0d 100%); }
.tw-skin { border-top: 1px solid var(--tw-line); background: linear-gradient(180deg, #0b0b0c, #101011); }
.tw-skin:nth-of-type(even) { background: linear-gradient(180deg, #121213, #0b0b0c); }

/* ---------- Hero con escenario ---------- */
.tw-hero {
  position: relative; overflow: hidden; padding-top: 6.5rem;
  background:
    radial-gradient(1100px 520px at 50% 108%, rgba(255, 150, 30, .34), transparent 65%),
    radial-gradient(700px 380px at 50% -10%, rgba(255, 255, 255, .07), transparent 70%),
    linear-gradient(#0b0b0c, #151516 55%, #0d0d0e);
}
.tw-hero > .container, .tw-aio { position: relative; z-index: 2; }
.tw-beam {
  position: absolute; bottom: 0; width: 340px; height: 1400px; transform-origin: 50% 100%; pointer-events: none;
  background: linear-gradient(to top, rgba(255, 176, 46, .13), rgba(255, 176, 46, 0) 75%);
  clip-path: polygon(47% 100%, 53% 100%, 100% 0, 0 0); filter: blur(10px);
}
.tw-hero-spacer { height: 210px; }

/* Computador All-in-One genérico */
.tw-aio { max-width: 1040px; margin: 4.5rem auto 0; }
.tw-aio-screen { background: #0a0a0b; border-radius: 18px; padding: 14px; box-shadow: 0 0 0 1px var(--tw-gray-2), 0 60px 140px -30px rgba(255, 160, 40, .35); }
.tw-aio-screen img { border-radius: 6px; }
.tw-aio-chin { height: 34px; background: linear-gradient(#1c1c1e, #141416); border-radius: 0 0 18px 18px; margin-top: -6px; box-shadow: 0 0 0 1px var(--tw-gray-2); }
.tw-aio-neck { width: 150px; height: 70px; margin: 0 auto; background: linear-gradient(90deg, #141416, #2a2a2d, #141416); }
.tw-aio-foot { width: 320px; height: 10px; margin: 0 auto; border-radius: 6px; background: var(--tw-gray-2); }

/* Público de siluetas (se genera en js/thunderwave.js) */
.tw-crowd { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; pointer-events: none; z-index: 3; }
.tw-crowd i {
  position: absolute; bottom: -6px; background: #000;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: bottom center; mask-position: bottom center;
}

/* Bailarines grandes a los lados, con contraluz ámbar */
.tw-alt::before {
  content: ""; position: absolute; inset: auto -10% -30% -10%; height: 80%; pointer-events: none;
  background:
    radial-gradient(420px 320px at 12% 90%, rgba(255, 150, 30, .16), transparent 70%),
    radial-gradient(420px 320px at 88% 90%, rgba(255, 150, 30, .16), transparent 70%);
}
.tw-dancer {
  position: absolute; bottom: 0; width: 520px; height: 540px; background: #000; pointer-events: none;
  -webkit-mask: url(../img/sil/245165.svg) no-repeat bottom right / contain; mask: url(../img/sil/245165.svg) no-repeat bottom right / contain;
  right: -40px;
}
.tw-dancer.left {
  right: auto; left: -60px;
  -webkit-mask-image: url(../img/sil/265160.svg); mask-image: url(../img/sil/265160.svg);
  -webkit-mask-position: bottom left; mask-position: bottom left;
}
.tw-alt > .container { position: relative; z-index: 1; }

/* ---------- Tarjetas de novedades ---------- */
.tw-card { background: rgba(28, 28, 30, .72); border: 1px solid var(--tw-line); border-radius: 20px; padding: 1.75rem 1.5rem; height: 100%; backdrop-filter: blur(8px); transition: border-color .2s; }
.tw-card:hover { border-color: var(--tw-amber); }
.tw-card .n { display: block; color: var(--tw-amber); font-size: .75rem; font-weight: 600; letter-spacing: .05em; margin-bottom: .9rem; }
.tw-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
.tw-card p { font-size: .95rem; line-height: 1.45; color: var(--tw-muted); margin: 0; }
.tw-pillar h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.tw-pillar p { color: var(--tw-muted); font-size: 1.05rem; line-height: 1.5; }

/* ---------- Secciones de cada skin ---------- */
.tw-tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 980px; border: 1px solid #333; color: #d2d2d7; margin-bottom: 1.1rem; }
.tw-tag.free { border-color: var(--tw-amber); color: var(--tw-amber); }
.tw-price { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .75rem; }
.tw-terms { font-size: .75rem; color: var(--tw-muted); margin-top: .6rem; }
.tw-shot { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--tw-gray-2), 0 50px 110px -40px rgba(255, 160, 40, .28); margin-top: 3.5rem; }
.tw-point b { display: block; font-weight: 600; margin-bottom: .2rem; }
.tw-point { color: var(--tw-muted); font-size: .95rem; line-height: 1.5; }

/* ---------- Pack ---------- */
.tw-pack { overflow: hidden; background: radial-gradient(900px 420px at 50% 100%, rgba(255, 150, 30, .30), transparent 70%), linear-gradient(#121213, #0a0a0a); }
.tw-pack > .container { position: relative; z-index: 2; }
.tw-pack .tw-crowd { height: 230px; z-index: 1; }
.tw-thumb { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px #222; }
.tw-bigprice { font-size: clamp(3.5rem, 8vw, 4.5rem); font-weight: 700; letter-spacing: -.03em; }
.tw-pack-spacer { height: 170px; }

/* ---------- Tabla comparativa ---------- */
.tw-table { --bs-table-bg: transparent; --bs-table-color: var(--tw-muted); --bs-table-border-color: var(--tw-line); min-width: 640px; font-variant-numeric: tabular-nums; }
.tw-table th { color: var(--tw-text); font-weight: 600; font-size: .875rem; border-bottom-color: #333; }
.tw-table td:first-child, .tw-table th:first-child { text-align: left; color: #d2d2d7; }
.tw-table td, .tw-table th { text-align: center; padding: .9rem .5rem; }
.tw-table .y { color: var(--tw-text); }

/* ---------- Letra pequeña y pie ---------- */
.tw-fine { font-size: .78rem; line-height: 1.7; color: #6e6e73; border-top: 1px solid var(--tw-line); }
.tw-fine h4 { font-size: .78rem; color: #d2d2d7; font-weight: 600; }
.tw-fine ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.tw-fine li { padding-left: .9rem; position: relative; }
.tw-fine li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--tw-amber); }
.tw-fine b { color: #d2d2d7; font-weight: 600; }
.tw-powered { color: var(--tw-muted); font-size: .8rem; letter-spacing: .03em; }
.tw-powered img { height: 22px; }

/* Aviso flotante (mientras un enlace de compra no esté configurado) */
.tw-toast { background: var(--tw-gray-1); color: var(--tw-text); border: 1px solid #3a3a3d; border-radius: 14px; }

/* ---------- Celular ---------- */
@media (max-width: 991.98px) {
  .tw-aio { margin-inline: 1.5rem; }
  .tw-dancer { width: 300px; height: 320px; }
}
@media (max-width: 575.98px) {
  .tw-aio { margin-inline: 1rem; }
  .tw-aio-screen { padding: 6px; border-radius: 10px; }
  .tw-aio-chin { height: 16px; } .tw-aio-neck { width: 70px; height: 34px; } .tw-aio-foot { width: 150px; height: 6px; }
  .tw-hero-spacer { height: 150px; }
  .tw-dancer { display: none; }
  .tw-shot { margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
