/* ============================================================
   ehsMusic — Estilos públicos
   Paleta: lavanda suave · fondos casi blancos · tipografía limpia
   ============================================================ */

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --bg: #f5f5f5;
  --dot: #c0c0c0;
  --dot-size: 18px;
  --white: #ffffff;
  --primary: #525260;
  --primary-dark: #3e3e4c;
  --primary-light: #ebebeb;
  --accent: #888898;
  --text: #1c1c1c;
  --text-muted: #55555f;
  --border: #e0e0e0;
  --shadow: 0 2px 14px rgba(60, 60, 70, .09);
  --shadow-hover: 0 6px 24px rgba(60, 60, 70, .15);
  --radius: 10px;
  --radius-sm: 6px;
  --success: #27a054;
  --success-bg: #f0fbf4;
  --error: #b83535;
  --error-bg: #fef4f4;
  --transition: .18s ease;
}

/* ─── Reset & base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  /* Fondo gris claro con patrón de puntos 1 × 1 px */
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 0.8px, transparent 0.5px);
  background-size: var(--dot-size) var(--dot-size);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ─── Layout general ─────────────────────────────────────── */
header {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

header .site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

header .site-logo img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
}

header .site-logo span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: -.02em;
  line-height: 1;
}

header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

header nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

header nav a:hover,
header nav a[aria-current="page"] {
  color: var(--primary);
  border-color: var(--primary);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ─── Suscripciones — planes ────────────────────────────── */
.plans-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
.plans-hero { text-align: center; margin-bottom: 2.5rem; }
.plans-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.plans-sub { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: box-shadow .2s;
}
.plan-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.plan-card--featured { border-color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: .25rem .85rem;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.plan-name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.plan-tagline { color: var(--text-muted); font-size: .9rem; margin: 0; }
.plan-price { margin: 0; line-height: 1; }
.plan-amount { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.plan-period { font-size: .9rem; color: var(--text-muted); }
.plan-features {
  list-style: none; padding: 0; margin: 0;
  flex: 1; display: flex; flex-direction: column; gap: .5rem;
}
.plan-features li::before { content: '✓ '; color: #16a34a; font-weight: 700; }
.plan-cta { text-align: center; margin-top: auto; }
.plans-note { text-align: center; color: var(--text-muted); font-size: .875rem; margin-top: 2rem; }

/* ─── Suscripción checkout ───────────────────────────────── */
.sub-checkout-page { max-width: 500px; margin: 3rem auto 4rem; padding: 0 1rem; }
.sub-checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.sub-checkout-card h1 { font-size: 1.4rem; margin: 0 0 1.25rem; }
.sub-checkout-plan { background: var(--bg-alt); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.sub-checkout-name { font-size: 1.1rem; font-weight: 700; }
.sub-checkout-tagline { color: var(--text-muted); font-size: .9rem; margin-bottom: .75rem; }
.sub-checkout-features {
  list-style: none; padding: 0; margin: 0 0 .75rem;
  font-size: .875rem; display: flex; flex-direction: column; gap: .3rem;
}
.sub-checkout-features li::before { content: '✓ '; color: #16a34a; }
.sub-checkout-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.sub-checkout-note { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.5; }
.sub-checkout-back { display: block; margin-top: 1rem; font-size: .875rem; color: var(--text-muted); text-decoration: none; }
.sub-checkout-back:hover { color: var(--primary); }

/* ─── Suscripción en Mi cuenta ───────────────────────────── */
.account-subscription {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.account-subscription--warning { background: #fffbeb; border-color: #fde68a; }
.account-sub-info { display: flex; flex-direction: column; gap: .2rem; }
.account-sub-name { font-size: 1rem; font-weight: 700; }
.account-sub-status { font-size: .8rem; color: #16a34a; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.account-sub-expiry { font-size: .85rem; color: var(--text-muted); }
.expiry-soon { color: #b45309; }
.account-sub-cta {
  background: var(--bg-alt); border-radius: 12px;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.account-sub-cta p { margin: 0; color: var(--text-muted); }

/* ─── Canjear cupón ──────────────────────────────────────── */
.redeem-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

.redeem-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.redeem-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: .5rem;
}

.redeem-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.redeem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.redeem-label {
  display: block;
  font-weight: 600;
  margin-bottom: .6rem;
  font-size: 1rem;
}

.redeem-input-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.redeem-input {
  flex: 1;
  min-width: 140px;
  padding: .65rem 1rem;
  font-size: 1.1rem;
  letter-spacing: .08em;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s;
}

.redeem-input:focus {
  border-color: var(--primary);
}

.redeem-hint {
  margin-top: 1.25rem;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .6);
}

/* ─── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: #f0f0f8;
  box-shadow: var(--shadow);
  color: var(--text);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-danger {
  background: var(--error-bg);
  color: var(--error);
  border-color: #f5c0c0;
}

.btn-danger:hover {
  background: #fbe8e8;
  color: var(--error);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-sm {
  padding: .35rem .85rem;
  font-size: .8rem;
}

.btn-large {
  padding: .8rem 2rem;
  font-size: 1rem;
}

.btn-mp {
  background: #009ee3;
  color: #fff;
  border-color: #009ee3;
}

.btn-mp:hover {
  background: #007dc0;
  border-color: #007dc0;
  color: #fff;
}

.btn-oxxo {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.btn-oxxo:hover {
  background: #a93226;
  border-color: #a93226;
  color: #fff;
}

/* ─── Alertas ────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--success-bg);
  border-color: #a3d9b4;
  color: #1a6b3a;
}

.alert-error {
  background: var(--error-bg);
  border-color: #f5c0c0;
  color: var(--error);
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}

.badge-active {
  background: #dcf5e6;
  color: #1a6b3a;
}

.badge-inactive {
  background: #f0f0f6;
  color: #6b6b8a;
}

.badge-expired {
  background: #fdecea;
  color: #b83535;
}

.badge-pending {
  background: #fff7e6;
  color: #a0660a;
}

/* ─── Formularios ────────────────────────────────────────── */
label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
}

label small {
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-bottom: .3rem;
  font-size: .8rem;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=url],
textarea,
select {
  width: 100%;
  padding: .6rem .9rem;
  margin-top: .35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 96, .12);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* ─── Card genérica ──────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 1px solid var(--border);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.03em;
  margin-bottom: .6rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.home-tagline {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: .5rem auto 1.75rem;
  line-height: 1.75;
}

/* ─── Home — features strip ──────────────────────────────── */
.home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.home-feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.home-feature-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: .6rem;
}

.home-feature strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.home-feature p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── Home — disclaimer ──────────────────────────────────── */
.home-disclaimer {
  max-width: 900px;
  margin: 2.5rem auto 2rem;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border-left: 3px solid #d97706;
  border-radius: 0 8px 8px 0;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-disclaimer strong {
  color: #92400e;
}

/* ─── Sección álbumes ────────────────────────────────────── */
.albums h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.album-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.album-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.album-card>a {
  display: block;
  color: inherit;
}

.album-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.album-card h3 {
  font-size: .95rem;
  font-weight: 600;
  padding: .9rem 1rem .3rem;
  color: var(--text);
}

.album-card .album-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0 1rem .9rem;
}

.album-card .btn {
  margin: 0 1rem 1rem;
  justify-content: center;
}

/* ─── Detalle del álbum ──────────────────────────────────── */
.album-detail {
  max-width: 860px;
  margin: 0 auto;
}

.album-header {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2rem;
}

.album-cover {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(60, 60, 70, .18);
}

.album-info h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: .4rem;
}

.album-year {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}

.album-desc {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.album-info .album-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

/* ─── Lista de pistas (público) ──────────────────────────── */
.track-list {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.track-list h2 {
  font-size: 1rem;
  font-weight: 700;
  padding: 1.1rem 1.5rem .9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .8rem;
}

.track-list ol {
  list-style: none;
  padding: 0;
}

.track-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1rem;
  padding: .75rem 1.5rem;
  border-bottom: 1px solid #f0f0f8;
  transition: background var(--transition);
}

.track-item:last-child {
  border-bottom: none;
}

.track-item:hover {
  background: var(--primary-light);
}

.track-item .track-number {
  font-size: .8rem;
  color: var(--text-muted);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

.track-item .track-title {
  flex: 1;
  font-size: .93rem;
}

.track-item .track-duration {
  font-size: .8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.track-item .track-preview,
.track-item audio {
  height: 28px;
  border-radius: 99px;
  accent-color: var(--primary);
}

/* ─── Carrito ────────────────────────────────────────────── */
.cart-items {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.cart-item-info a {
  font-weight: 600;
  color: var(--text);
}

.cart-item-info span {
  font-size: .88rem;
  color: var(--primary);
  font-weight: 700;
}

.cart-coupon {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.coupon-form {
  display: flex;
  gap: .6rem;
}

.coupon-form input {
  margin-top: 0;
  width: auto;
  flex: 1;
}

.cart-totals {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .93rem;
}

.cart-totals .discount {
  color: var(--success);
}

.cart-totals .total {
  font-size: 1.1rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  margin-top: .3rem;
  color: var(--primary);
}

/* ─── Checkout ───────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: start;
}

.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.order-summary h2 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}

.order-summary hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: .8rem 0;
}

.order-summary .discount {
  color: var(--success);
  font-size: .88rem;
}

.order-summary .total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.checkout-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2rem;
}

.checkout-form h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.checkout-form>p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.checkout-note {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .8rem !important;
}

/* ─── Autenticación ──────────────────────────────────────── */
.auth-page {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.auth-page h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-align: center;
  letter-spacing: -.02em;
}

.auth-footer {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ─── Pago ───────────────────────────────────────────────── */
.payment-page {
  max-width: 520px;
  margin: 2rem auto;
}

.payment-page h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.order-summary.payment-total {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.payment-total {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.payment-total strong {
  color: var(--primary);
  font-size: 1.2rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.payment-option {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: .75rem;
}

.payment-option h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.payment-option p {
  font-size: .87rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.payment-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-muted);
  font-size: .82rem;
  padding: .3rem 0;
  margin-bottom: .75rem;
}

.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.payment-back {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ─── OXXO ───────────────────────────────────────────────── */
.oxxo-page {
  max-width: 500px;
  margin: 2rem auto;
}

.oxxo-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.oxxo-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.oxxo-header p {
  font-size: .9rem;
  color: var(--text-muted);
}

.oxxo-voucher {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid #e0e0e0;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.oxxo-logo-row {
  background: #da1b2a;
  color: #fff;
  padding: .7rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.oxxo-amount,
.oxxo-reference,
.oxxo-expiry {
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.oxxo-expiry {
  border-bottom: none;
}

.oxxo-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 600;
}

.oxxo-value-big {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.oxxo-value-ref {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: #da1b2a;
}

.oxxo-value {
  font-size: .95rem;
  font-weight: 600;
}

.oxxo-ticket-link {
  padding: .9rem 1.5rem;
  border-top: 1px solid var(--border);
}

.oxxo-instructions {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.oxxo-instructions h2 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .9rem;
}

.oxxo-instructions ol {
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.oxxo-notice {
  font-size: .84rem;
  color: var(--text-muted);
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
}

.oxxo-back {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ─── Cuenta ─────────────────────────────────────────────── */
.account-page {
  max-width: 760px;
  margin: 0 auto;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.account-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.account-page h2 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.account-order {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.order-meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.order-albums {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.order-album-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .7rem .9rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.album-title {
  font-weight: 600;
  font-size: .9rem;
  flex: 1;
  min-width: 120px;
}

.expiry {
  font-size: .76rem;
  color: var(--text-muted);
}

/* ─── Reproductor ────────────────────────────────────────── */
.player-page {
  max-width: 700px;
  margin: 0 auto;
}

.player-header {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.player-cover {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(60, 60, 70, .2);
  flex-shrink: 0;
}

.player-meta h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .3rem;
}

.player-year,
.player-count {
  font-size: .85rem;
  color: var(--text-muted);
}

.player-page .track-list {
  margin-bottom: 1.25rem;
}

.player-page .track-item {
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
}

.track-info {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.player-page audio {
  width: 100%;
  height: 36px;
  accent-color: var(--primary);
}

.track-unavailable {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: italic;
}

.player-back {
  font-size: .88rem;
}

/* ─── Gracias ────────────────────────────────────────────── */
.thankyou {
  max-width: 560px;
  margin: 3rem auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
}

.thankyou h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}

.thankyou>p {
  font-size: .93rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.notice {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: left;
}

.download-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.download-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  background: var(--bg);
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
}

.download-list strong {
  flex: 1;
  min-width: 120px;
}

.download-list small {
  font-size: .78rem;
  color: var(--text-muted);
  width: 100%;
}

/* ─── Páginas de error ───────────────────────────────────── */
.error {
  text-align: center;
  padding: 5rem 1rem;
}

.error h1 {
  font-size: 5rem;
  font-weight: 800;
  color: var(--primary-light);
  -webkit-text-stroke: 2px var(--primary);
  margin-bottom: .5rem;
}

.error p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ─── Estado vacío ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 2;
}

/* ─── Utilidades ─────────────────────────────────────────── */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ─── Nosotros ───────────────────────────────────────────── */
.about-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero — cita principal */
.about-hero {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
  max-width: 780px;
  margin: 0 auto;
}

.about-tagline {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
  letter-spacing: -.01em;
}

.about-heading strong {
  font-weight: 700;
  color: var(--primary);
}

/* Card contenedora */
.about-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .04);
  padding: 2.5rem 3rem;
  margin-bottom: 3rem;
}

/* Layout — foto + texto */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Columna de la foto */
.about-photo {
  position: sticky;
  top: 80px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--primary-light) 0%, #dcdce0 100%);
  box-shadow: var(--shadow-hover);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cuando la imagen no carga, muestra nota musical decorativa */
.about-photo--placeholder .about-photo-overlay {
  display: flex !important;
}

.about-photo-overlay {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--primary);
  opacity: .25;
  pointer-events: none;
}

/* Columna de texto */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: .5rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.about-closing {
  font-size: 1.05rem !important;
  font-weight: 500;
  color: var(--primary) !important;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.about-cta {
  padding-top: .75rem;
}

/* ─── Página Música Subliminal ────────────────────────────── */
.subliminal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.subliminal-hero {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.subliminal-heading {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}

.subliminal-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .04);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.subliminal-intro h2,
.subliminal-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .9rem;
  color: var(--text);
}

.subliminal-intro p,
.subliminal-section p,
.subliminal-closing p {
  color: var(--text-muted);
  line-height: 1.75;
}

.subliminal-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.1rem;
}

.benefit-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .6rem;
}

.benefit-card h3 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}

.benefit-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.subliminal-unique {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
}

.subliminal-closing {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.subliminal-closing p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ─── Hamburguesa (oculta en desktop) ────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
/* Animación a X cuando está abierto */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .album-header {
    flex-direction: column;
  }

  .album-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .player-header {
    flex-direction: column;
    text-align: center;
  }

  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .home-features {
    grid-template-columns: 1fr;
  }

  header {
    padding: 0 1rem;
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  header nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }

  header nav.open {
    display: flex;
  }

  header nav a {
    padding: .85rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    font-size: 1rem;
  }

  header nav a:hover,
  header nav a[aria-current="page"] {
    border-left-color: var(--primary);
    background: var(--surface);
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }
}

/* ─── Reproductor de audio personalizado (.ap) ───────────── */
.ap {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .45rem .7rem;
  transition: border-color var(--transition);
}

.ap.ap-playing {
  border-color: var(--primary);
}

.ap-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform .1s;
  padding: 0;
}

.ap-btn svg {
  width: 11px;
  height: 11px;
}

.ap-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
}

.ap-playing .ap-btn {
  background: var(--primary-dark);
}

.ap-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}

.ap-title {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  margin-top: 4px;
}

.ap-track:hover .ap-thumb {
  opacity: 1;
}

.ap-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 2px;
  pointer-events: none;
  transition: width .1s linear;
}

.ap-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, left .1s linear;
}

.ap-playing .ap-thumb {
  opacity: 1;
}

.ap-time {
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Indicador "Preview" en la página del álbum */
.track-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  width: 100%;          /* fuerza salto de línea en el flex-wrap */
  max-width: 380px;     /* limita el ancho del player */
  padding-left: calc(20px + 1rem); /* alinea con el título (ancho del número + gap) */
}

.preview-badge {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}