/* ==========================================================================
   ESTÉTICA PREMIUM VIBRANTE & LIQUID GLASS — CALCULADORA DE ADMISIÓN ECUADOR
   Vicat Preuniversitario — Design System 2026
   ========================================================================== */

:root {
  /* Brand Tokens */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-active: #3730A3;
  --primary-light: #EEF2FF;
  --primary-glow: rgba(79, 70, 229, 0.28);

  --orange: #F97316;
  --orange-hover: #EA580C;
  --orange-light: #FFF7ED;
  --orange-glow: rgba(249, 115, 22, 0.28);

  --coral: #FF5940;
  --coral-hover: #EA432A;
  --coral-light: #FFF1F0;
  --coral-glow: rgba(255, 89, 64, 0.25);

  --mint: #10B981;
  --mint-dark: #059669;
  --mint-light: #ECFDF5;
  --mint-glow: rgba(16, 185, 129, 0.25);

  --amber: #F59E0B;
  --amber-light: #FFFBEB;
  --amber-glow: rgba(245, 158, 11, 0.25);

  --purple: #8B5CF6;
  --purple-light: #F5F3FF;

  --navy-950: #060B1A;
  --navy-900: #0B132B;
  --navy-800: #141E3C;
  --navy-700: #1E293B;

  --text-title: #0B132B;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-strong: rgba(255, 255, 255, 0.96);

  --border-color: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-glass: rgba(255, 255, 255, 0.9);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 3px rgba(11, 19, 43, 0.04);
  --shadow-sm: 0 4px 14px -2px rgba(11, 19, 43, 0.06);
  --shadow-md: 0 12px 28px -6px rgba(11, 19, 43, 0.09);
  --shadow-lg: 0 24px 48px -12px rgba(11, 19, 43, 0.14);
  --shadow-primary: 0 12px 28px -6px rgba(79, 70, 229, 0.42);
  --shadow-orange: 0 12px 28px -6px rgba(249, 115, 22, 0.42);
  --shadow-mint: 0 12px 28px -6px rgba(16, 185, 129, 0.42);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  font-size: 15.5px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.06) 0px, transparent 50%),
    radial-gradient(at 90% 15%, rgba(249, 115, 22, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(16, 185, 129, 0.04) 0px, transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  color: var(--text-title);
  font-weight: 800;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==================== ANNOUNCEMENT BAR ==================== */
.announcement-bar {
  background: var(--navy-950);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.85rem;
  position: relative;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-badge {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.announcement-text {
  font-weight: 500;
  color: #E2E8F0;
}

.announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #93C5FD;
  font-weight: 700;
}

.announcement-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==================== HEADER & NAV ==================== */
.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy-900);
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(11, 19, 43, 0.1));
}

.logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.nav-highlight {
  color: var(--primary);
}

.nav-links a.nav-highlight {
  font-weight: 700;
}

.nav-links a.nav-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  border-radius: var(--radius-full);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active .nav-dropdown-toggle,
.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--primary);
}

.nav-dropdown-toggle .dropdown-chevron {
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -8px rgba(11, 19, 43, 0.16);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 120;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  color: var(--navy-900) !important;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: var(--primary-light);
  transform: translateX(3px);
}

.dropdown-item-icon {
  font-size: 1.25rem;
}

.dropdown-item-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy-900);
}

.dropdown-item-info small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  background: var(--primary-light);
  color: var(--primary) !important;
  border: 1.5px solid rgba(79, 70, 229, 0.2);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.btn-login:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ==================== HERO SECTION ==================== */
.calc-hero {
  padding: 56px 0 36px;
  text-align: center;
  position: relative;
}

.calc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1.5px solid rgba(79, 70, 229, 0.18);
  box-shadow: 0 4px 16px -2px rgba(79, 70, 229, 0.15);
}

.calc-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.calc-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--navy-900);
  line-height: 1.15;
}

.calc-gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.calc-hero p.lead {
  max-width: 660px;
  margin: 0 auto;
  font-size: 1.06rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Feature Badges under Hero */
.calc-features-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.calc-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-800);
  box-shadow: var(--shadow-xs);
}

.calc-feature-chip span.icon {
  font-size: 0.95rem;
}

/* Filter Bar */
.calc-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.calc-filter-pill {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--border-color);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calc-filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.calc-filter-pill.active {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-color: var(--navy-900);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(11, 19, 43, 0.35);
  transform: translateY(-2px);
}

/* ==================== SELECTOR DE UNIVERSIDADES (GRID) ==================== */
.calc-uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
  margin: 36px 0 80px;
}

.calc-uni-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  padding: 26px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.calc-uni-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--uni-accent, var(--primary));
  opacity: 0.9;
  transition: height 0.25s ease;
}

