/* ==========================================================================
   Wake Up Servicios - Plan de Arranque Design System
   ========================================================================== */

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

:root {
  --primary: #00b4b6;
  --primary-hover: #009395;
  --primary-light: rgba(0, 180, 182, 0.12);
  --primary-glow: rgba(0, 180, 182, 0.4);
  
  --secondary: #1b324f;
  --secondary-light: #2c476d;
  --accent: #ffb703;
  --accent-star: #ffb703;
  
  --bg-dark: #090e17;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-teal: rgba(0, 180, 182, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-teal: 0 10px 30px -10px rgba(0, 180, 182, 0.3);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Translucent Logo Watermark */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 900px;
  height: 90vh;
  max-height: 900px;
  background-image: url('wake up logo.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.04;
  filter: blur(2px) grayscale(20%);
  pointer-events: none;
  z-index: 0;
}

/* App Container */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(9, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.nav-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  filter: drop-shadow(0 2px 8px rgba(0, 180, 182, 0.4));
  transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

.nav-title-group h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-title-group p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.btn-nav-action,
.btn-registro,
.btn-seguimiento,
.btn-admin {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0.6rem 1.25rem !important;
  height: 40px !important;
  background: linear-gradient(135deg, #1b324f 0%, #1e3a5f 100%) !important;
  border: 1px solid rgba(0, 180, 182, 0.4) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.btn-nav-action:hover,
.btn-registro:hover,
.btn-seguimiento:hover,
.btn-admin:hover {
  background: linear-gradient(135deg, #00b4b6 0%, #00898b 100%) !important;
  border-color: #00b4b6 !important;
  box-shadow: 0 8px 20px rgba(0, 180, 182, 0.4) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.btn-nav-action svg,
.btn-registro svg,
.btn-seguimiento svg,
.btn-admin svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  stroke: #ffffff !important;
  fill: none !important;
}

.btn-nav-action span,
.btn-registro span,
.btn-seguimiento span,
.btn-admin span {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  display: inline-block !important;
}

/* Main Content Area */
main {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

/* Sections View Switching */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
  display: block;
}

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

/* ==========================================================================
   1. LANDING WELCOME SCREEN
   ========================================================================== */
.welcome-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.logo-badge {
  position: relative;
  margin-bottom: 2rem;
}

.welcome-logo {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 50px rgba(0, 180, 182, 0.45);
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 30px rgba(0, 180, 182, 0.2); transform: scale(1); }
  100% { box-shadow: 0 0 60px rgba(0, 180, 182, 0.45); transform: scale(1.03); }
}

.welcome-hero h2 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 750px;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 3rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-fast);
}

.value-card:hover {
  border-color: var(--glass-border-teal);
  transform: translateY(-4px);
}

.value-card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.value-card h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 1.1rem 2.8rem;
  background: linear-gradient(135deg, var(--primary) 0%, #008c8e 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 180, 182, 0.4);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-cta-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 180, 182, 0.55);
}

.btn-cta-primary svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.btn-cta-primary:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   2. QUESTIONNAIRE FORM
   ========================================================================== */
.questionnaire-container {
  max-width: 750px;
  margin: 1rem auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border-teal);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-main);
  position: relative;
}

.q-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.q-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--primary), #4dd0e1);
  transition: width 0.4s ease;
}

.q-step {
  display: none;
}

.q-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.q-step-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-req {
  font-size: 0.75rem;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

/* Mandatory Error Validation Styles */
.q-step.has-error .options-grid {
  border: 2px solid #ef4444 !important;
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(239, 68, 68, 0.08) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3) !important;
  animation: shakeError 0.4s ease forwards !important;
}

.q-step.has-error .q-textarea {
  border: 2px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3) !important;
  animation: shakeError 0.4s ease forwards !important;
}

.q-step.has-error .q-step-title {
  color: #f87171 !important;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.q-step-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.options-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-card {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
}

.option-card:hover {
  border-color: rgba(0, 180, 182, 0.5);
  background: rgba(0, 180, 182, 0.05);
  transform: translateX(4px);
}

.option-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 180, 182, 0.2);
}

