/* ============================================================
   PONCHO CUSTOM MUSIC — Design System
   Replicates Poncho Records visual identity + improved responsive
   ============================================================ */

/* ---- 1. VARIABLES ---------------------------------------- */
:root {
  --neon-cyan:   #00f5ff;
  --neon-pink:   #ff006e;
  --neon-purple: #bf00ff;
  --neon-green:  #39ff14;
  --neon-yellow: #ffe600;
  --dark-bg:     #020408;
  --dark-card:   #060d14;
  --dark-panel:  #08121e;
  --text-dim:    rgba(255,255,255,0.45);
  --grid-color:  rgba(0,245,255,0.04);
  --border:      rgba(0,245,255,0.15);

  --font-title: 'Orbitron', monospace;
  --font-label: 'Share Tech Mono', monospace;
  --font-body:  'Rajdhani', sans-serif;

  --transition: 0.3s ease;
}

/* ---- 2. RESET + BASE ------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark-bg);
  color: #e0e0e0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }
ul, ol { list-style: none; }

/* ---- 3. BACKGROUND GRID + SCANLINES --------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 55px 55px;
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.10) 2px,
    rgba(0,0,0,0.10) 4px
  );
  z-index: 0;
  pointer-events: none;
}

/* ---- 4. CUSTOM CURSOR ------------------------------------ */
#cursor-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--neon-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--neon-cyan), 0 0 18px rgba(0,245,255,0.5);
  transition: width 0.15s, height 0.15s, background 0.15s;
  mix-blend-mode: screen;
}

#cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(0,245,255,0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}

#cursor-dot.hover  { width: 6px; height: 6px; background: var(--neon-pink); }
#cursor-ring.hover { width: 50px; height: 50px; border-color: rgba(255,0,110,0.6); }

/* ---- 5. NAVIGATION --------------------------------------- */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(2,4,8,0.96) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,245,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--neon-cyan);
  text-shadow: 0 0 18px rgba(0,245,255,0.7);
  white-space: nowrap;
}

.nav-logo span { color: var(--neon-pink); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-cyan);
  transition: width var(--transition);
}

.nav-links a:hover       { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2,4,8,0.97);
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 999;
}

.nav-links.open a {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #fff;
}

/* ---- 6. BUTTONS ------------------------------------------ */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Primary — cyan */
.btn-primary {
  background: transparent;
  border: 1.5px solid var(--neon-cyan);
  color: var(--neon-cyan);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon-cyan);
  transform: translateX(-110%);
  transition: transform 0.32s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: #000;
  box-shadow: 0 0 28px rgba(0,245,255,0.55);
}

.btn-primary:hover::before { transform: translateX(0); }

/* Secondary — pink */
.btn-secondary {
  background: rgba(255,0,110,0.08);
  border: 1.5px solid var(--neon-pink);
  color: var(--neon-pink);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-secondary:hover {
  background: rgba(255,0,110,0.18);
  box-shadow: 0 0 28px rgba(255,0,110,0.4);
}

/* Ghost — transparent */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* Disabled — gray, no pointer */
.btn-disabled {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.2);
  cursor: not-allowed !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

/* ---- 7. CARDS -------------------------------------------- */
.card {
  background: var(--dark-card);
  border: 1px solid rgba(0,245,255,0.1);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,245,255,0.12);
}

.card-pink:hover {
  border-color: var(--neon-pink);
  box-shadow: 0 12px 40px rgba(255,0,110,0.12);
}

/* ---- 8. CUSTOM AUDIO PLAYER ------------------------------ */
.audio-card {
  background: var(--dark-card);
  border: 1px solid rgba(0,245,255,0.1);
  padding: 1.2rem;
  transition: border-color var(--transition);
}

.audio-card:hover { border-color: rgba(0,245,255,0.3); }

.audio-card audio { display: none; } /* Always hidden — custom UI only */

.player-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.player-title {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.player-tag {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(0,245,255,0.3);
  color: var(--neon-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--neon-cyan);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.player-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 14px rgba(0,245,255,0.5);
}

.player-btn svg { width: 14px; height: 14px; fill: currentColor; }

.player-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.player-bar {
  width: 100%;
  height: 3px;
  background: rgba(0,245,255,0.12);
  position: relative;
  cursor: none;
}

.player-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-label);
  font-size: 0.6rem;
  color: var(--text-dim);
}

/* ---- 9. FORMS -------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: #e0e0e0;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0,245,255,0.18);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300f5ff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: none;
}

.form-group select option {
  background: var(--dark-panel);
  color: #e0e0e0;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.char-counter {
  font-family: var(--font-label);
  font-size: 0.62rem;
  color: var(--text-dim);
  text-align: right;
  transition: color var(--transition);
}

.char-counter.ok    { color: var(--neon-green); }
.char-counter.warn  { color: var(--neon-yellow); }

.field-error {
  font-family: var(--font-label);
  font-size: 0.62rem;
  color: var(--neon-pink);
  letter-spacing: 0.05em;
  display: none;
}

.field-error.visible { display: block; }

/* Mood chips */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}

