/* ============================================
   ESTILOS GLOBALES: LUXE APP ELITE v2
   Proyecto: Clientes LiveGood Hub
   ============================================ */

:root {
  --primary: #0abf8a;
  --primary-dark: #087d5c;
  --secondary: #064e3b;
  --accent: #a7f3d0;
  --bg: #f0f7f4;
  --bg-deep: #e8f3ee;
  --white: #ffffff;
  --text-main: #1a2e25;
  --text-muted: #5a7a6e;
  --shadow-sm: 0 2px 8px rgba(6,78,59,0.06);
  --shadow-md: 0 8px 32px rgba(6,78,59,0.10);
  --shadow-lg: 0 20px 60px rgba(6,78,59,0.14);
  --shadow-xl: 0 32px 80px rgba(6,78,59,0.18);
  --glass: rgba(255,255,255,0.88);
  --glass-border: rgba(10,191,138,0.15);
  --radius: 28px;
  --radius-lg: 36px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html { scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  background: var(--bg);
  font-family: 'Sora', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Branding Banner ─────────────────────── */
.clg-branding-banner-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 20px 4px;
  width: 100%;
}
.clg-branding-banner {
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 3px 10px rgba(10,191,138,0.12));
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
@media (max-width: 600px) {
  .clg-branding-banner { max-width: 185px; }
}

/* ── Container ──────────────────────────── */
.clg-container {
  width: 100%; max-width: 1100px;
  margin: 0 auto; padding-bottom: 120px;
}

/* ── Header ─────────────────────────────── */
.clg-hdr {
  background: linear-gradient(145deg, var(--secondary), var(--primary-dark));
  border-radius: 0 0 44px 44px;
  padding: 60px 24px 80px;
  text-align: center; color: var(--white);
  box-shadow: 0 12px 48px rgba(6,78,59,0.28);
  margin-bottom: -30px;
  position: relative;
  overflow: hidden;
}
.clg-hdr::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(10,191,138,0.25) 0%, transparent 65%);
}

.clg-h2 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; line-height: 1.1; }

/* ── Grid ───────────────────────────────── */
.clg-content-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; padding: 24px;
}
@media (min-width: 1024px) {
  .clg-content-grid { grid-template-columns: 1.1fr 0.9fr; padding: 40px 20px; }
}

/* ── Cards ──────────────────────────────── */
.clg-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.clg-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.clg-val-big { font-size: clamp(32px, 8vw, 48px); font-weight: 800; color: var(--primary); }
.clg-lbl {
  font-weight: 700; color: var(--secondary);
  margin-bottom: 12px; display: block;
  letter-spacing: 0.3px;
}

/* ── Botón Primary ──────────────────────── */
.clg-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white); border: none;
  border-radius: 18px;
  padding: 18px; font-size: 17px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  display: flex; justify-content: center; align-items: center;
  width: 100%;
  box-shadow: 0 8px 24px rgba(10,191,138,0.30);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.clg-btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(10,191,138,0.20);
}

/* ── Modales ────────────────────────────── */
.clg-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(4, 22, 15, 0.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: none; align-items: center; justify-content: center;
  z-index: 999999; opacity: 0;
  transition: opacity 0.4s ease; padding: 20px;
}
.clg-modal-overlay.clg-show { display: flex; opacity: 1; }

.clg-plan-modal, .clg-info-modal-inner {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(30px);
  border-radius: 36px;
  padding: 36px; width: 100%; max-width: 550px;
  box-shadow: 0 48px 120px rgba(0,0,0,0.25);
  border: 1px solid rgba(10,191,138,0.12);
  transform: translateY(24px); transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}
.clg-modal-overlay.clg-show > div { transform: translateY(0); }

.clg-plan-header { text-align: center; margin-bottom: 25px; }
.clg-plan-title { font-size: 24px; font-weight: 800; color: var(--secondary); }
.clg-plan-amount { font-size: 44px; font-weight: 800; color: var(--primary); }
.clg-plan-sub { font-size: 13px; color: var(--text-muted); font-weight: 700; }

.clg-plan-step {
  display: flex; gap: 15px; padding: 16px; margin-bottom: 10px;
  background: rgba(10,191,138,0.04);
  border-radius: 20px;
  border: 1px solid rgba(10,191,138,0.10);
}
.clg-plan-num {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(10,191,138,0.30);
}
.clg-plan-step-title { font-weight: 800; color: var(--secondary); font-size: 15px; }
.clg-plan-step-desc { font-size: 13px; color: var(--text-muted); }