.option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.option-card.selected .option-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.option-card.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.q-textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: var(--transition-fast);
  margin-bottom: 1.5rem;
}

.q-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 180, 182, 0.3);
}

.q-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-secondary {
  padding: 0.75rem 1.6rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  color: #fff;
  border-color: #fff;
}

.btn-primary-sm {
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 180, 182, 0.3);
}

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

/* ==========================================================================
   3. PLAN SELECTION HUB (3 SPHERES)
   ========================================================================== */
.hub-header {
  text-align: center;
  margin-bottom: 3rem;
}

.hub-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.hub-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.recommendation-banner {
  margin: 1.5rem auto 2.5rem auto;
  max-width: 750px;
  background: linear-gradient(135deg, rgba(0, 180, 182, 0.15) 0%, rgba(27, 50, 79, 0.4) 100%);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.rec-icon {
  font-size: 2rem;
  background: var(--primary-light);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.rec-text h4 {
  color: var(--primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rec-text p {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.spheres-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.sphere-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.sphere-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sphere-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 180, 182, 0.25);
}

.sphere-card:hover::before {
  opacity: 1;
}

.sphere-card.recommended {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0, 180, 182, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.badge-recommended {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 3D Orb Effect */
.sphere-orb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.6),
              inset 10px 10px 25px rgba(255, 255, 255, 0.3),
              0 15px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease;
}

.sphere-card:hover .sphere-orb {
  transform: scale(1.1) rotate(5deg);
}

.orb-cartera {
  background: radial-gradient(circle at 35% 35%, #4dd0e1, #00b4b6 50%, #0f3747 100%);
}

.orb-red {
  background: radial-gradient(circle at 35% 35%, #818cf8, #4f46e5 50%, #1e1b4b 100%);
}

.orb-hibrido {
  background: radial-gradient(circle at 35% 35%, #fbbf24, #f59e0b 50%, #78350f 100%);
}

.sphere-orb svg {
  width: 54px;
  height: 54px;
  color: #fff;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.sphere-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.sphere-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.btn-sphere-select {
  margin-top: auto;
  padding: 0.7rem 1.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.sphere-card:hover .btn-sphere-select {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 180, 182, 0.4);
}

/* ==========================================================================
   4. PLAN DETAIL VIEW
   ========================================================================== */
.plan-detail-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-teal);
}

.plan-title-area h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Frase Destacada Remarcada, Impactante y con Zumbido Cada 3 Segundos
   ========================================================================== */
.plan-quote-box {
  position: relative;
  margin-bottom: 2.25rem;
  padding: 1.6rem 2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(27, 50, 79, 0.9) 45%, rgba(0, 180, 182, 0.18) 100%);
  border: 2px solid rgba(0, 180, 182, 0.5);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Animación Zumbido / Vibration & Glow Flash cada 3 segundos */
.plan-quote-box.zumbido-active {
  animation: zumbidoEffect 3s infinite ease-in-out;
}

@keyframes zumbidoEffect {
  0%, 82%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 180, 182, 0.25);
    border-color: rgba(0, 180, 182, 0.5);
  }
  
  /* El Zumbido de 3 segundos (Duración ~0.4s en cada ciclo de 3s: de 84% a 96%) */
  84% {
    transform: translate3d(-3px, 2px, 0) scale(1.008) rotate(-0.4deg);
    box-shadow: 0 12px 35px rgba(0, 242, 254, 0.6), 0 0 30px rgba(255, 183, 3, 0.6), inset 0 0 20px rgba(0, 242, 254, 0.3);
    border-color: #00f2fe;
  }
  87% {
    transform: translate3d(3px, -2px, 0) scale(1.008) rotate(0.4deg);
    box-shadow: 0 12px 35px rgba(255, 183, 3, 0.7), 0 0 35px rgba(0, 242, 254, 0.7), inset 0 0 25px rgba(255, 183, 3, 0.3);
    border-color: var(--accent);
  }
  90% {
    transform: translate3d(-2px, -1px, 0) scale(1.005) rotate(-0.2deg);
    box-shadow: 0 12px 35px rgba(0, 242, 254, 0.6), 0 0 30px rgba(255, 183, 3, 0.5);
    border-color: #00f2fe;
  }
  93% {
    transform: translate3d(2px, 1px, 0) scale(1.003) rotate(0.2deg);
    box-shadow: 0 10px 30px rgba(0, 180, 182, 0.5);
    border-color: rgba(0, 180, 182, 0.7);
  }
}

/* Header badge del cuadro */
.quote-badge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(255, 183, 3, 0.3);
}

.quote-badge-icon {
  font-size: 1.1rem;
  animation: pulseBolt 1.5s infinite alternate;
}

@keyframes pulseBolt {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 8px var(--accent)); }
}

