/* ============================================================
   COMPARADOR DE CARRERAS UNIVERSITARIAS — CSS PREMIUM
   Colegios del Perú 2025
   ============================================================ */

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

/* ── Variables ───────────────────────────────────────────── */
:root {
  --cc-bg:        #f0f4ff;
  --cc-surface:   #ffffff;
  --cc-primary:   #1e1b4b;
  --cc-accent:    #6366f1;
  --cc-accent2:   #8b5cf6;
  --cc-border:    #e2e8f0;
  --cc-muted:     #64748b;
  --cc-text:      #1e293b;
  --cc-gold:      #f59e0b;
  --cc-green:     #10b981;
  --cc-red:       #ef4444;
  --cc-shadow:    0 4px 24px rgba(99,102,241,.10);
  --cc-shadow-lg: 0 16px 48px rgba(99,102,241,.18);
  --cc-radius:    16px;
  --cc-radius-sm: 10px;

  /* Colores por carrera */
  --cc-c1: #6366f1;
  --cc-c2: #f59e0b;
  --cc-c3: #10b981;
  --cc-c4: #ef4444;
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.page-comparar-carreras {
  background: var(--cc-bg);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--cc-text);
  min-height: 100vh;
}

/* ── HERO ─────────────────────────────────────────────────── */
.cc-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 70%, #6d28d9 100%);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cc-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='%239C92AC' fill-opacity='0.06'%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") repeat;
  opacity: .4;
}

.cc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.cc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #c4b5fd;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.cc-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
}

.cc-hero h1 span {
  background: linear-gradient(90deg, #a5b4fc, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cc-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin: 0 0 40px;
  line-height: 1.6;
}

/* ── SELECTOR DE CARRERAS ─────────────────────────────────── */
.cc-selector-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--cc-radius);
  padding: 28px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.cc-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.cc-selector-label {
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 600;
}

.cc-add-carrera-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.cc-add-carrera-btn:hover { background: rgba(255,255,255,.25); transform: translateY(-1px); }
.cc-add-carrera-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Inputs de carrera */
.cc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.cc-carrera-input-wrap {
  position: relative;
}

.cc-carrera-chip-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.cc-carrera-chip-label .cc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cc-carrera-input {
  width: 100%;
  background: rgba(255,255,255,.95);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 36px 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--cc-text);
  outline: none;
  transition: all .2s;
}
.cc-carrera-input:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(165,180,252,.25);
}
.cc-carrera-input::placeholder { color: #94a3b8; }

.cc-carrera-remove {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px;
  border-radius: 4px;
  transition: color .2s;
}
.cc-carrera-remove:hover { color: #ef4444; }

/* Autocomplete dropdown */
.cc-autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  z-index: 999;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}
.cc-autocomplete-list.open { display: block; }

.cc-autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--cc-text);
  border-bottom: 1px solid #f1f5f9;
  transition: background .15s;
}
.cc-autocomplete-item:last-child { border-bottom: none; }
.cc-autocomplete-item:hover { background: #f0f4ff; color: var(--cc-accent); }
.cc-autocomplete-item .cc-ac-count {
  font-size: 11px;
  color: var(--cc-muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Botón comparar */
.cc-compare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .3px;
}
.cc-compare-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.4);
}
.cc-compare-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Pares sugeridos */
.cc-pares-section {
  margin-top: 20px;
  text-align: left;
}
.cc-pares-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cc-pares-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cc-par-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.cc-par-chip:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-1px);
  color: #fff;
}

/* ── MAIN CONTAINER ──────────────────────────────────────── */
.cc-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── LOADING STATE ────────────────────────────────────────── */
.cc-loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--cc-muted);
  display: none;
}
.cc-loading.visible { display: block; }

.cc-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--cc-accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESULTS AREA ────────────────────────────────────────── */
.cc-results {
  display: none;
}
.cc-results.visible { display: block; }

/* ── HEADER DE RESULTADO ─────────────────────────────────── */
.cc-result-header {
  background: var(--cc-surface);
  border-radius: var(--cc-radius);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--cc-shadow);
  border: 1px solid var(--cc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cc-result-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cc-primary);
  margin: 0;
}

.cc-result-subtitle {
  font-size: 13px;
  color: var(--cc-muted);
  margin: 4px 0 0;
}