.calc-uni-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79, 70, 229, 0.15);
}

.calc-uni-card:hover::before {
  height: 6px;
}

.calc-uni-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calc-uni-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 16px -3px rgba(11, 19, 43, 0.25);
  position: relative;
  overflow: hidden;
}

.calc-type-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calc-uni-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--navy-900);
  line-height: 1.3;
}

.calc-uni-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-uni-meta svg {
  color: var(--orange);
}

/* Weighting distribution meter bar */
.calc-uni-formula-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.calc-uni-formula-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.calc-uni-formula-bar {
  display: flex;
  height: 7px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #E2E8F0;
  gap: 2px;
}

.calc-bar-grado {
  background: linear-gradient(90deg, #8B5CF6, #6366F1);
  height: 100%;
}

.calc-bar-examen {
  background: linear-gradient(90deg, #F97316, #FF5940);
  height: 100%;
}

.calc-uni-formula-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calc-uni-go {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.calc-uni-go svg {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-uni-card:hover .calc-uni-go svg {
  transform: translateX(5px);
}

/* ==================== PANEL DE CÁLCULO INDIVIDUAL ==================== */
.calc-panel-wrap {
  max-width: 820px;
  margin: 28px auto 90px;
  animation: panelSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.calc-back-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.calc-btn-back {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--border-color);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xs);
  font-family: inherit;
}

.calc-btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(-3px);
  box-shadow: var(--shadow-sm);
}

.calc-container-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.calc-container-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #8B5CF6, var(--orange));
}

/* Panel Header */
.calc-panel-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.calc-panel-badge {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-lg);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -4px rgba(11, 19, 43, 0.3);
  position: relative;
  overflow: hidden;
}

.calc-panel-header h2 {
  font-size: 1.65rem;
  margin-bottom: 4px;
  color: var(--navy-900);
  line-height: 1.2;
}

.calc-panel-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Tabs (Segmented Control Moderno) */
.calc-tab-nav {
  display: flex;
  background: #F1F5F9;
  padding: 5px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  gap: 6px;
  margin-bottom: 32px;
  position: relative;
}

.calc-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 13px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calc-tab-btn:hover {
  color: var(--navy-900);
}

.calc-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 14px -2px rgba(11, 19, 43, 0.1);
}

/* ==================== FORMS & FIELDS ==================== */
.calc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.calc-form-full {
  grid-column: 1 / -1;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px var(--primary-glow);
}

.calc-field-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-field label {
  font-size: 0.9rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--navy-900);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-field label small {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.calc-input-wrap input,
.calc-input-wrap select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  color: var(--navy-900);
  background: var(--bg-page);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  transition: all 0.2s ease;
  outline: none;
}

.calc-input-wrap select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  -webkit-appearance: none;
  appearance: none;
}

.calc-input-wrap input:focus,
.calc-input-wrap select:focus {
  border-color: var(--primary);
  background: #ffffff;
}

/* Range Slider Estilizado con Track Gradiente */
.calc-slider-wrap {
  margin-top: 8px;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.45);
  cursor: pointer;
  border: 3px solid #ffffff;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.6);
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 4px;
}

/* Chips rápidos interactivos */
.calc-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.chip-card {
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.chip-card span.pts {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.chip-card span.desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chip-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

.chip-card.active {
  background: linear-gradient(135deg, var(--primary-light), #EDE9FE);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.25);
}

.chip-card.active span.pts {
  color: var(--primary);
}

.chip-card.active span.desc {
  color: var(--primary-hover);
  font-weight: 700;
}

/* Botón Principal de Calcular (Vibrante) */
.calc-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 45%, #F97316 100%);
  color: #ffffff;
  border: none;
  padding: 17px 24px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-primary);
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.calc-btn-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.calc-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(79, 70, 229, 0.55);
}

.calc-btn-submit:hover::after {
  left: 100%;
}

.calc-btn-submit:active {
  transform: translateY(0);
}

/* ==================== DASHBOARD DE RESULTADOS ==================== */
.calc-result-wrap {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1.5px solid var(--border-color);
  animation: calcResultFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Score Hero Display */
.calc-score-display {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(238, 242, 255, 0.7));
  border: 1.5px solid rgba(79, 70, 229, 0.18);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.calc-score-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calc-score-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.2rem, 6vw, 4.4rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.05;
  margin: 10px 0 14px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calc-progress-container {
  width: 100%;
  max-width: 420px;
  height: 10px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  margin: 14px auto 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calc-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--purple), var(--orange));
  border-radius: var(--radius-full);
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.5);
}

.calc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-top: 4px;
  box-shadow: var(--shadow-xs);
}