.zumbido-indicator {
  margin-left: auto;
  font-size: 1rem;
  animation: indicatorShake 3s infinite ease-in-out;
  cursor: pointer;
}

@keyframes indicatorShake {
  0%, 82%, 100% { transform: scale(1); }
  85%, 93% { transform: scale(1.3) rotate(15deg); }
  89% { transform: scale(1.3) rotate(-15deg); }
}

/* Contenido de texto */
.quote-body-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quote-intro-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0;
}

.quote-intro-text strong {
  color: #fff;
}

.highlight-cyan {
  color: #00f2fe;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

/* Banner Central de Gran Impacto */
.quote-impact-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(255, 183, 3, 0.15) 0%, rgba(255, 100, 0, 0.2) 50%, rgba(255, 183, 3, 0.15) 100%);
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  margin: 0.25rem 0;
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.15);
}

.quote-impact-banner .fire-icon {
  font-size: 1.5rem;
  animation: fireGlow 1.2s infinite alternate;
}

@keyframes fireGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #ff4500); }
  100% { transform: scale(1.2); filter: drop-shadow(0 0 10px #ff8c00); }
}

.impact-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.5;
}

.impact-text strong {
  color: #fef08a;
  letter-spacing: 0.5px;
}

.highlight-gold-glow {
  background: linear-gradient(135deg, #ffb703 0%, #ffe600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  filter: drop-shadow(0 0 8px rgba(255, 183, 3, 0.7));
}

.quote-closing-text {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  color: #fff;
  margin: 0;
  line-height: 1.5;
}

.bolt-icon {
  color: var(--primary);
  font-size: 1.2rem;
  display: inline-block;
  vertical-align: middle;
}

.plan-title-area p {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-change-plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-change-plan:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Timeline Styles */
.timeline-section {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-teal);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Horizontal Timeline Desktop */
.timeline-wrapper {
  position: relative;
  padding: 2rem 1rem 1rem 1rem;
}

.timeline-line {
  position: absolute;
  top: 45px;
  left: 60px;
  right: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  z-index: 1;
}

.timeline-line-progress {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #4dd0e1, var(--accent));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.timeline-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 140px;
  cursor: pointer;
}

.node-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e293b;
  border: 3px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.timeline-node.completed .node-dot {
  background: var(--primary);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.node-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.node-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Champion Trophy Success Node */
.timeline-node.node-star .node-dot {
  width: 56px;
  height: 56px;
  margin-top: -7px;
  background: linear-gradient(135deg, #ffb703 0%, #d97706 100%);
  border: 3px solid #fef08a;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 0 28px rgba(255, 183, 3, 0.75);
  animation: trophyPulse 2.2s infinite alternate ease-in-out;
  cursor: pointer;
}

.timeline-node.node-star:hover .node-dot {
  transform: scale(1.15);
  box-shadow: 0 0 40px rgba(255, 183, 3, 0.95);
}

@keyframes trophyPulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 183, 3, 0.5); }
  100% { transform: scale(1.12); box-shadow: 0 0 35px rgba(255, 183, 3, 0.95); }
}

@keyframes trophyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.node-star .node-label {
  color: var(--accent-star);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.trophy-hint-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: #ffb703;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.45);
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 2px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.timeline-node.node-star:hover .trophy-hint-badge {
  background: #ffb703;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.7);
}

/* Daily Activity Counter Panel */
.daily-tracker-panel {
  background: linear-gradient(135deg, rgba(27, 50, 79, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--glass-border-teal);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.daily-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.daily-tracker-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.daily-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.daily-item-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.daily-item-info.clickable {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin: -6px -8px;
  position: relative;
}

.daily-item-info.clickable:hover {
  background: rgba(0, 180, 182, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 180, 182, 0.15);
}

.daily-item-info.clickable:hover .daily-item-title {
  color: var(--primary);
}

.daily-item-icon {
  font-size: 1.4rem;
}

.daily-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.daily-target-badge {
  font-size: 0.76rem;
  color: var(--primary);
  background: rgba(0, 180, 182, 0.12);
  border: 1px solid rgba(0, 180, 182, 0.3);
  padding: 6px 10px;
  border-radius: 10px;
  margin-top: 4px;
  display: block;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
  line-height: 1.35;
}

.daily-target-badge strong {
  display: block;
  margin-top: 2px;
}

.daily-item-card.daily-target-met {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25) !important;
}

.daily-item-card.daily-target-met .daily-target-badge {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.counter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid var(--glass-border);
}

.btn-counter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-counter:hover {
  background: var(--primary);
}

.counter-val {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  min-width: 30px;
  text-align: center;
}

/* Content Blocks Container */
.content-block {
  margin-bottom: 3rem;
}

.block-header-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--glass-border);
}

.block-badge-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 180, 182, 0.3);
}

