/* Nery G — estilos. Los colores de marca están en :root para cambiarlos fácil. */
:root {
  --bg: #070707;          /* negro: el color dominante */
  --bg-alt: #0d0d0d;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --line: #2a2a2a;
  --text: #f4f4f2;
  --muted: #a1a1a1;
  --accent: #e0162b;      /* rojo de marca: solo para detalles (botones, estados activos) */
  --accent-text: #ff3d4d; /* el mismo rojo, más claro, para texto pequeño sobre negro */
  --accent-ink: #ffffff;  /* texto sobre el rojo */
  --promo: #ffc53d;       /* dorado RESERVADO para precios en promoción: no usar el rojo ahí */
  --promo-ink: #1a1200;   /* texto sobre el dorado */
  --ok: #4ade80;
  --err: #ff8a8a;
  --radius: 14px;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
body.has-player { padding-bottom: 84px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.05rem; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-head p { color: var(--muted); margin-top: 12px; }
.kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
.note, .fine { color: var(--muted); font-size: .88rem; margin-top: 16px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 .95rem var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #f52a3f; }
.btn.ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--text); }
.btn.small { padding: 8px 16px; font-size: .85rem; }
.btn.whatsapp { background: #25d366; color: #06240f; margin-bottom: 24px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--text); color: #0a0a0a; display: grid; place-items: center; transition: transform .15s, background .15s, color .15s;
}
.icon-btn.playing { background: var(--accent); color: var(--accent-ink); }
.icon-btn:hover { transform: scale(1.06); }
.icon-btn::before { content: ''; width: 0; height: 0; margin-left: 3px; border-left: 13px solid currentColor; border-block: 8px solid transparent; }
.icon-btn.playing::before { margin: 0; width: 4px; height: 15px; border: 0; border-inline: 4px solid currentColor; box-sizing: content-box; background: transparent; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: rgba(7, 7, 7, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 1rem var(--display); letter-spacing: .02em; }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo:hover svg { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo em { font-style: normal; color: var(--accent-text); margin-left: 5px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 700 .8rem var(--body); cursor: pointer; }
.lang:hover { border-color: var(--accent); color: var(--accent-text); }
.menu-btn { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 14vw, 150px) 0 clamp(64px, 11vw, 120px); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 88% 0%, rgba(224, 22, 43, .16), transparent 70%); }
.hero-bars { position: absolute; inset: auto 0 0 0; height: 46%; display: flex; align-items: flex-end; gap: 5px; padding: 0 12px; opacity: .16; }
.hero-bars i { flex: 1; background: linear-gradient(var(--accent), transparent); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: eq 1.6s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(2.1rem, 7.2vw, 4.6rem); max-width: 14ch; margin: 14px 0 20px; }
.lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Tienda */
.filters { display: flex; gap: 12px; margin-bottom: 18px; }
input, select, textarea {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.filters select { max-width: 220px; }
.beat-list { display: grid; gap: 10px; }
.beat {
  display: grid; grid-template-columns: 60px 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.beat:hover, .beat.active { border-color: #444; background: var(--surface-2); }
.beat.active { border-color: var(--accent); }
.cover { width: 60px; height: 60px; border-radius: 10px; background-size: cover; background-position: center; flex: none; }
.beat-main { min-width: 0; }
.beat-title { font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beat-meta { color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .72rem; padding: 2px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.beat-buy { display: flex; align-items: center; gap: 14px; }
.price { text-align: right; line-height: 1.2; }
.price small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.price b { font-size: 1.05rem; }
.empty { color: var(--muted); padding: 36px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Antes / después */
.cmp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cmp h3 { margin-bottom: 4px; }
.cmp .artist { color: var(--accent-text); font-size: .88rem; font-weight: 500; }
.cmp .desc { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.cmp-controls { display: flex; align-items: center; gap: 12px; }
.time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 34px; }
input[type='range'] { appearance: none; -webkit-appearance: none; padding: 0; height: 5px; border: 0; border-radius: 5px; background: var(--line); cursor: pointer; accent-color: var(--accent); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
input[type='range']::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); }

/* Servicios */
.srv-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.srv { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.srv.featured { border: 2px solid var(--accent); background: linear-gradient(rgba(224, 22, 43, .12), rgba(224, 22, 43, .03)), var(--surface); }
.srv-badge { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.srv.featured .srv-badge { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.srv-price { line-height: 1.25; }
.srv-price b { font-size: 1.45rem; }
.srv-price b.text { font-size: 1.1rem; }
.srv-price small { color: var(--muted); font-size: .86rem; }
.srv-sub { display: block; color: var(--muted); font-size: .86rem; margin-top: 4px; }
.srv.featured .srv-sub { color: var(--accent-text); font-weight: 500; }
.srv p { color: var(--muted); font-size: .94rem; }
.srv-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.srv-inc li { position: relative; padding-left: 20px; }
.srv-inc li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }
.srv .srv-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.srv .srv-foot .btn { margin: 0; width: 100%; justify-content: center; text-align: center; }
.srv .srv-extra { font-size: .84rem; }
.srv .srv-deposit { font-size: .82rem; color: var(--muted); }
.btn.paypal { background: #ffc439; color: #111; }
.btn.paypal:hover { background: #f2ba36; }
/* Ventana de pago de servicios */
.pay-pick { display: grid; gap: 12px; margin-bottom: 16px; }
.pay-pick label, .pay-qty { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); font-weight: 500; }
.pay-pick select { background: var(--bg); height: 48px; padding-block: 0; }
.pay-qty .stepper { width: max-content; }
.pay-sum { margin: 0 0 12px; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.pay-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); font-size: .92rem; }
.pay-sum dd { margin: 0; }
.pay-sum .now { color: var(--text); font-weight: 700; }
.pay-sum .now dd { font-size: 1.4rem; }
.pay-deposit { font-size: .88rem; color: var(--text); background: rgba(224, 22, 43, .10); border: 1px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
#srvPaypalButtons .btn { width: 100%; justify-content: center; margin: 0; }
/* Página de confirmación del pedido de un servicio */
.po-sum { margin: 20px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.po-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; font-size: .95rem; }
.po-sum div + div { border-top: 1px solid var(--line); }
.po-sum dt { color: var(--muted); }
.po-sum dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.po-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .9rem; margin-top: 16px; }
.po-save button { background: none; border: 0; padding: 0; color: var(--accent-text); font: 700 .9rem var(--body); cursor: pointer; }
.po-form { margin-top: 20px; }
.po-form h2 { font-size: 1.2rem; }
.po-form .guide { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 14px; font-size: .92rem; color: var(--text); }
.po-form .req { color: var(--accent-text); }
.po-form .bad input, .po-form .bad select, .po-form .bad textarea { border-color: var(--err); }
.po-form small { color: var(--muted); font-size: .84rem; }
.po-done .btn.whatsapp { margin: 18px 0 0; }
.srv .srv-extra a { color: var(--accent-text); font-weight: 700; }
.srv-notes { margin: 18px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* Licencias */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.lic-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface); }
.lic-table th, .lic-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.lic-table tr:last-child th, .lic-table tr:last-child td { border-bottom: 0; }
.lic-table thead th { font: 800 .82rem var(--display); color: var(--accent-text); }
.lic-table tbody th { color: var(--muted); font-weight: 500; }
.lic-table td { vertical-align: top; }
.lic-table .price-row td { font-weight: 700; color: var(--text); white-space: nowrap; }
/* En celular la tabla se convierte en una tarjeta por licencia: nada se corta ni hay que deslizar */
.lic-cards { display: none; gap: 12px; padding-bottom: 4px; }
.lic-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.lic-card h4 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font: 800 .9rem var(--display); color: var(--accent-text); margin-bottom: 10px; }
.lic-card h4 b { font: 700 1rem var(--body); color: var(--text); }
.lic-card dl { display: grid; gap: 8px; margin: 0; }
.lic-card dt { color: var(--muted); font-size: .8rem; }
.lic-card dd { margin: 0; font-size: .93rem; overflow-wrap: anywhere; }
.lic-notes { list-style: disc; padding-left: 18px; display: grid; gap: 6px; }
.lic-notes .lic-terms { list-style: none; margin: 6px 0 0 -18px; }
.lic-notes a { color: var(--text); }
@media (max-width: 720px) {
  #licencias, #faq { scroll-margin-top: 90px; }
.lic-details .table-scroll { display: none; }
  .lic-cards { display: grid; }
}

/* Estudio */
.about { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.about-text { color: var(--muted); font-size: 1.08rem; margin-top: 18px; white-space: pre-line; }
.testi-list { display: grid; gap: 12px; margin-top: 16px; }
.testi { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; }
.testi p { font-size: .96rem; }
.testi cite { display: block; margin-top: 8px; color: var(--muted); font-size: .85rem; font-style: normal; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--accent-text); }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); padding: 0 0 18px; }

/* Contacto */
.contact { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.contact-info { margin: 0; display: grid; gap: 12px; }
.contact-info dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-info dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--accent-text); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.socials a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; text-decoration: none; font-weight: 500; }
.socials a:hover { border-color: var(--accent); color: var(--accent-text); }
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form label { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea { background: var(--bg); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: .9rem; min-height: 1.3em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .86rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Reproductor fijo */
.player {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; gap: 14px;
  padding: 12px max(16px, calc((100% - 1120px) / 2)); background: rgba(16, 16, 16, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.player-cover { width: 46px; height: 46px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }
.player-info { min-width: 0; width: 190px; flex: none; line-height: 1.3; }
.player-info strong, .player-info span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info span { color: var(--muted); font-size: .8rem; }
.player input[type='range'] { flex: 1; min-width: 60px; }

/* Modal de compra */
.modal { width: min(480px, calc(100% - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); }
.modal h3 { font-size: 1.35rem; margin: 6px 36px 18px 0; overflow-wrap: anywhere; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.lic-options { display: grid; gap: 8px; margin-bottom: 18px; }
.lic-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); }
.lic-option:has(input:checked) { border-color: var(--accent); background: rgba(224, 22, 43, .10); }
.lic-option input { position: absolute; opacity: 0; width: 0; }
.lic-option b { display: block; }
.lic-option small { color: var(--muted); }
.lic-option .p { font-weight: 700; white-space: nowrap; }
.demo-note { font-size: .84rem; color: var(--text); background: var(--surface-2); border: 1px dashed #555; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 500; }
.terms-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.terms-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.terms-check a { color: var(--text); }
#paypalButtons { min-height: 48px; }
#paypalButtons.locked { opacity: .45; }
#paypalButtons .btn { width: 100%; }

/* Página de descarga y legal */
.page { padding: clamp(40px, 8vw, 88px) 0; min-height: 70vh; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); }
.dl-files { display: grid; gap: 10px; margin: 22px 0; }
.dl-files a { justify-content: space-between; border-radius: 12px; }
.summary { display: grid; gap: 4px; color: var(--muted); font-size: .92rem; margin-top: 14px; overflow-wrap: anywhere; }
.summary b { color: var(--text); }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #c9c9d1; margin-bottom: 10px; }
.legal .warn { border: 1px dashed var(--promo); border-radius: 10px; padding: 12px 16px; color: var(--text); font-size: .9rem; margin: 18px 0; }
html[lang='es'] [data-lang='en'], html[lang='en'] [data-lang='es'] { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .header-actions { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .filters { flex-direction: column; }
  .filters select { max-width: none; }
  .beat { grid-template-columns: 48px 40px minmax(0, 1fr); padding: 10px; gap: 10px; }
  .beat .cover { width: 48px; height: 48px; }
  .beat .icon-btn { width: 40px; height: 40px; }
  .beat-buy { grid-column: 1 / -1; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
  .price { text-align: left; }
  .row2 { grid-template-columns: 1fr; }
  .player { gap: 10px; flex-wrap: wrap; }
  .player-info { width: auto; flex: 1; }
  .player .time { display: none; }
  .player input[type='range'] { order: 9; flex-basis: 100%; }
  body.has-player { padding-bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Bloques añadidos: promoción, interruptor, cotizador, videos, WhatsApp ---------- */
.more-row { display: flex; justify-content: center; margin-top: 18px; }
.more-row:has([hidden]) { display: none; }

/* Promoción del mes: usa el dorado reservado para promociones, nunca el rojo */
.promo { background: #130f05; border-block: 1px solid rgba(255, 197, 61, .35); padding: 14px 0; }
.promo-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.promo-tag { background: var(--promo); color: var(--promo-ink); font: 800 .66rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.promo-text { flex: 1; min-width: 220px; }
.promo-text strong { color: var(--promo); }
.promo-until { color: var(--muted); font-size: .86rem; }
.promo-btn { background: var(--promo); color: var(--promo-ink); }

/* Antes / después con un solo interruptor */
.cmp-top { display: flex; align-items: center; gap: 14px; }
.cmp-name { min-width: 0; }
.cmp .cmp-name h3 { margin: 0 0 2px; overflow-wrap: anywhere; }
.cmp .cmp-name .tag { margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 18px 0 14px; padding: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font: 700 .86rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.switch::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #3a3a3a; transition: transform .2s, background .2s; }
.switch[aria-checked='true']::before { transform: translateX(100%); background: var(--accent); }
.switch span { position: relative; padding: 10px; transition: color .2s; }
.switch[aria-checked='false'] span:first-child, .switch[aria-checked='true'] span:last-child { color: #fff; }
.cmp .desc { margin-top: 14px; }
.cmp-link { display: inline-block; margin-top: 10px; color: var(--accent-text); font-weight: 700; font-size: .9rem; text-decoration: none; }
.cmp-link:hover { text-decoration: underline; }

/* Cotizador */
.quote {
  margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto auto; align-items: end; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.quote-head { align-self: center; }
.quote-head p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.quote label, .quote-qty { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); font-weight: 500; }
.quote select { background: var(--bg); height: 48px; padding-block: 0; }
.stepper { display: flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.stepper button { width: 44px; height: 100%; border: 0; background: none; color: var(--text); font-size: 1.25rem; cursor: pointer; }
.stepper button:hover { color: var(--accent-text); }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; color: var(--text); font-size: 1rem; }
.quote-total { line-height: 1.2; min-width: 110px; }
.quote-total small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.quote-total b { font-size: 1.4rem; white-space: nowrap; }
.quote-total b.long { display: block; max-width: 220px; font-size: .95rem; white-space: normal; }
.quote .btn { margin: 0; height: 48px; white-space: nowrap; }
.quote-pick { display: grid; gap: 12px; min-width: 0; }
.quote-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .88rem; }

/* Programa para artistas locales: sección propia, justo debajo de la tienda de beats */
#beats:not([hidden]) { border-bottom: 0; }
#beats:not([hidden]) + .local-section { padding-top: 0; border-top: 0; } /* se lee como continuación de la tienda */
.local {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 32px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; scroll-margin-top: 90px;
}
.local h3 { margin-bottom: 10px; }
.local p { color: var(--muted); }
.local ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: .93rem; }
.local .btn { grid-column: 1 / -1; justify-self: start; margin: 0; max-width: 100%; white-space: normal; text-align: left; }

/* Tienda: filtros y tabla de licencias plegable */
.filters { flex-wrap: wrap; }
.filters input { flex: 1 1 240px; }
.filters select { flex: 0 1 215px; max-width: none; }
.lic-details { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 18px; }
.lic-details summary { padding-right: 34px; }
.lic-details .lic-table { background: transparent; }
.lic-details .note { padding-bottom: 18px; margin-top: 12px; }

/* Videos (tour del estudio y testimonios): miniatura que carga el video al pulsar */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 22px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #000 center / cover no-repeat; cursor: pointer; overflow: hidden; }
.testi .video { margin: 0 0 12px; }
.video-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: var(--text); display: grid; place-items: center; transition: transform .15s; }
.video-play::before { content: ''; margin-left: 4px; border-left: 16px solid #0a0a0a; border-block: 10px solid transparent; }
.video:hover .video-play { transform: scale(1.08); }

/* Modal de compra: ayuda de licencias y paquete beat + estudio */
.lic-help { display: inline-block; margin: -8px 0 16px; font-size: .84rem; color: var(--muted); }
.lic-help:hover { color: var(--text); }
.bundle { display: block; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: .9rem; font-weight: 500; text-decoration: none; }
.bundle:hover { border-color: var(--text); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 35; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #06240f; display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0, 0, 0, .5); transition: transform .15s, bottom .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
body.has-player .wa-float { bottom: 96px; }

@media (max-width: 980px) {
  .quote { grid-template-columns: 1fr 1fr; align-items: center; }
  .quote-head, .quote label, .quote-pick, .quote .btn { grid-column: 1 / -1; }
  .quote-note { order: 1; } /* la nota queda justo bajo el precio, antes del botón */
  .quote .btn { order: 2; }
  .local { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .filters input, .filters select { flex: none; }
  body.has-player .wa-float { bottom: 118px; }
  .promo-text { flex-basis: 100%; }
}

/* Video de presentación en la portada: a la derecha en escritorio, bajo los botones en móvil */
.hero-inner.with-video { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-inner.with-video h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hero-video .video { margin: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.video.tall { aspect-ratio: 9 / 16; max-width: 300px; margin-inline: auto; }
.hero-video .video.tall { margin-inline: auto; }
@media (max-width: 860px) {
  .hero-inner.with-video { grid-template-columns: 1fr; }
}
.legal ul { padding-left: 20px; margin-bottom: 10px; }
