/* ============================================
   ESTILOS GLOBALES: BARBERO PREMIUM
   Proyecto: Barbería de Excelencia
   ============================================ */

:root {
  --primary: #D4AF37;
  --primary-dark: #B5952F;
  --secondary: #FFFFFF;
  --accent: #D4C4A8;
  --bg: #111318;
  --white: #1E2530;
  --text-main: #FFFFFF;
  --text-muted: #8B9AAF;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 20px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 35px -5px rgba(0, 0, 0, 0.5);
  --glass: #111318;
  --glass-border: rgba(212, 175, 55, 0.15);
  --radius: 20px;
  --gold-gradient: linear-gradient(145deg, #D4AF37 0%, #C9A22E 30%, #DFC25A 50%, #C49B28 70%, #D4AF37 100%);
}

* { 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-color: var(--bg);
  background-image: linear-gradient(180deg, #1c222a 0%, var(--bg) 800px);
  background-repeat: no-repeat; 
  font-family: 'Montserrat', 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, #0d0f12, #14171A);
  border-radius: 0 0 40px 40px;
  padding: 60px 24px 80px;
  text-align: center; color: var(--white);
  box-shadow: var(--shadow-lg);
  margin-bottom: -30px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

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

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

.clg-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 196, 168, 0.3);
  box-shadow: var(--shadow-md);
}

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

/* Botón de Video Secundario */
.clg-btn-sec-video {
  display: inline-flex; justify-content: center; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #0a0c0f 0%, #2a2a2a 100%);
  color: #d4af37; border: 2px solid rgba(212,175,55,0.4); border-radius: 50px;
  padding: 14px 22px; font-family: inherit; font-weight: 800;
  cursor: pointer; box-shadow: 0 8px 24px rgba(212,175,55,0.1);
  width: 100%; text-decoration: none;
  animation: clg-video-breathe 4s infinite ease-in-out;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease !important;
}
@media (min-width: 1024px) {
  .clg-btn-sec-video { width: auto; }
}
@keyframes clg-video-breathe {
  0%, 100% { box-shadow: 0 4px 12px rgba(212,175,55,0.05); border-color: rgba(212,175,55,0.2); }
  50% { box-shadow: 0 8px 20px rgba(212,175,55,0.25); border-color: rgba(212,175,55,0.4); }
}

.clg-btn-primary {
  background: var(--gold-gradient);
  color: #1a1a1a; border: none; border-radius: 16px;
  padding: 18px; font-size: 17px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: flex;
  justify-content: center; align-items: center; width: 100%;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(212,175,55,0.25);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.clg-btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-150%) skewX(-25deg);
  animation: clg-shine-sweep 6s infinite ease-in-out;
  pointer-events: none;
}
@keyframes clg-shine-sweep {
  0% { transform: translateX(-150%) skewX(-25deg); }
  20%, 100% { transform: translateX(250%) skewX(-25deg); }
}
.clg-btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(212,175,55,0.35);
}
.clg-btn-primary:active {
  transform: scale(0.97);
}

/* Modales Premium */
.clg-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  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: 600; color: var(--secondary); }
.clg-plan-amount { font-size: 44px; font-weight: 600; color: var(--primary); }
.clg-plan-sub { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.clg-plan-step {
  display: flex; gap: 15px; padding: 15px; margin-bottom: 10px;
  background: #252b31; border-radius: 20px; border: 1px solid #2d343b;
}
.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: 600; flex-shrink: 0;
}
.clg-plan-step-title { font-weight: 600; 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: 600; 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: 500; 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: #0D0F14;
  border-radius: 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 12px 10px 25px; z-index: 10000;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.clg-nav-btn { 
    display: flex; flex-direction: column; align-items: center; 
    color: #6B7A8D; text-decoration: none; font-size: 10px; font-weight: 600; 
    flex: 1; transition: 0.3s;
}
.clg-nav-btn.clg-nav-active { color: var(--primary); }
.clg-nav-btn.clg-nav-active .clg-nav-icon {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
}
.clg-nav-btn.clg-nav-active span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.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 rgba(255,255,255,0.05); }
.clg-row:last-child { border: none; }
.clg-row .label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.clg-row .value { font-weight: 600; 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 {
  overflow: hidden;
  padding: 20px 0;
  /* Break out de los márgenes de sección para llegar al borde de pantalla */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

@keyframes testimonios-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.clg-testimonios-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 4px 0 8px;
  animation: testimonios-marquee 38s linear infinite;
  will-change: transform;
}

.clg-testimonios-track.paused {
  animation-play-state: paused;
}

.clg-testimonial-card {
  min-width: 280px; flex: 0 0 280px;
  background: #1E2530; border-radius: 18px; padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); border: 1px solid rgba(212,175,55,0.12);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: default; user-select: none;
}
.clg-testimonios-track.paused .clg-testimonial-card:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(212,175,55,0.1);
}