.block-header-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

/* Training Subtabs Toggle Buttons */
.btn-subtab {
  padding: 0.65rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-subtab:hover {
  color: #fff;
  border-color: rgba(0, 180, 182, 0.4);
  background: rgba(0, 180, 182, 0.1);
}

.btn-subtab.active {
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 180, 182, 0.35);
  font-weight: 700;
}

/* Block 1: Formaciones Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.video-card:hover {
  border-color: var(--glass-border-teal);
  transform: translateY(-4px);
}

.video-thumb-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.video-thumb-wrap iframe {
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  border: none;
}

.video-placeholder-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.play-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 180, 182, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 20px rgba(0, 180, 182, 0.5);
  transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
  transform: scale(1.15);
}

.video-info {
  padding: 1.1rem;
}

.video-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.video-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.video-platform-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-vimeo {
  background: rgba(26, 183, 234, 0.85);
  color: #fff;
  box-shadow: 0 0 10px rgba(26, 183, 234, 0.4);
}

.badge-youtube {
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.video-card-actions {
  margin-top: 0.85rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-video-play {
  flex: 1;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-video-play:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-video-external {
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-vimeo {
  background: rgba(26, 183, 234, 0.12);
  color: #1ab7ea;
  border: 1px solid rgba(26, 183, 234, 0.35);
}

.btn-vimeo:hover {
  background: #1ab7ea;
  color: #fff;
  box-shadow: 0 0 12px rgba(26, 183, 234, 0.4);
}

.btn-youtube {
  background: rgba(255, 0, 0, 0.12);
  color: #ff4d4d;
  border: 1px solid rgba(255, 0, 0, 0.35);
}

.btn-youtube:hover {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
}

.pdf-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.pdf-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  transition: var(--transition-fast);
  height: 100%;
}

.pdf-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pdf-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1rem;
}

.pdf-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdf-details {
  flex: 1;
  min-width: 0;
}

.pdf-details h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.35;
  word-break: break-word;
}

.pdf-details p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

.pdf-card-actions {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.btn-pdf-action {
  flex: 1;
  min-width: 120px;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition-fast);
  box-sizing: border-box;
  text-align: center;
}

.btn-pdf-action:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Block 2: A Golpe de Click - 3D Flip Cards */
.click-category-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: #fff;
}

.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* 3D Flip Container */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 310px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.flip-card-front {
  background: var(--bg-card);
  border: 1.5px solid var(--glass-border-teal);
  box-shadow: var(--shadow-main);
}

.flip-card-front h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.flip-card-front p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.click-hint {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.flip-card-back {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid var(--primary);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-teal);
}

.copy-text-body {
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.45;
  overflow-y: auto;
  max-height: 160px;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: inherit;
}

.card-back-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.2rem;
  background: var(--primary);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background: var(--primary-hover);
  transform: scale(1.04);
}

