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

:root {
  --primary: #0abf8a;
  --primary-dark: #087d5c;
  --secondary: #064e3b;
  --accent: #a7f3d0;
  --bg: #f3f7f6;
  --white: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 20px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25px 35px -5px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.6);
  --radius: 28px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
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;
}

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

.clg-hdr {
  background: linear-gradient(145deg, var(--secondary), var(--primary-dark));
  border-radius: 0 0 40px 40px;
  padding: 60px 24px 80px;
  text-align: center; color: var(--white);
  box-shadow: var(--shadow-lg);
  margin-bottom: -30px;
}

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

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

.clg-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.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; }

.clg-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  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%;
}

/* Modales Premium */
.clg-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(6, 78, 59, 0.45);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  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: var(--white); border-radius: 35px;
  padding: 40px; width: 100%; max-width: 550px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
  transform: translateY(20px); transition: transform 0.4s ease;
}
.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: 15px; margin-bottom: 10px;
  background: #f8fafc; border-radius: 20px; border: 1px solid #edf2f7;
}
.clg-plan-num {
  background: var(--primary); color: white; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
}
.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: var(--primary); color: white; border: none; border-radius: 16px;
  padding: 16px; width: 100%; font-weight: 800; font-size: 16px;
  margin-top: 20px; cursor: pointer;
}
.clg-plan-close {
  background: none; border: none; color: var(--text-muted); padding: 15px;
  width: 100%; font-weight: 700; cursor: pointer;
}

/* Nav Inferior Unificada (4 Iconos Iguales) */
.clg-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 500px; background: var(--glass);
  backdrop-filter: blur(20px); border-radius: 30px 30px 0 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 12px 10px 25px; z-index: 10000; box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}
.clg-nav-btn { 
    display: flex; flex-direction: column; align-items: center; 
    color: var(--text-muted); text-decoration: none; font-size: 10px; font-weight: 700; 
    flex: 1; transition: 0.3s;
}
.clg-nav-btn.clg-nav-active { color: var(--primary); }
.clg-nav-icon { width: 26px; height: 26px; margin-bottom: 4px; }
.clg-nav-btn-center { /* Sin sobre saltar, igual que los demás */ }

/* Utils */
.clg-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; }
.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); }

/* --- Marketing & Animations --- */
.clg-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.clg-reveal.active { opacity: 1; transform: translateY(0); }

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

.clg-testimonial-card {
  min-width: 280px; flex: 0 0 280px; scroll-snap-align: center;
  background: var(--white); border-radius: 24px; padding: 25px;
  box-shadow: var(--shadow-md); border: 1px solid var(--glass-border);
  display: flex; flex-direction: column; gap: 12px;
}

.clg-test-user { display: flex; align-items: center; gap: 12px; }
.clg-test-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.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: 2px 8px; border-radius: 60px; text-transform: uppercase; }

/* --- Quiz & Dashboard UI --- */
.clg-quiz-card {
  text-align: center; padding: 20px;
}
.clg-quiz-opt {
  display: block; width: 100%; padding: 16px; margin-bottom: 15px;
  background: #f8fafc; border: 2px solid #edf2f7; border-radius: 16px;
  font-weight: 700; color: var(--secondary); cursor: pointer;
  transition: all 0.2s; text-align: left;
}
.clg-quiz-opt:hover { border-color: var(--primary); background: rgba(10, 191, 138, 0.05); }

.clg-dash-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px; margin-top: 20px;
}
.clg-dash-stat {
  background: var(--white); 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; }

.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-nav-active { color: var(--primary) !important; }

.clg-video-container {
  width: 100%; border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #000;
  position: relative; aspect-ratio: 16/9;
}
.clg-video-container video { width: 100%; height: 100%; object-fit: cover; }

.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.4); }
  70% { box-shadow: 0 0 0 15px rgba(10, 191, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 191, 138, 0); }
}
.clg-pulse { animation: pulse-primary 2s infinite; }
/* Branding Banner Estandarizado (Simetría Total) */
.clg-branding-banner-wrap {
    display: flex;
    justify-content: center;
    padding: 30px 20px 10px;
    width: 100%;
}
.clg-branding-banner {
    width: 100%;
    max-width: 295px; /* Ajustado a 295px para máxima precisión en PC */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,191,138,0.15));
    transition: transform 0.3s ease-out;
}
@media (max-width: 600px) {
    .clg-branding-banner {
        max-width: 90%;
    }
}