.pill-success {
  background: var(--mint-light);
  color: var(--mint-dark);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-info {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.pill-warning {
  background: var(--amber-light);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pill-danger {
  background: var(--coral-light);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Grid de Desglose Tripartito */
.calc-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.calc-breakdown-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease;
}

.calc-breakdown-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.calc-breakdown-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.calc-breakdown-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.calc-breakdown-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
}

.calc-breakdown-number small {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
}

/* Badge de aciertos en Tab 2 */
.calc-aciertos-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: 1.5px solid rgba(79, 70, 229, 0.25);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 14px;
  box-shadow: var(--shadow-xs);
}

.calc-aciertos-badge strong {
  color: var(--navy-900);
  font-weight: 800;
}

/* Botones de Acción Posterior */
.calc-action-dual {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  margin: 24px 0 28px;
}

.btn-calc-secondary {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xs);
}

.btn-calc-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.calc-banner-wa {
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  color: #ffffff !important;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-mint);
  text-align: center;
}

.calc-banner-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(16, 185, 129, 0.55);
}

/* ==================== CARRERAS ALCANZABLES ==================== */
.calc-careers-container {
  margin-top: 28px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.calc-careers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.calc-careers-header h3 {
  font-size: 1.25rem;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  width: 100%;
  max-width: 280px;
  transition: all 0.2s ease;
}

.calc-search-box:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.calc-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--navy-900);
  width: 100%;
  font-weight: 600;
}

.calc-career-list {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.calc-career-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: background 0.15s ease;
}

.calc-career-item:hover {
  background: #F8FAFC;
}

.calc-career-item:last-child {
  border-bottom: none;
}

.calc-career-title {
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--navy-900);
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.calc-career-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.calc-career-sub .area-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.72rem;
}

.calc-career-sub .margin-positive {
  color: var(--mint-dark);
  font-weight: 800;
  background: var(--mint-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
}

.calc-career-sub .margin-near {
  color: #B45309;
  font-weight: 800;
  background: var(--amber-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.calc-career-sub .margin-far {
  color: #B91C1C;
  font-weight: 800;
  background: var(--coral-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
}

/* Sub-pestañas de estado de carreras */
.calc-status-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.status-tab-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.status-tab-btn:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--navy-900);
}

.status-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

.filter-count-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
}

.status-tab-btn.active .filter-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.calc-career-badge {
  text-align: right;
  flex-shrink: 0;
}

.calc-career-badge small {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
}

.calc-career-badge strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 800;
}

.calc-empty-row {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Alerts & Notices */
.calc-alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
  box-shadow: var(--shadow-xs);
}

.calc-alert strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.calc-alert-error {
  background: var(--coral-light);
  color: #991B1B;
  border: 1.5px solid #FECACA;
}

.calc-alert-success {
  background: var(--mint-light);
  color: #065F46;
  border: 1.5px solid #A7F3D0;
}

.calc-alert-info {
  background: var(--primary-light);
  color: #1E3A8A;
  border: 1.5px solid #BFDBFE;
}

.calc-info-alert {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 22px;
  color: var(--text-body);
  font-size: 0.92rem;
  box-shadow: var(--shadow-xs);
}

.calc-info-alert strong {
  color: var(--navy-900);
  font-size: 0.96rem;
  display: block;
  margin-bottom: 4px;
}

/* Scrollbar */
.calc-career-list::-webkit-scrollbar {
  width: 6px;
}
.calc-career-list::-webkit-scrollbar-track {
  background: transparent;
}
.calc-career-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 10px;
}

/* Floating WhatsApp Widget */
.wa-floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-tooltip {
  background: var(--navy-900);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-floating-widget:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-mint);
  position: relative;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-btn:hover {
  transform: scale(1.1);
}

.wa-ping {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #EF4444;
  border: 2.5px solid #ffffff;
}

/* Footer */
.footer {
  background: var(--navy-950);
  color: #94A3B8;
  padding: 56px 0 28px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-main .logo-white {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-col-main p {
  color: #94A3B8;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #94A3B8;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 8px 0;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    min-width: 100%;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-color);
    background: #F8FAFC;
    border-radius: var(--radius-md);
    margin-top: 6px;
    margin-bottom: 6px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .menu-toggle {
    display: block;
  }
  .calc-uni-grid {
    grid-template-columns: 1fr;
  }
  .calc-form-grid {
    grid-template-columns: 1fr;
  }
  .calc-container-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }
  .calc-tab-nav {
    flex-direction: column;
    gap: 4px;
  }
  .calc-tab-btn {
    padding: 11px 14px;
    font-size: 0.88rem;
  }
  .calc-panel-header {
    flex-direction: row;
    gap: 14px;
  }
  .calc-action-dual {
    grid-template-columns: 1fr;
  }
  .calc-breakdown-grid {
    grid-template-columns: 1fr;
  }
  .calc-score-number {
    font-size: 3rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