.btn-flip-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-flip-back:hover {
  color: #fff;
}

/* Block 3: Tareas y Objetivos Table */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-main);
}

.tasks-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tasks-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--glass-border);
}

.tasks-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  color: var(--text-main);
}

.tasks-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.task-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-formacion { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tag-click { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.tag-accion { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.status-check-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.status-check-btn.done {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--success);
  color: #34d399;
}

.status-check-btn.done svg {
  display: block;
}

/* Custom Checkbox & Stage Badge Styles for Block 3 Table */
.custom-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.custom-checkbox-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 2px solid var(--glass-border-teal);
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: transparent;
  font-weight: 800;
  font-size: 0.95rem;
}

.custom-checkbox-wrap:hover .custom-checkbox-box {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 180, 182, 0.45);
  transform: scale(1.05);
}

.custom-checkbox-wrap.checked .custom-checkbox-box {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.55);
}

.stage-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--glass-border);
  white-space: nowrap;
}

.task-stage-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.task-stage-tab {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.task-stage-tab.active,
.task-stage-tab:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 180, 182, 0.25);
}

/* ==========================================================================
   5. SEGUIMIENTO MODAL / LOGIN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: var(--bg-dark);
  border: 1.5px solid var(--glass-border-teal);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.2rem 2rem;
  position: relative;
  box-shadow: var(--shadow-main);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.btn-close-modal {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 100;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 180, 182, 0.3);
}

.modal-profile-dashboard {
  display: none;
}

.modal-profile-dashboard.active {
  display: block;
}

.profile-card-header {
  background: var(--primary-light);
  border: 1px solid var(--glass-border-teal);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-info h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-info p {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.progress-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.progress-stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.stat-val {
  font-weight: 800;
  color: var(--primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--primary);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease forwards;
}

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

/* ==========================================================================
   MOBILE & RESPONSIVE LAYOUT (VERTICAL TIMELINE FOR MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.65rem 0.85rem;
  }
  
  .nav-brand {
    gap: 8px;
  }

  .nav-logo {
    width: 36px;
    height: 36px;
    padding: 2px;
  }

  .nav-title-group h1 {
    font-size: 1rem;
  }

  .nav-title-group p {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .btn-nav-action {
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    height: 34px;
    gap: 5px;
  }

  .btn-nav-action svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
  }

  .welcome-hero {
    padding: 1.5rem 0.5rem;
  }

  .welcome-logo {
    width: 160px;
    height: 160px;
  }

  .welcome-hero h2 {
    font-size: 1.85rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .btn-cta-primary {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
  }

  .modal-box-large {
    width: 96% !important;
    padding: 1.25rem 0.85rem !important;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .kpi-card {
    padding: 0.85rem;
    gap: 8px;
  }

  .kpi-icon {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    border-radius: 10px;
  }

  .kpi-num {
    font-size: 1.25rem;
  }

  .kpi-label {
    font-size: 0.72rem;
  }

  .admin-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .admin-filter-group {
    justify-content: space-between;
  }

  /* Vertical Timeline on Mobile */
  .timeline-wrapper {
    padding: 1rem 0;
  }

  .timeline-line {
    top: 30px;
    bottom: 30px;
    left: 24px;
    right: auto;
    width: 4px;
    height: auto;
  }

  .timeline-line-progress {
    width: 100% !important;
    height: 0%;
    transition: height 0.5s ease;
  }

  .timeline-nodes {
    flex-direction: column;
    gap: 1.75rem;
    align-items: flex-start;
    padding-left: 5px;
  }

  .timeline-node {
    flex-direction: row;
    align-items: center;
    text-align: left;
    max-width: 100%;
    gap: 16px;
  }

  .node-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .timeline-node.node-star .node-dot {
    margin-top: 0;
  }
}

/* ==========================================================================
   NAVBAR ACTIONS
   ========================================================================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   USER CHECKLIST IN SEGUIMIENTO MODAL
   ========================================================================== */
.user-checklist-section {
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border-teal);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
}

.checklist-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
}

.checklist-header h4 {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}

.checklist-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.user-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.user-checklist-list::-webkit-scrollbar {
  width: 5px;
}