.clg-plan-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: 16px;
  padding: 16px; width: 100%; font-weight: 800; font-size: 16px;
  margin-top: 20px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(10,191,138,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clg-plan-cta:active { transform: scale(0.97); }
.clg-plan-close {
  background: none; border: none; color: var(--text-muted); padding: 15px;
  width: 100%; font-weight: 700; cursor: pointer; font-family: inherit;
}

/* ── Nav Inferior ───────────────────────── */
.clg-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 500px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-radius: 28px 28px 0 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 12px 10px 28px; z-index: 10000;
  box-shadow: 0 -8px 40px rgba(6,78,59,0.10),
              0 -1px 0 rgba(10,191,138,0.12);
}
.clg-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  color: #4a7065; text-decoration: none;
  font-size: 10px; font-weight: 700;
  flex: 1; transition: color 0.25s ease, transform 0.2s ease;
  letter-spacing: 0.3px;
}
.clg-nav-btn:active { transform: scale(0.9); }
.clg-nav-btn.clg-nav-active { color: var(--primary); }
.clg-nav-icon { width: 24px; height: 24px; margin-bottom: 4px; }

/* ── Utils ──────────────────────────────── */
.clg-row {
  display: flex; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid rgba(10,191,138,0.10);
}
.clg-row:last-child { border: none; }
.clg-row .label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.clg-row .value { font-weight: 800; color: var(--secondary); }

/* ── Animaciones Reveal ─────────────────── */
.clg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.clg-reveal.active { opacity: 1; transform: translateY(0); }

/* ── Testimonios ────────────────────────── */
.clg-testimonial-carousel {
  display: flex; overflow-x: auto; gap: 16px; padding: 16px 20px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.clg-testimonial-carousel::-webkit-scrollbar { display: none; }

.clg-testimonial-card {
  min-width: 285px; flex: 0 0 285px; scroll-snap-align: center;
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 26px; padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.3s ease;
}

.clg-test-user { display: flex; align-items: center; gap: 12px; }
.clg-test-img {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(10,191,138,0.25);
}
.clg-test-name { font-weight: 700; font-size: 14px; color: var(--secondary); }
.clg-test-rank {
  font-size: 10px; font-weight: 800;
  background: var(--accent); color: var(--primary-dark);
  padding: 3px 10px; border-radius: 60px; text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Quiz ───────────────────────────────── */
.clg-quiz-card { text-align: center; padding: 16px; }
.clg-quiz-opt {
  display: block; width: 100%; padding: 16px 18px; margin-bottom: 12px;
  background: rgba(10,191,138,0.04);
  border: 1.5px solid rgba(10,191,138,0.15);
  border-radius: 16px;
  font-weight: 700; font-size: 14px;
  color: var(--secondary); cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25,0.46,0.45,0.94);
  text-align: left; font-family: inherit;
}
.clg-quiz-opt:hover {
  border-color: var(--primary);
  background: rgba(10,191,138,0.08);
  transform: translateX(4px);
}
.clg-quiz-opt:active { transform: scale(0.98); }

/* ── Dashboard ──────────────────────────── */
.clg-dash-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-top: 20px;
}
.clg-dash-stat {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: 20px; padding: 20px;
  text-align: center;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.clg-dash-stat-val { font-size: 24px; font-weight: 800; color: var(--primary); }
.clg-dash-stat-lbl { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }

/* ── Video ──────────────────────────────── */
.clg-video-placeholder {
  width: 100%; aspect-ratio: 16/9; background: #e2e8f0; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; border: 2px dashed #cbd5e1;
}
.clg-video-container {
  width: 100%; border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow-xl); background: #000;
  position: relative; aspect-ratio: 16/9;
}
.clg-video-container video { width: 100%; height: 100%; object-fit: cover; }

/* ── Misc ───────────────────────────────── */
.clg-badge-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  color: white !important;
}

@keyframes pulse-primary {
  0%   { box-shadow: 0 0 0 0 rgba(10,191,138,0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(10,191,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(10,191,138,0); }
}
.clg-pulse { animation: pulse-primary 2.2s infinite; }