.cc-share-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--cc-border);
  background: var(--cc-surface);
  color: var(--cc-text);
  text-decoration: none;
}
.cc-share-btn:hover { background: #f8fafc; border-color: var(--cc-accent); color: var(--cc-accent); }

/* ── TABS ────────────────────────────────────────────────── */
.cc-tabs {
  display: flex;
  gap: 4px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 28px;
  box-shadow: var(--cc-shadow);
  overflow-x: auto;
}

.cc-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  background: none;
  color: var(--cc-muted);
  white-space: nowrap;
}
.cc-tab:hover { background: #f8fafc; color: var(--cc-accent); }
.cc-tab.active {
  background: linear-gradient(135deg, var(--cc-accent), var(--cc-accent2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,.25);
}

/* ── PANEL: TABLA COMPARATIVA ────────────────────────────── */
.cc-panel { display: none; }
.cc-panel.active { display: block; animation: fadeIn .3s ease; }

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

/* Tabla comparativa tipo dashboard */
.cc-compare-table-wrap {
  background: var(--cc-surface);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  border: 1px solid var(--cc-border);
  overflow: hidden;
  margin-bottom: 28px;
}

.cc-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cc-compare-table th {
  padding: 0;
  text-align: left;
  vertical-align: top;
}

.cc-compare-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: var(--cc-text);
}

.cc-compare-table tr:last-child td { border-bottom: none; }

/* Encabezado carrera */
.cc-carrera-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--cc-border);
  border-right: 1px solid var(--cc-border);
}

.cc-carrera-header:last-child { border-right: none; }

.cc-carrera-header-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cc-carrera-color-bar {
  width: 4px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
}

.cc-carrera-header-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--cc-primary);
  line-height: 1.3;
}

.cc-carrera-header-sub {
  font-size: 12px;
  color: var(--cc-muted);
  margin-top: 3px;
}

/* Primera columna (labels) */
.cc-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-muted);
  background: #f8fafc;
  padding: 14px 24px;
  white-space: nowrap;
  border-right: 1px solid var(--cc-border);
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-row-label i { color: var(--cc-accent); font-size: 14px; width: 18px; }

/* Valores */
.cc-val-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cc-primary);
  line-height: 1;
  margin-bottom: 2px;
}
.cc-val-sub { font-size: 12px; color: var(--cc-muted); }

/* Badge mejor */
.cc-badge-mejor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: .3px;
}

/* Barra pública/privada */
.cc-gestion-bar-wrap { margin-top: 8px; }

.cc-gestion-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 6px;
}
.cc-gestion-bar-fill-pub {
  height: 100%;
  background: linear-gradient(90deg, #1e88e5, #42a5f5);
  border-radius: 999px;
  transition: width 1s ease;
}
.cc-gestion-legends {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--cc-muted);
}
.cc-gestion-legend {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cc-gestion-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Chips de niveles */
.cc-nivel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-nivel-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .2px;
}
.cc-nivel-chip.pregrado  { background: #e0e7ff; color: #4338ca; }
.cc-nivel-chip.maestria  { background: #ede9fe; color: #6d28d9; }
.cc-nivel-chip.doctorado { background: #f5f3ff; color: #7c3aed; }
.cc-nivel-chip.otro      { background: #f1f5f9; color: #475569; }

/* Ciudades tags */
.cc-ciudades-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cc-ciudad-tag {
  font-size: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 3px 10px;
  border-radius: 6px;
}
.cc-ciudad-mas { 
  font-size: 12px; 
  color: var(--cc-accent); 
  font-weight: 600; 
  padding: 3px 10px;
}

/* ── PANEL: GRÁFICOS ──────────────────────────────────────── */
.cc-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.cc-chart-card {
  background: var(--cc-surface);
  border-radius: var(--cc-radius);
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.cc-chart-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-lg);
}

.cc-chart-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--cc-primary);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-chart-card h3 i { color: var(--cc-accent); font-size: 16px; }

.cc-chart-canvas-wrap {
  position: relative;
  height: 260px;
}

/* ── PANEL: MAPA ─────────────────────────────────────────── */
.cc-map-wrapper {
  background: var(--cc-surface);
  border-radius: var(--cc-radius);
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  overflow: hidden;
  margin-bottom: 28px;
}

.cc-map-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--cc-border);
  flex-wrap: wrap;
  gap: 12px;
}

.cc-map-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cc-map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-text);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all .2s;
  user-select: none;
}
.cc-map-legend-item.off { opacity: .45; }
.cc-map-legend-item:hover { border-color: var(--cc-border); }

.cc-map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

#cc-map {
  height: 480px;
  width: 100%;
}

/* ── PANEL: UNIVERSIDADES ────────────────────────────────── */
.cc-unis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cc-unis-column {
  background: var(--cc-surface);
  border-radius: var(--cc-radius);
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  overflow: hidden;
}

