/* ==========================================================================
   ZeniaH — Ultra-Clean Minimalist Zen Design System
   Aesthetic: Space Grotesk / Manrope / Deep Cosmic Glow / Luxury Minimalism
   ========================================================================== */

:root {
  /* Official App Color Tokens */
  --bg-deep: #08090b;
  --bg-surface: #101216;
  --bg-surface-elevated: rgba(22, 25, 31, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-border-active: rgba(203, 190, 255, 0.35);

  --primary-cosmic: #cbbeff;
  --primary-glow: rgba(203, 190, 255, 0.25);
  --primary-container: #473b7b;
  --primary-light: #e7deff;

  --secondary-teal: #00dbe9;
  --secondary-glow: rgba(0, 219, 233, 0.25);

  --accent-gold: #ffd56b;
  --accent-gold-glow: rgba(255, 213, 107, 0.25);

  --text-main: #f0f1f5;
  --text-muted: #9b9aab;
  --text-dim: #646375;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(71, 59, 123, 0.3) 0%, transparent 55%),
    radial-gradient(circle at 15% 75%, rgba(0, 219, 233, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(203, 190, 255, 0.05) 0%, transparent 35%);
  background-attachment: fixed;
  color: var(--text-main);
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Container */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Shared */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-cosmic);
  background: rgba(203, 190, 255, 0.08);
  border: 1px solid rgba(203, 190, 255, 0.18);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

/* ==================== HEADER ==================== */
.app-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.brand-title span {
  color: var(--primary-cosmic);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-plans-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--trans-fast);
}

.nav-plans-link:hover {
  color: var(--text-main);
}

/* Selector de Idiomas */
.lang-selector-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--primary-container);
  color: var(--primary-light);
  box-shadow: 0 0 10px var(--primary-glow);
}

.btn-open-app {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg-deep);
  background: var(--primary-cosmic);
  box-shadow: 0 2px 12px var(--primary-glow);
  transition: transform var(--trans-fast), background var(--trans-fast);
}

.btn-open-app:hover {
  transform: translateY(-1px);
  background: var(--primary-light);
}

/* ==================== HERO ZEN (CENTRADO) ==================== */
.hero-zen-section {
  padding: 6.5rem 0 5.5rem 0;
  text-align: center;
  position: relative;
}

.hero-zen-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-zen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(203, 190, 255, 0.08);
  border: 1px solid rgba(203, 190, 255, 0.2);
  color: var(--primary-cosmic);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary-teal);
  box-shadow: 0 0 8px var(--secondary-teal);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-zen-title {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 820px;
}

.highlight-cosmic {
  color: var(--primary-cosmic);
  text-shadow: 0 0 25px rgba(203, 190, 255, 0.35);
}

.hero-zen-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-zen-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg-deep);
  background: var(--primary-cosmic);
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: transform var(--trans-fast), background var(--trans-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  transition: all var(--trans-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==================== TARJETA ZEN INTERACTIVA ==================== */
.zen-player-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.zen-player-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(203, 190, 255, 0.06);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.zen-player-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-cosmic), transparent);
}

.zen-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.78rem;
}

.zen-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--secondary-teal);
  font-weight: 600;
}

.zen-moon-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.zen-player-core {
  padding: 0.75rem 0 1.25rem 0;
}

.zen-track-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.zen-freq-display {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1;
  text-shadow: 0 0 25px rgba(203, 190, 255, 0.4);
}

.freq-unit {
  font-size: 1.3rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-left: 0.25rem;
}

.zen-scale-subtitle {
  font-size: 0.8rem;
  color: var(--primary-cosmic);
  margin-top: 0.35rem;
}

/* Selector de 3 Duraciones Limpio */
.zen-duration-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 1.25rem;
}

.zen-dur-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 0.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.zen-dur-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Visualizador de Ondas */
.sonic-visualizer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-bottom: 1.25rem;
}

.s-bar {
  width: 3px;
  background: linear-gradient(180deg, var(--secondary-teal), var(--primary-cosmic));
  border-radius: 3px;
  animation: sWave 1.4s infinite alternate ease-in-out;
}

.s-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.s-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.s-bar:nth-child(3) { height: 22px; animation-delay: 0.5s; }
.s-bar:nth-child(4) { height: 12px; animation-delay: 0.2s; }
.s-bar:nth-child(5) { height: 20px; animation-delay: 0.4s; }
.s-bar:nth-child(6) { height: 24px; animation-delay: 0.6s; }
.s-bar:nth-child(7) { height: 16px; animation-delay: 0.15s; }
.s-bar:nth-child(8) { height: 8px; animation-delay: 0.35s; }

@keyframes sWave {
  0% { transform: scaleY(0.3); opacity: 0.4; }
  100% { transform: scaleY(1.1); opacity: 1; }
}

.zen-affirmation {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  font-size: 0.825rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== 3 PILARES ESENCIALES ==================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--trans-fast);
}

.pillar-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==================== PLANES ($0, $2.99, $4.99) ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--trans-fast);
}

.pricing-card:hover {
  border-color: var(--glass-border-hover);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(30, 24, 52, 0.6) 0%, rgba(16, 18, 22, 0.9) 100%);
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 213, 107, 0.12);
  transform: scale(1.02);
}

.pricing-ribbon {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #08090b;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
}

.tier-header {
  margin-bottom: 1.25rem;
}

.tier-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.tier-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.tier-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.pricing-card.featured .tier-price {
  color: var(--accent-gold);
}

.tier-period {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.tier-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 42px;
}

.tier-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1.25rem 0;
}

.tier-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.tier-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
}

.feat-check {
  color: var(--secondary-teal);
  font-weight: 700;
  font-size: 0.9rem;
}

.pricing-card.featured .feat-check {
  color: var(--accent-gold);
}

.tier-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.tier-btn-outline {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.tier-btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.tier-btn-featured {
  color: #08090b;
  background: var(--accent-gold);
  border: none;
  box-shadow: 0 4px 18px var(--accent-gold-glow);
}

.tier-btn-featured:hover {
  background: #ffe08a;
  transform: translateY(-2px);
}

.pricing-security-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==================== FOOTER ULTRA-MINIMAL ==================== */
.site-footer-zen {
  background: #050608;
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 0 2.5rem 0;
  text-align: center;
}

.footer-zen-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-zen-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-brand-name span {
  color: var(--primary-cosmic);
}

.footer-zen-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 420px;
}

.footer-zen-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.775rem;
  color: var(--text-dim);
}

.footer-zen-langs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--trans-fast);
}

.footer-lang-btn:hover {
  color: var(--primary-cosmic);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 860px) {
  .pillars-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-zen-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
