/* ═══════════════════════════════════════════════════════════════════
   Estudiando.net — Design System
   Stack: Pure CSS, mobile-first, Inter font
   ═══════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ──────────────────────────────────────────────────── */
:root {
  --primary:       #4F46E5;
  --primary-dark:  #3730A3;
  --primary-light: #EEF2FF;
  --primary-hover: #4338CA;
  --accent:        #10B981;
  --accent-light:  #D1FAE5;
  --red:           #EF4444;
  --orange:        #F59E0B;

  --text:          #111827;
  --text-2:        #374151;
  --muted:         #6B7280;
  --border:        #E5E7EB;
  --border-2:      #F3F4F6;
  --bg:            #F9FAFB;
  --white:         #FFFFFF;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.10);

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --nav-h: 64px;
  --container: 1200px;
  --container-sm: 800px;
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ─── LAYOUT ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 20px;
}
.section { margin-bottom: 48px; }
.section:last-child { margin-bottom: 0; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; color: var(--text); letter-spacing: -.02em; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.3; color: var(--text); letter-spacing: -.01em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--text); }
h4 { font-size: 0.875rem; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
p { color: var(--text-2); line-height: 1.7; }
strong { font-weight: 600; color: var(--text); }
small { font-size: 0.8125rem; }
.muted { color: var(--muted); }
.highlight { color: var(--primary); }
.nota-big { color: var(--primary); font-size: 1.25em; font-weight: 800; }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-2); background: var(--bg); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-xs { padding: 5px 10px; font-size: 0.8125rem; border-radius: var(--radius-xs); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ─── NAV ────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  text-decoration: none !important;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none !important;
  transition: all .15s;
}
.nav-links a:hover { background: var(--bg); color: var(--text); }
.nav-links a.active { background: var(--primary-light); color: var(--primary); }
.nav-cta { margin-left: auto; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-2);
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none !important;
}
.nav-mobile a:last-child { border-bottom: none; }

/* ─── BREADCRUMB ─────────────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-2);
  padding: 10px 0;
}
.breadcrumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bc-item {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}
.bc-item:hover { color: var(--primary); }
.bc-active { color: var(--text); font-weight: 500; }
.bc-sep { color: var(--border); font-size: 0.75rem; }

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #4338ca 100%);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  color: #A5B4FC;
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.hero-sub {
  color: #A5B4FC;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-search-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 6px;
  display: flex;
  gap: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  margin-bottom: 24px;
}
.hero-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.hero-search-wrap input::placeholder { color: var(--muted); }
.hero-search-wrap button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background .15s;
}
.hero-search-wrap button:hover { background: var(--primary-hover); }
.hero-quick-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-quick-links a {
  color: #C7D2FE;
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all .15s;
  text-decoration: none !important;
}
.hero-quick-links a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--white); }
.hero-stat span { font-size: 0.8125rem; color: #93C5FD; }

/* ─── TOOLS SECTION ──────────────────────────────────────────────── */
.tools-section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--muted); font-size: 1.0625rem; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none !important;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--primary); }
.tool-card.featured { border-color: var(--primary); background: var(--primary-light); }
.tool-card.featured::before {
  content: 'Más popular';
  position: absolute;
  top: 12px; right: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tool-icon { font-size: 2rem; }
.tool-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--text); }
.tool-card p { font-size: 0.9375rem; color: var(--muted); flex: 1; }
.tool-cta { color: var(--primary); font-weight: 600; font-size: 0.9375rem; margin-top: 4px; }

/* ─── AD CONTAINERS ──────────────────────────────────────────────── */
.ad-wrap {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin: 32px 0;
  min-height: 90px;
}
.ad-section { padding: 16px 0; background: var(--white); border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }

/* ─── RANKINGS ───────────────────────────────────────────────────── */
.rankings-section { padding: 64px 0; background: var(--white); }
.careers-table-wrap { margin-top: 24px; }
.rank-table { width: 100%; }
.rank-table thead tr { border-bottom: 2px solid var(--border); }
.rank-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.rank-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.rank-table tr:hover td { background: var(--bg); }
.rank-num { color: var(--muted); font-weight: 600; font-size: 0.875rem; width: 36px; }
.rank-name { font-weight: 600; color: var(--text); }
.rank-name a { color: var(--text); }
.rank-name a:hover { color: var(--primary); }
.rank-cat { font-size: 0.8125rem; color: var(--muted); }