.user-checklist-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.checklist-item:hover {
  background: rgba(0, 180, 182, 0.08);
  border-color: rgba(0, 180, 182, 0.4);
}

.checklist-item.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.checklist-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
  background: rgba(0, 0, 0, 0.2);
}

.checklist-item.completed .checklist-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.checklist-item-title {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.3;
}

.checklist-item.completed .checklist-item-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   ADMINISTRATOR PANEL MODAL & DASHBOARD
   ========================================================================== */
.modal-box-large {
  max-width: 1100px !important;
  width: 95% !important;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}

.admin-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.25rem;
}

.admin-title-badge {
  display: inline-block;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: #ffb703;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.admin-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* KPI Metrics Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-border-teal);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-icon {
  font-size: 2rem;
  background: rgba(0, 180, 182, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Admin Controls Bar */
.admin-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.admin-search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.6;
}

.admin-search-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.admin-search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 180, 182, 0.3);
}

.admin-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-filter-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-filter-group select {
  padding: 0.75rem 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

/* Admin Table */
.admin-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.5);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--glass-border);
}

.admin-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(0, 180, 182, 0.05);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.user-name-box h5 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.user-name-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.badge-plan {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-plan.cartera {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-plan.red {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-plan.hibrido {
  background: rgba(0, 180, 182, 0.15);
  color: var(--primary);
  border: 1px solid var(--glass-border-teal);
}

.admin-progress-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.admin-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.admin-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 999px;
}

.btn-action-sm {
  padding: 6px 14px;
  background: rgba(0, 180, 182, 0.15);
  border: 1px solid var(--glass-border-teal);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-action-sm:hover {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 180, 182, 0.3);
}

/* User Detail Submodal */
.detail-checkpoint-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
}

.detail-checkpoint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.detail-checkpoint-row:hover {
  background: rgba(0, 180, 182, 0.08);
  border-color: var(--primary);
  transform: translateX(3px);
}

.detail-checkpoint-row.done {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.07);
}

.detail-checkpoint-row.done:hover {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.12);
}