.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 #D4AF37; }
.clg-test-name { font-weight: 600; font-size: 14px; color: #FFFFFF; }
.clg-test-rank { font-size: 10px; font-weight: 700; background: rgba(212,175,55,0.15); color: #D4AF37; padding: 2px 8px; border-radius: 60px; text-transform: uppercase; letter-spacing: 1.5px; }

/* --- Quiz & Dashboard UI --- */
.clg-quiz-card {
  text-align: center; padding: 20px;
}
.clg-quiz-opt {
  display: block; width: 100%; padding: 16px; margin-bottom: 15px;
  background: #252b31; border: 2px solid #2d343b; border-radius: 16px;
  font-weight: 500; 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: 600; color: var(--primary); }
.clg-dash-stat-lbl { font-size: 10px; font-weight: 500; 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-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(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 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%;
    }
}
/* ============================================
   RESPONSIVE DUAL ARCHITECTURE: MOBILE VS DESKTOP
   ============================================ */

/* Top Navigation (Hidden by default on mobile) */
.clg-top-nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  /* On Desktop, hide bottom nav */
  .clg-bottom-nav {
    display: none !important;
  }
  
  /* Reset container excessive padding meant for mobile nav */
  .clg-container {
    padding-bottom: 40px !important;
  }
  
  /* Top Nav Desktop Styles */
  .clg-top-nav-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0D0F14;
    padding: 16px 40px;
    /* border-bottom: 1px solid rgba(212, 175, 55, 0.2); */
    position: sticky;
    top: 0;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }
  
  .clg-top-nav-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFFFFF;
    text-decoration: none;
  }
  .clg-top-nav-logo span {
    color: var(--primary);
  }
  
  .clg-top-nav-links {
    display: flex;
    gap: 32px;
  }
  
  .clg-top-nav-link {
    color: #6B7A8D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .clg-top-nav-link:hover {
    color: #FFFFFF;
  }
  
  .clg-top-nav-link.active {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
  }
  
  .clg-top-nav-cta {
    background: var(--gold-gradient);
    color: #111318;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212,175,55,0.2);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .clg-top-nav-cta:hover {
    transform: scale(1.03);
  }
}

/* Animación global para etiquetas de botón y elementos interactivos */
button, 
a.clg-btn-primary,
a.clg-top-nav-cta,
.lg-btn,
.lbtn-wa,
.lbtn-act,
.lqb,
.lcls,
.ltts,
.clg-plan-cta {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease !important;
}

button:hover, 
a.clg-btn-primary:hover,
a.clg-top-nav-cta:hover,
.clg-btn-sec-video:hover,
.lg-btn:hover,
.lbtn-wa:hover,
.lbtn-act:hover,
.lqb:hover,
.lcls:hover,
.ltts:hover,
.clg-plan-cta:hover {
  transform: scale(1.03) !important;
}

button:active,
a.clg-btn-primary:active,
a.clg-top-nav-cta:active,
.clg-btn-sec-video:active,
.lg-btn:active,
.clg-plan-cta:active {
  transform: scale(0.97) !important;
}

/* --- Layout de Ubicación (Desktop) --- */
.clg-location-section { max-width: 1100px; margin: 0 auto; }
.clg-location-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.clg-location-box { background:#252A35; border-radius:20px; padding:24px; border:1px solid rgba(212,175,55,0.12); margin: 0 auto; width: 100%; max-width: 480px; }
.clg-location-art { display: none; }

@media (min-width: 1024px) {
  .clg-location-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .clg-location-box { margin: 0; max-width: 100%; }
  .clg-location-art {
    display: flex; justify-content: center; align-items: center;
    background-color: #111318;
    background-image: 
      radial-gradient(circle at 50% 50%, rgba(212,175,55,0.08) 0%, transparent 60%),
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    border: 1px solid rgba(212,175,55,0.15); border-radius: 24px;
    height: 100%; min-height: 300px; position: relative; overflow: hidden;
  }
  .clg-art-inner {
    position: relative; display: flex; align-items: center; justify-content: center;
  }
  .clg-art-inner::before {
    content: ''; position: absolute;
    width: 60px; height: 60px;
    background: rgba(212,175,55,0.3); border-radius: 50%;
    animation: clg-map-pulse 2.5s infinite ease-out;
  }
  .clg-art-inner i { 
    font-size: 60px; color: #D4AF37; 
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
    position: relative; z-index: 2;
  }
}
@keyframes clg-map-pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* ─── Sello / Footer Unificado (servicios · estilos · vip) ─── */
.section-divider {
  display: flex; align-items: center; gap: 14px;
  padding: 32px 20px 0; max-width: 540px; margin: 0 auto;
}
@media (min-width: 1024px) {
  .section-divider { padding: 40px 80px 0; max-width: none; }
}
.section-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent);
}
.section-divider-icon {
  color: rgba(212,175,55,0.55); font-size: 13px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Fade-in para imágenes (elimina efecto de carga anticuado) ── */
.img-fade { opacity: 0; transition: opacity 0.4s ease; }
.img-fade.img-loaded { opacity: 1; }

/* ── Ripple dorado al tocar ── */
.clg-ripple {
  position: fixed;
  border-radius: 50%;
  width: 14px; height: 14px;
  background: transparent;
  border: 1.5px solid rgba(212,175,55,0.75);
  transform: scale(0);
  pointer-events: none;
  z-index: 999998;
  animation: clg-ripple-anim 0.6s ease-out forwards;
}
@keyframes clg-ripple-anim {
  0%   { transform: scale(0);  opacity: 0.9; }
  100% { transform: scale(5);  opacity: 0; }
}