/* ─── CITIES SECTION ─────────────────────────────────────────────── */
.cities-section { padding: 64px 0; }
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.city-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none !important;
  display: block;
  transition: all .18s;
}
.city-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.city-card-name { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.city-card-count { font-size: 0.8125rem; color: var(--muted); }

/* ─── FAQ / SEO CONTENT ──────────────────────────────────────────── */
.faq-section-home { padding: 64px 0; background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.faq-card {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 24px;
}
.faq-card h3 { margin-bottom: 10px; font-size: 1rem; }
.faq-card p { font-size: 0.9375rem; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: #111827;
  color: #9CA3AF;
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none !important;
  display: block;
  margin-bottom: 12px;
}
.footer-logo span { color: #818CF8; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #9CA3AF;
  font-size: 0.875rem;
  margin-bottom: 8px;
  text-decoration: none !important;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  font-size: 0.8125rem;
  color: #6B7280;
}

/* ─── SEO PAGES ──────────────────────────────────────────────────── */
.seo-main {
  padding: 48px 0 80px;
  min-height: 70vh;
}
.seo-hdr {
  margin-bottom: 40px;
}
.seo-hdr h1 { margin: 12px 0 16px; }
.seo-lead {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 680px;
  margin-bottom: 24px;
}
.cat-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stat-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.stat-pill span { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.stat-pill strong { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.nota-pill strong { color: var(--primary); font-size: 1.5rem; }

/* ─── DATA TABLE ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.dtable { width: 100%; background: var(--white); }
.dtable thead tr { background: var(--bg); }
.dtable th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.dtable td {
  padding: 14px;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.9375rem;
  vertical-align: middle;
}
.dtable tr:last-child td { border-bottom: none; }
.dtable tr:hover td { background: var(--bg); }
.dtable small { color: var(--muted); font-size: 0.8125rem; }
.nota-cell { font-weight: 700; font-size: 1rem; }
.n-high { color: var(--red); }
.n-mid  { color: var(--orange); }
.n-low  { color: var(--accent); }

/* ─── BADGES ─────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-pub  { background: #DBEAFE; color: #1D4ED8; }
.badge-priv { background: #FEF3C7; color: #B45309; }
.count-badge {
  background: var(--bg);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  margin-left: 8px;
}

/* ─── CAREER GRID (que-estudiar pages) ───────────────────────────── */
.category-block { }
.category-block h2 { margin-bottom: 20px; }
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.career-card-sm {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-decoration: none !important;
  display: block;
  transition: all .15s;
}
.career-card-sm:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.cc-name { font-weight: 600; color: var(--text); font-size: 0.9375rem; margin-bottom: 6px; }
.cc-meta { display: flex; gap: 10px; }
.cc-cut { font-size: 0.8125rem; color: var(--primary); font-weight: 600; }
.cc-cities { font-size: 0.8125rem; color: var(--muted); }
.see-more { margin-top: 12px; font-size: 0.9375rem; }
.see-more a { color: var(--primary); }

/* ─── PILL GRID ──────────────────────────────────────────────────── */
.pill-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none !important;
  transition: all .15s;
}
.city-pill:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.city-pill em { background: var(--primary); color: white; font-style: normal; font-size: 0.75rem; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-full); }
.note-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: all .15s;
}
.note-pill:hover { border-color: var(--primary); color: var(--primary); }
.note-higher { border-color: var(--border); }
.note-lower  { border-color: var(--border); }

/* ─── INFO BOX ───────────────────────────────────────────────────── */
.info-box {
  background: var(--primary-light);
  border: 1px solid #C7D2FE;
  border-radius: var(--radius-lg);
  padding: 28px;
}
.info-box h2 { color: var(--primary-dark); margin-bottom: 12px; }
.info-box p { color: var(--text-2); margin-bottom: 10px; }
.info-box p:last-of-type { margin-bottom: 0; }

/* ─── CTA BLOCK ──────────────────────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin: 48px 0;
}
.cta-block h2 { color: var(--white); margin-bottom: 12px; }
.cta-block p { color: #A5B4FC; margin-bottom: 24px; }
.cta-block .btn-primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  font-size: 1rem;
  padding: 14px 28px;
}
.cta-block .btn-primary:hover { background: var(--primary-light); }

/* ─── FAQ LIST (SEO pages) ───────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 16px; color: var(--text-2); }

/* ─── UNIVERSITY CARDS (city pages) ─────────────────────────────── */
.univ-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.univ-card h2 { font-size: 1.125rem; margin-bottom: 6px; }
.univ-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.univ-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.career-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.career-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.8125rem;
  color: var(--text-2);
  text-decoration: none !important;
  transition: all .15s;
}
.career-tag:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.career-tag em { background: var(--primary-light); color: var(--primary); font-style: normal; font-size: 0.75rem; font-weight: 700; padding: 1px 6px; border-radius: var(--radius-full); }
.career-tag-more { background: var(--border-2); color: var(--muted); font-size: 0.8125rem; padding: 4px 10px; border-radius: var(--radius-full); }