.badge-status {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-status.done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.badge-status.pending {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.detail-checkpoint-row:hover .badge-status.pending {
  background: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.detail-checkpoint-row:hover .badge-status.done {
  background: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   MOBILE & TOUCH RESPONSIVE ENGINE (100% OPERATIONAL ON SMARTPHONES & TABLETS)
   ========================================================================== */

/* Touch Action & Prevent iOS Zoom */
button,
input,
select,
textarea,
.btn-nav-action,
.option-card,
.checkpoint-card,
.detail-checkpoint-row,
.badge-status,
.btn-action-sm,
.btn-close-modal {
  touch-action: manipulation !important;
}

@media (max-width: 768px) {
  /* Prevent iOS / Android Input Focus Zoom */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Navigation Bar Mobile Layout */
  .navbar {
    padding: 0.75rem 0.85rem !important;
    gap: 8px !important;
  }

  .nav-logo {
    height: 38px !important;
    width: 38px !important;
  }

  .nav-title-group h1 {
    font-size: 1.05rem !important;
  }

  .nav-title-group p {
    font-size: 0.68rem !important;
  }

  .nav-actions {
    gap: 4px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
  }

  .btn-nav-action,
  .btn-registro,
  .btn-seguimiento,
  .btn-admin {
    padding: 0.4rem 0.65rem !important;
    height: 34px !important;
    font-size: 0.76rem !important;
    gap: 4px !important;
  }

  .btn-nav-action span,
  .btn-registro span,
  .btn-seguimiento span,
  .btn-admin span {
    font-size: 0.76rem !important;
  }

  .btn-nav-action svg,
  .btn-registro svg,
  .btn-seguimiento svg,
  .btn-admin svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
  }

  /* Main Container & Margins */
  main {
    padding: 1rem 0.75rem 3rem 0.75rem !important;
  }

  .hero-card,
  .card-glass,
  .admin-panel-box,
  .question-container {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }

  .welcome-hero h2 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
  }

  .welcome-hero p {
    font-size: 0.95rem !important;
  }

  /* Grids to Single Column */
  .options-grid,
  .plans-grid,
  .kpi-grid,
  .activity-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  /* Admin Dashboard Mobile Adaptation */
  .admin-controls {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .admin-search-wrapper {
    min-width: 100% !important;
  }

  .admin-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 12px !important;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.85rem !important;
    white-space: nowrap !important;
  }

  /* Modals Touch Scroll Optimization */
  .modal-overlay {
    padding: 0.75rem !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .modal-box {
    max-height: 88vh !important;
    width: 100% !important;
    max-width: 540px !important;
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Checkpoints Detail Submodal Mobile */
  .detail-checkpoint-row {
    padding: 0.75rem 0.85rem !important;
    gap: 8px !important;
  }

  .detail-checkpoint-row strong {
    font-size: 0.85rem !important;
  }

  .badge-status {
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
  }

  /* Mobile Optimization for Formaciones and Tasks */
  .training-subtabs-bar {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .btn-subtab {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
  }

  .videos-grid,
  .pdf-list {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .video-card-actions,
  .pdf-card-actions {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .btn-video-play,
  .btn-video-external,
  .btn-pdf-action {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 0 !important;
    padding: 0.6rem 0.4rem !important;
    font-size: 0.78rem !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 14px !important;
    border: 1px solid var(--glass-border) !important;
  }

  .tasks-table th,
  .tasks-table td {
    padding: 0.75rem 0.65rem !important;
    font-size: 0.84rem !important;
  }

  .task-stage-tabs {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
  }

  .task-stage-tab {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 440px) {
  .nav-title-group p {
    display: none !important;
  }

  .btn-nav-action span,
  .btn-registro span,
  .btn-seguimiento span,
  .btn-admin span {
    font-size: 0.72rem !important;
  }

  .welcome-hero h2 {
    font-size: 1.35rem !important;
  }
}

/* Plan Quote Box (Frase Destacada Grande) */
.plan-quote-box {
  background: linear-gradient(135deg, rgba(27, 50, 79, 0.75) 0%, rgba(0, 180, 182, 0.22) 100%);
  border: 2px solid var(--primary);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.75rem;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 180, 182, 0.2);
}

.plan-quote-box p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.2px;
}

/* Weekly Summary Box & Recovery Warning Note */
.weekly-summary-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-border-teal);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.weekly-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 0.85rem;
  margin-bottom: 1.1rem;
}

.weekly-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  text-align: center;
}

.weekly-summary-card .w-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2px;
}

.weekly-warning-note {
  background: rgba(255, 183, 3, 0.1);
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: #fef08a;
  line-height: 1.45;
}

/* ==========================================================================
   Bloque 4: Calculadora de Ingresos para Cartera de Clientes
   ========================================================================== */
.duration-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.duration-badge strong {
  font-size: 0.78rem;
  color: #fff;
}

.duration-badge span {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.duration-badge.highlight-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.duration-badge.highlight-green span {
  color: #10b981;
  font-weight: 700;
}

.config-output-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border-teal);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  flex: 1;
}

.config-output-box .output-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.config-output-box .output-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
  margin-top: 2px;
}

.calc-table input[type="number"] {
  width: 70px;
  padding: 4px 6px;
  background: #0f172a;
  border: 1px solid var(--glass-border-teal);
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 0.9rem;
}

.calc-table select {
  padding: 4px 8px;
  background: #0f172a;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.82rem;
  max-width: 220px;
}

.calc-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-stat-card .stat-icon {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.calc-stat-card .stat-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calc-stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
}

.calc-stat-card .stat-value.text-green { color: #10b981; }
.calc-stat-card .stat-value.text-cyan { color: #00f2fe; }
.calc-stat-card .stat-value.text-gold { color: var(--accent-star); }

.calc-stat-card .stat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PANEL GENERAL DEL PLAN DE ARRANQUE - MENÚ DE ANCLAJES (ZUMBIDO EN CADENA)
   ========================================================================== */
.anchor-menu-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(11, 28, 44, 0.95) 100%);
  border: 1px solid rgba(0, 180, 182, 0.35);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.anchor-menu-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00b4b6 0%, #ffb703 50%, #00b4b6 100%);
}