.mood-chip {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--dark-panel);
  color: var(--text-dim);
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: all var(--transition);
  cursor: none;
  user-select: none;
}

.mood-chip:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.mood-chip.selected {
  border-color: var(--neon-cyan);
  background: rgba(0,245,255,0.1);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0,245,255,0.2);
}

/* Add-on checkboxes */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}

.addon-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--dark-panel);
  cursor: none;
  transition: all var(--transition);
  user-select: none;
}

.addon-check:hover        { border-color: var(--neon-purple); }
.addon-check.selected     { border-color: var(--neon-purple); background: rgba(191,0,255,0.08); }
.addon-check input        { display: none; }

.addon-check-box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.addon-check.selected .addon-check-box {
  border-color: var(--neon-purple);
  background: var(--neon-purple);
}

.addon-check.selected .addon-check-box::after {
  content: '✓';
  font-size: 10px;
  color: #000;
  font-weight: 900;
}

.addon-info { flex: 1; }

.addon-name {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #fff;
  display: block;
}

.addon-price {
  font-family: var(--font-label);
  font-size: 0.6rem;
  color: var(--neon-purple);
}

/* Plan selection cards */
.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.plan-card {
  padding: 1.2rem;
  border: 2px solid var(--border);
  background: var(--dark-panel);
  cursor: none;
  transition: all var(--transition);
  position: relative;
  user-select: none;
}

.plan-card:hover          { border-color: var(--neon-cyan); }
.plan-card.selected       { border-color: var(--neon-cyan); background: rgba(0,245,255,0.06); }
.plan-card input          { display: none; }

.plan-card .plan-badge {
  position: absolute;
  top: -1px;
  right: 12px;
  font-family: var(--font-label);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  background: var(--neon-pink);
  color: #000;
  font-weight: 700;
}

.plan-name {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.plan-price {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--neon-cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.plan-features {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---- 10. STATUS BADGES ----------------------------------- */
.badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.65rem;
  text-transform: uppercase;
}

.badge-pendiente  { border: 1px solid var(--neon-yellow);  color: var(--neon-yellow);  background: rgba(255,230,0,0.08); }
.badge-completado { border: 1px solid var(--neon-cyan);    color: var(--neon-cyan);    background: rgba(0,245,255,0.08); }
.badge-pagado     { border: 1px solid var(--neon-green);   color: var(--neon-green);   background: rgba(57,255,20,0.08); }

/* ---- 11. SECTION TITLES ---------------------------------- */
.section-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--neon-cyan);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}

.section-title .accent {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- 12. STEP INDICATOR (multi-step form) ---------------- */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.step-num {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all var(--transition);
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.step-label {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 0.75rem;
  transition: background var(--transition);
}

.step-item.active .step-num  { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,245,255,0.3); }
.step-item.active .step-label { color: var(--neon-cyan); }
.step-item.done .step-num    { border-color: var(--neon-green); background: var(--neon-green); color: #000; }
.step-item.done .step-label  { color: var(--neon-green); }
.step-line.done              { background: var(--neon-green); }

/* ---- 13. TOAST NOTIFICATIONS ----------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  padding: 0.8rem 1.4rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border: 1px solid;
  max-width: 320px;
  animation: toastIn 0.3s ease forwards;
  pointer-events: auto;
}

.toast-success { background: rgba(57,255,20,0.1);   border-color: var(--neon-green);  color: var(--neon-green); }
.toast-error   { background: rgba(255,0,110,0.1);   border-color: var(--neon-pink);   color: var(--neon-pink); }
.toast-info    { background: rgba(0,245,255,0.08);  border-color: var(--neon-cyan);   color: var(--neon-cyan); }

.toast.out { animation: toastOut 0.3s ease forwards; }

/* ---- 14. LOADING SPINNER --------------------------------- */
.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.spinner-sm { width: 18px; height: 18px; border-width: 1.5px; }

/* ---- 15. FLOATING CTA ------------------------------------ */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  animation: orbFloat 3s ease-in-out infinite;
}

/* ---- 16. PAGE HERO --------------------------------------- */
.page-hero {
  padding: 9rem 3rem 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-hero .hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  animation: fadeSlideUp 0.8s ease 0.1s both;
}

.page-hero .hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-top: 1rem;
  animation: fadeSlideUp 0.8s ease 0.25s both;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- 17. FLOATING ORBS ----------------------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
  animation: orbFloat var(--spd, 8s) ease-in-out infinite var(--delay, 0s);
}