/* ─── SIMULADOR ──────────────────────────────────────────────────── */
.sim-page { padding: 0 0 80px; }
.sim-filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.sim-filters-inner {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.filter-group select, .filter-group input[type=text] {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  min-width: 140px;
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.nota-filter { min-width: 220px; }
.nota-display {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nota-display input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
.nota-display input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.nota-badge {
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  min-width: 52px;
  text-align: center;
}
.sim-header {
  padding: 24px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sim-count { font-weight: 600; color: var(--text); }
.sim-count span { color: var(--primary); }
.sim-sort { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.sim-sort select { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-xs); font-size: 0.875rem; }
.sim-results { display: flex; flex-direction: column; gap: 0; }
.result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  transition: all .15s;
  margin-bottom: 10px;
}
.result-card:hover { box-shadow: var(--shadow-md); border-color: #C7D2FE; }
.rc-main {}
.rc-career { font-size: 1.125rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rc-career a { color: var(--text); text-decoration: none; }
.rc-career a:hover { color: var(--primary); }
.rc-univ { font-size: 0.9375rem; color: var(--muted); margin-bottom: 8px; }
.rc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-tag { display: inline-block; background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-full); padding: 3px 10px; font-size: 0.8125rem; color: var(--text-2); }
.rc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 90px; }
.rc-nota { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.rc-nota-label { font-size: 0.75rem; color: var(--muted); }
.rc-nota-prev { font-size: 0.8125rem; color: var(--muted); }
.sim-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.sim-empty h3 { color: var(--text); margin-bottom: 8px; }
.sim-loading {
  text-align: center;
  padding: 60px;
  color: var(--muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}
.page-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text);
  transition: all .15s;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: default; }

/* ─── TEST VOCACIONAL ────────────────────────────────────────────── */
.test-page { padding: 48px 0 80px; }
.test-intro { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.test-intro h1 { margin-bottom: 12px; }
.test-intro p { font-size: 1.0625rem; color: var(--muted); }
.progress-bar-wrap { margin-bottom: 40px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 3px;
  transition: width .4s ease;
}
.question-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.q-num { font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.q-text { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 28px; line-height: 1.4; }
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all .15s;
  background: var(--white);
  text-align: left;
  width: 100%;
}
.q-option:hover { border-color: var(--primary); background: var(--primary-light); color: var(--text); }
.q-option.selected { border-color: var(--primary); background: var(--primary); color: white; }
.q-option-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all .15s;
}
.q-option.selected .q-option-letter { background: rgba(255,255,255,.2); border-color: transparent; color: white; }
.test-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.test-results { max-width: 680px; margin: 0 auto; animation: slideIn .3s ease; }
.test-results-header { text-align: center; margin-bottom: 36px; }
.test-results-header h2 { font-size: 1.75rem; margin-bottom: 12px; }
.results-career-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.result-career-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .15s;
}
.result-career-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.result-career-card.top-1 { border-color: var(--primary); border-width: 2px; background: var(--primary-light); }
.rcc-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.result-career-card.top-1 .rcc-rank { font-size: 2rem; }
.rcc-info { flex: 1; }
.rcc-cat { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.rcc-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.rcc-careers { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
.rcc-score { text-align: right; }
.score-bar-wrap { width: 80px; }
.score-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.score-fill { height: 100%; background: var(--primary); border-radius: 3px; }
.score-pct { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.test-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.share-tip { text-align: center; margin-top: 16px; font-size: 0.875rem; color: var(--muted); }

/* ─── COMPARADOR ─────────────────────────────────────────────────── */
.comp-page { padding: 40px 0 80px; }
.comp-selector {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}
.comp-selector h2 { margin-bottom: 16px; font-size: 1.125rem; }
.comp-careers-picked {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-height: 44px;
  align-items: center;
}
.picked-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid #C7D2FE;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}
.picked-tag button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.comp-add { display: flex; gap: 10px; }
.comp-add select { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9375rem; }
.comp-table-wrap { overflow-x: auto; }
.comp-table { min-width: 700px; }
.comp-table th:first-child { width: 200px; background: var(--bg); }
.comp-table .metric-label { font-weight: 600; color: var(--text); font-size: 0.9375rem; padding: 16px 14px; }
.comp-table .career-header {
  text-align: center;
  background: var(--primary-light);
  border-bottom: 2px solid var(--primary);
}
.comp-table .career-header span { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.comp-table td { text-align: center; font-size: 0.9375rem; }
.comp-value-best { font-weight: 700; color: var(--accent); }
.comp-bar { height: 6px; background: var(--border); border-radius: 3px; margin: 6px auto 0; width: 80px; overflow: hidden; }
.comp-bar-fill { height: 100%; background: var(--primary); border-radius: 3px; }

/* ─── BUSCADOR ───────────────────────────────────────────────────── */
.search-page { padding: 48px 0 80px; }
.search-hero { text-align: center; margin-bottom: 40px; }
.search-hero h1 { margin-bottom: 16px; }
.search-box-big {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.search-box-big input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 1.0625rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: border-color .15s;
}
.search-box-big input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.search-box-big button {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
}
.autocomplete-list {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  margin-top: 4px;
}
.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-2);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.focused { background: var(--primary-light); }
.ac-label { font-weight: 500; color: var(--text); }
.ac-type { font-size: 0.8125rem; color: var(--muted); margin-left: auto; }
.search-results-list { margin-top: 24px; }
.search-result-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 10px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none !important;
  color: var(--text);
  transition: all .15s;
}
.search-result-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.sri-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.sri-title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.sri-desc { font-size: 0.875rem; color: var(--muted); }
.sri-type { font-size: 0.75rem; color: var(--primary); font-weight: 600; background: var(--primary-light); padding: 2px 8px; border-radius: var(--radius-full); margin-left: auto; flex-shrink: 0; }
.quick-searches { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.quick-searches a { font-size: 0.875rem; color: var(--muted); padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--white); text-decoration: none !important; }
.quick-searches a:hover { border-color: var(--primary); color: var(--primary); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav { height: var(--nav-h); position: relative; }

  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 1.375rem; }

  .tools-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .sim-filters-inner { gap: 10px; }
  .nota-filter { min-width: 100%; }

  .question-card { padding: 24px; }
  .q-text { font-size: 1.125rem; }

  .cta-block { padding: 32px 24px; }
  .cta-block .btn-primary { width: 100%; justify-content: center; }

  .dtable th, .dtable td { padding: 10px; font-size: 0.875rem; }

  .result-card { grid-template-columns: 1fr; }
  .rc-side { flex-direction: row; align-items: center; }

  .univ-card-head { flex-direction: column; }

  .stats-row { gap: 8px; }
  .stat-pill { padding: 8px 12px; }
  .stat-pill strong { font-size: 1rem; }

  .seo-main { padding: 28px 0 60px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 16px; }
  .hero-search-wrap { flex-direction: column; }
  .hero-search-wrap button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; gap: 16px; }
  .hero-stat strong { font-size: 1.25rem; }
  .tools-grid { gap: 12px; }
  .tool-card { padding: 20px; }
}

/* ─── UTILS ──────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-6 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