.anchor-menu-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anchor-menu-title .anchor-menu-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 6px rgba(0, 180, 182, 0.5));
}

.anchor-menu-title span:nth-child(2) {
  background: linear-gradient(135deg, #ffffff 0%, #00b4b6 60%, #ffb703 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.anchor-menu-title .zumbido-indicator {
  margin-left: auto;
  font-size: 1.1rem;
  animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 8px #00b4b6); }
}

.anchor-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 1.1rem;
}

@media (max-width: 1100px) {
  .anchor-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .anchor-menu-grid {
    grid-template-columns: 1fr;
  }
}

.anchor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, rgba(27, 50, 79, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(0, 180, 182, 0.28);
  border-radius: 14px;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-body);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  min-height: 64px;
  text-decoration: none;
  outline: none;
  box-sizing: border-box;
  width: 100%;
}

.anchor-card:hover {
  background: linear-gradient(135deg, rgba(0, 180, 182, 0.25) 0%, rgba(27, 50, 79, 0.9) 100%);
  border-color: #00b4b6;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 180, 182, 0.35);
}

.anchor-card:hover .anchor-arrow {
  transform: translate(3px, 3px);
  color: #ffb703;
}

.anchor-card:hover .anchor-num {
  background: #00b4b6;
  color: #090e17;
  transform: scale(1.1);
}

.anchor-num {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: rgba(0, 180, 182, 0.18);
  border: 1.5px solid rgba(0, 180, 182, 0.5);
  color: #00b4b6;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.anchor-label {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f1f5f9;
  flex: 1;
  text-align: left;
}

.anchor-arrow {
  font-size: 0.95rem;
  color: #00b4b6;
  font-weight: 800;
  transition: all 0.25s ease;
}

/* FORMATO ZUMBIDO EN CADENA (CASCADE BUZZ SEQUENCE) */
@keyframes chainBuzz {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    border-color: rgba(0, 180, 182, 0.28);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  4% {
    transform: translate(-3px, -2px) scale(1.035);
    border-color: #00b4b6;
    box-shadow: 0 0 22px rgba(0, 180, 182, 0.7);
  }
  8% {
    transform: translate(3px, 2px) scale(1.035);
    border-color: #ffb703;
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.8);
  }
  12% {
    transform: translate(-2px, 3px) scale(1.025);
    border-color: #00b4b6;
    box-shadow: 0 0 20px rgba(0, 180, 182, 0.7);
  }
  16% {
    transform: translate(2px, -1px) scale(1.015);
    border-color: rgba(0, 180, 182, 0.6);
  }
  20%, 99% {
    transform: translate(0, 0) scale(1);
    border-color: rgba(0, 180, 182, 0.28);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
}

.chain-buzz-1 { animation: chainBuzz 5.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite 0.0s; }
.chain-buzz-2 { animation: chainBuzz 5.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite 0.8s; }
.chain-buzz-3 { animation: chainBuzz 5.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite 1.6s; }
.chain-buzz-4 { animation: chainBuzz 5.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite 2.4s; }
.chain-buzz-5 { animation: chainBuzz 5.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite 3.2s; }
.chain-buzz-6 { animation: chainBuzz 5.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite 4.0s; }
.chain-buzz-7 { animation: chainBuzz 5.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite 4.8s; }

/* FLASH HIGHLIGHT UPON ANCHOR NAV */
@keyframes sectionHighlightFlash {
  0% { box-shadow: 0 0 0 0 rgba(0, 180, 182, 0.9); outline: 2px solid #00b4b6; border-radius: 16px; }
  50% { box-shadow: 0 0 35px 10px rgba(0, 180, 182, 0.5); outline: 2px solid #ffb703; border-radius: 16px; }
  100% { box-shadow: none; outline: none; }
}

.section-highlight-flash {
  animation: sectionHighlightFlash 1.5s ease-out;
}

#block-timeline,
#block-daily-tracker,
#block-formaciones,
#block-pdf-consultables,
#block-a-golpe-de-click,
#block-tareas-objetivos,
#block-calculator-cartera {
  scroll-margin-top: 95px;
}