.cc-unis-col-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--cc-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-unis-col-stripe {
  width: 4px;
  height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
}
.cc-unis-col-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-primary);
}
.cc-unis-col-count {
  margin-left: auto;
  font-size: 13px;
  background: #f1f5f9;
  color: var(--cc-muted);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.cc-unis-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}

.cc-uni-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f8fafc;
  transition: background .15s;
}
.cc-uni-item:hover { background: #f8fafc; }
.cc-uni-item:last-child { border-bottom: none; }

.cc-uni-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: #fff;
}

.cc-uni-info-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-text);
  line-height: 1.4;
  margin-bottom: 3px;
}
.cc-uni-info-sub {
  font-size: 11.5px;
  color: var(--cc-muted);
}

.cc-uni-gestion-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  align-self: flex-start;
}
.cc-uni-gestion-badge.pub  { background: #dbeafe; color: #1d4ed8; }
.cc-uni-gestion-badge.priv { background: #fce7f3; color: #be185d; }

/* ── SEO TEXT SECTION ────────────────────────────────────── */
.cc-seo-section {
  background: var(--cc-surface);
  border-radius: var(--cc-radius);
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  padding: 36px;
  margin-top: 40px;
}
.cc-seo-section h2 {
  color: var(--cc-primary);
  font-size: 1.15rem;
  margin: 0 0 14px;
  font-weight: 700;
}
.cc-seo-section p {
  color: #475569;
  line-height: 1.75;
  margin: 0 0 12px;
  font-size: 14.5px;
}
.cc-seo-section strong { color: var(--cc-primary); }

/* Tabla SEO visible para Google */
.cc-seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 20px;
}
.cc-seo-table th {
  background: var(--cc-bg);
  padding: 11px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--cc-primary);
  border: 1px solid var(--cc-border);
}
.cc-seo-table td {
  padding: 11px 16px;
  border: 1px solid var(--cc-border);
  color: var(--cc-text);
  vertical-align: middle;
}
.cc-seo-table tr:nth-child(even) td { background: #f8fafc; }

/* ── CTAs RELACIONADOS ───────────────────────────────────── */
.cc-ctas-section {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.cc-cta-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: var(--cc-shadow);
}
.cc-cta-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-lg);
  border-color: var(--cc-accent);
}

.cc-cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.cc-cta-text-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-primary);
  margin-bottom: 4px;
}
.cc-cta-text-sub {
  font-size: 12px;
  color: var(--cc-muted);
  line-height: 1.4;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.cc-empty-state {
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.cc-empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: .4;
}
.cc-empty-state h3 {
  font-size: 1.3rem;
  color: var(--cc-primary);
  margin: 0 0 10px;
  font-weight: 700;
}
.cc-empty-state p {
  color: var(--cc-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.cc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cc-breadcrumb a {
  color: var(--cc-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: color .2s;
}
.cc-breadcrumb a:hover { color: var(--cc-accent2); }
.cc-breadcrumb span { color: var(--cc-muted); }
.cc-breadcrumb i { font-size: 10px; color: #cbd5e1; }

/* ── SCORE CARD ──────────────────────────────────────────── */
.cc-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.cc-score-card {
  background: var(--cc-surface);
  border-radius: var(--cc-radius-sm);
  border: 1px solid var(--cc-border);
  padding: 20px;
  box-shadow: var(--cc-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .2s;
}
.cc-score-card:hover { transform: translateY(-2px); }

.cc-score-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.cc-score-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cc-primary);
  line-height: 1;
}
.cc-score-label { font-size: 12px; color: var(--cc-muted); margin-top: 3px; font-weight: 500; }
.cc-score-winner {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  margin-top: 4px;
  display: inline-block;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .cc-hero { padding: 60px 16px 48px; }
  .cc-selector-card { padding: 20px 16px; }
  .cc-main { padding: 24px 14px 60px; }
  .cc-charts-grid { grid-template-columns: 1fr; }
  .cc-tabs { gap: 2px; }
  .cc-tab { padding: 10px 14px; font-size: 13px; }
  .cc-compare-table { display: block; overflow-x: auto; }
  .cc-seo-section { padding: 24px 18px; }
  .cc-ctas-section { grid-template-columns: 1fr; }
}

/* ── TOOLTIP ANIMADO ─────────────────────────────────────── */
.cc-tooltip {
  position: relative;
  cursor: help;
}
.cc-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 999;
  pointer-events: none;
}

/* ── SKELETON ────────────────────────────────────────────── */
.cc-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .cc-hero, .cc-tabs, .cc-share-area, .cc-ctas-section { display: none !important; }
  .cc-compare-table-wrap { box-shadow: none; border: 1px solid #ddd; }
  body { background: #fff; }
}
