/* ==========================================================================
   CUÁNTICO ACADEMY - ESTILOS CORPORATIVOS & ALTA BARBERÍA
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-main: #090a0f;
  --bg-card: rgba(18, 20, 29, 0.75);
  --bg-card-hover: rgba(26, 29, 43, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.22);
  --accent-gold: #e5b352;
  --accent-gold-glow: rgba(229, 179, 82, 0.25);
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.25);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(229, 179, 82, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(0, 242, 254, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 5.5rem;
  }
  body {
    padding-bottom: 0;
  }
}

/* Header Navbar Links Normalization */
header nav a,
header nav a:visited,
header nav a:focus,
header nav a:active {
  text-decoration: none;
  outline: none !important;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #222738;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography Helpers - Alta Barbería de Precisión */
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.028em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.text-gold-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #fde047 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism & Panels */
.glass-panel {
  background: rgba(14, 17, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.glass-card {
  background: rgba(16, 20, 31, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(229, 179, 82, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(229, 179, 82, 0.12);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #e5b352 0%, #f59e0b 100%);
  color: #050507;
  font-weight: 700;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
  box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes pulseSlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.08); }
}

.animate-pulse-slow {
  animation: pulseSlow 7s infinite ease-in-out;
}

/* AI Chat Bubbles & Streaming */
.ai-bubble {
  background: rgba(18, 22, 36, 0.92);
  border-radius: 18px 18px 18px 4px;
}

.user-bubble {
  background: linear-gradient(135deg, rgba(229, 179, 82, 0.2) 0%, rgba(217, 119, 6, 0.25) 100%);
  border-radius: 18px 18px 4px 18px;
}

.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background-color: var(--accent-gold);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.followup-chip:hover {
  background: rgba(229, 179, 82, 0.15);
  border-color: rgba(229, 179, 82, 0.4);
  color: #fef08a;
  transform: translateY(-1px);
}

/* Active Filter Pill */
.filter-btn.active {
  background: linear-gradient(135deg, #e5b352 0%, #f59e0b 100%);
  color: #050507;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Before / After Slider Comparison Card */
.comparison-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

/* Social Proof Floating Toast */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
}

.toast-enter {
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Quiz Option Hover & Active */
.quiz-opt-btn {
  transition: all 0.2s ease;
}
.quiz-opt-btn:hover {
  border-color: rgba(229, 179, 82, 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}
.quiz-opt-btn.correct {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #a7f3d0 !important;
}
.quiz-opt-btn.incorrect {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}

/* Payment Gateway Styles */
.payment-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  transition: all 0.2s ease;
}

.payment-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.payment-tab.active {
  background: linear-gradient(135deg, rgba(229, 179, 82, 0.18) 0%, rgba(245, 158, 11, 0.08) 100%);
  border-color: rgba(229, 179, 82, 0.8);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(229, 179, 82, 0.15);
}

.btn-paypal {
  background: linear-gradient(135deg, #ffc439 0%, #f6b528 100%);
  color: #003087;
  font-weight: 800;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -5px rgba(246, 181, 40, 0.4);
}

.btn-paypal:hover {
  background: linear-gradient(135deg, #ffd15c 0%, #f4aa15 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(246, 181, 40, 0.6);
}

.btn-revolut {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

.btn-revolut:hover {
  background: #111111;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(255, 255, 255, 0.15);
}

.btn-bizum {
  background: linear-gradient(135deg, #00c1d4 0%, #0098a6 100%);
  color: #ffffff;
  font-weight: 800;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 193, 212, 0.35);
}

.btn-bizum:hover {
  background: linear-gradient(135deg, #1fe5f9 0%, #008794 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 193, 212, 0.55);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (4 ITEMS COMPACT & SAFE AREA)
   ========================================================================== */
.bottom-nav-bar {
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
  transform: scale(0.94);
}

/* Floating WhatsApp position with safe-area */
.floating-whatsapp {
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  right: 1rem;
}

@media (min-width: 768px) {
  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Method Pillars Numbering */
.pillar-number {
  font-family: var(--font-code);
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

/* Accessible Tap Targets */
.tap-target-min {
  min-height: 44px;
  min-width: 44px;
}

/* ==========================================================================
   INTERACTIVE FEATURES: RANGE SLIDERS, TOASTS & FAVORITES
   ========================================================================== */
/* Range Slider Custom Styling */
input[type="range"].custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  outline: none;
  transition: background 0.2s;
}

input[type="range"].custom-slider:hover {
  background: rgba(255, 255, 255, 0.2);
}

input[type="range"].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5b352, #f59e0b);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(229, 179, 82, 0.5);
  border: 2px solid #000;
  transition: transform 0.15s ease;
}

input[type="range"].custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"].custom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5b352, #f59e0b);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(229, 179, 82, 0.5);
  border: 2px solid #000;
  transition: transform 0.15s ease;
}

/* Course Favorite Button */
.course-fav-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-fav-btn:hover {
  transform: scale(1.1);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
}

.course-fav-btn.is-favorite {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.5);
}

/* Video Playback Speed Chips */
.speed-chip {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  transition: all 0.2s;
}

.speed-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.speed-chip.active {
  background: rgba(229, 179, 82, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Global Interactive Real Toast Notification */
#real-toast {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

#real-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   LABORATORIO DE VISAGISMO 3D INTERACTIVO
   ========================================================================== */

.vis-view-tab {
  cursor: pointer;
  user-select: none;
}

.vis-view-tab.active {
  background: rgba(229, 179, 82, 0.2) !important;
  color: #e5b352 !important;
  border-color: rgba(229, 179, 82, 0.5) !important;
  box-shadow: 0 0 12px rgba(229, 179, 82, 0.2);
}

.vis-guide-chip {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.vis-guide-chip.active-guide {
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.vis-preset-btn {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vis-preset-btn:hover {
  transform: translateY(-1px);
}

.vis-preset-btn:active {
  transform: scale(0.96);
}

/* SVG Blueprint & Laser Glow Animations */
@keyframes laserPulse {
  0%, 100% {
    stroke-opacity: 0.9;
    filter: drop-shadow(0 0 3px currentColor);
  }
  50% {
    stroke-opacity: 0.5;
    filter: drop-shadow(0 0 1px currentColor);
  }
}

.laser-guide-line {
  animation: laserPulse 2.5s ease-in-out infinite;
}

@keyframes blueprintScan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(400%);
  }
}

.blueprint-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  pointer-events: none;
  animation: blueprintScan 6s linear infinite;
}

/* Fórmulas Matemáticas Reales de Visagismo */
.formula-math-display {
  background: radial-gradient(circle at 50% 0%, rgba(14, 20, 36, 0.95), rgba(7, 9, 16, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.05), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.math-equation-badge {
  font-family: var(--font-code);
  background: rgba(0, 0, 0, 0.65);
  border: 1px dashed rgba(229, 179, 82, 0.4);
  color: #e5b352;
  text-shadow: 0 0 8px rgba(229, 179, 82, 0.35);
  letter-spacing: -0.01em;
}

.clipper-step-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.clipper-step-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 179, 82, 0.15);
}

/* Textura de fondo tipo plano técnico (blueprint grid) */
.blueprint-grid-overlay {
  background-image:
    linear-gradient(rgba(229, 179, 82, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 179, 82, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 100%);
}