.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(191,0,255,0.18) 0%, transparent 70%); top: 5%; left: -8%; --spd: 9s; }
.orb-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(0,245,255,0.1) 0%, transparent 70%); bottom: -8%; right: -8%; --spd: 11s; --delay: 1s; animation-direction: reverse; }
.orb-3 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(255,0,110,0.1) 0%, transparent 70%); top: 45%; left: 55%; --spd: 7s; --delay: 2s; }

/* ---- 18. ADMIN TABLE ------------------------------------- */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.admin-table th {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: rgba(0,245,255,0.03);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tr:hover td { background: rgba(0,245,255,0.025); }

/* Stats row */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--dark-panel);
  border: 1px solid var(--border);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--neon-cyan);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open { display: flex; }

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--dark-panel);
  border: 1px solid var(--border);
  position: relative;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
}

.modal-close {
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
  transition: color var(--transition);
  cursor: none;
}

.modal-close:hover { color: var(--neon-pink); }

.modal-body   { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1.1rem 1.5rem; border-top: 1px solid var(--border); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  cursor: none;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--neon-cyan);
  background: rgba(0,245,255,0.03);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: none;
  width: 100%;
  height: 100%;
}

.upload-progress { height: 3px; background: var(--border); margin-top: 1rem; }
.upload-progress-fill { height: 100%; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple)); width: 0; transition: width 0.3s; }

/* ---- 19. PRICE SUMMARY (solicitar / descargar) ----------- */
.price-summary {
  background: var(--dark-panel);
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.price-row:last-child {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* ---- 20. ANIMATIONS -------------------------------------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-18px) scale(1.03); }
}

@keyframes glitch1 {
  0%,90%,100% { transform: translate(0); opacity: 0; }
  92% { transform: translate(-3px, 1px); opacity: 0.9; }
  94% { transform: translate(3px, -1px); opacity: 0.7; }
  96% { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
  0%,91%,100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(3px, 2px); opacity: 0.9; }
  95% { transform: translate(-3px, -1px); opacity: 0.6; }
  97% { transform: translate(0); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes neonPulse {
  0%,100% { box-shadow: 0 0 8px var(--neon-cyan); }
  50%      { box-shadow: 0 0 24px var(--neon-cyan), 0 0 50px rgba(0,245,255,0.35); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}

/* ---- 21. UTILITY CLASSES --------------------------------- */
.z2 { position: relative; z-index: 2; }
.text-center { text-align: center; }
.text-cyan  { color: var(--neon-cyan); }
.text-pink  { color: var(--neon-pink); }
.text-dim   { color: var(--text-dim); }
.mt-sm  { margin-top: 0.5rem; }
.mt-md  { margin-top: 1rem; }
.mt-lg  { margin-top: 2rem; }
.mb-sm  { margin-bottom: 0.5rem; }
.mb-md  { margin-bottom: 1rem; }
.mb-lg  { margin-bottom: 2rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.fw { width: 100%; }

/* ---- 22. RESPONSIVE: TABLET (≤768px) -------------------- */
@media (max-width: 768px) {
  .main-nav { padding: 1rem 1.5rem; }

  .nav-links:not(.open) { display: none; }
  .hamburger { display: flex; }

  .page-hero { padding: 7rem 1.5rem 3rem; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .plan-cards { grid-template-columns: 1fr; }

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

  .addon-grid { grid-template-columns: 1fr; }

  .admin-table th.col-desc,
  .admin-table td.col-desc { display: none; }

  .floating-cta { bottom: 1.2rem; right: 1.2rem; }
}

/* ---- 23. RESPONSIVE: MOBILE (≤480px) -------------------- */
@media (max-width: 480px) {
  body { font-size: 0.95rem; }

  /* Disable cursor on touch */
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }

  .main-nav { padding: 0.9rem 1.1rem; }

  .nav-logo { font-size: 0.85rem; letter-spacing: 0.15em; }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    padding: 0.7rem 1.5rem;
    font-size: 0.68rem;
  }

  .page-hero { padding: 6rem 1rem 2.5rem; }

  .section-title { font-size: clamp(1.5rem, 7vw, 2.2rem); }

  .stats-bar { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .stat-num  { font-size: 1.3rem; }

  .step-label { display: none; }

  .plan-price { font-size: 1.2rem; }

  .modal { max-height: 95vh; }
  .modal-body { padding: 1rem; }

  .floating-cta { bottom: 1rem; right: 1rem; }
  .floating-cta .btn-primary { padding: 0.7rem 1.2rem; font-size: 0.65rem; }

  .toast-container { bottom: 1rem; right: 0.75rem; left: 0.75rem; }
  .toast { max-width: 100%; }
}

/* ---- Shared footer ---- */
footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
}

.footer-copy {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
}
