/* ==========================================================================
   OportunAR — Sistema de Diseño Oficial (Manual de Marca v1.0)
   Estética: Minimalista Blanco & Celeste Argentino · El Portal Cinético
   ========================================================================== */

:root {
  /* Superficies Escalonadas (72% Blanco Puro & Bruma Celeste) */
  --background: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-sky: #f0f9ff;
  --surface-ice: #e0f2fe;

  /* Tinta & Lectura (14% Azul Pizarra — Contraste AAA 17.8:1) */
  --foreground: #0f172a;
  --muted-foreground: #475569;
  --subtle-foreground: #64748b;
  --placeholder: #94a3b8;

  /* Bordes */
  --border-subtle: #e2e8f0;
  --border-sky: #bae6fd;
  --border-sky-strong: #7dd3fc;

  /* Acentos Celeste Argentino (10%) */
  --sky-accent: #38bdf8;
  --sky-bright: #0ea5e9;
  --sky-primary: #0284c7;
  --sky-deep: #0369a1;
  --sky-glow: rgba(56, 189, 248, 0.22);

  /* Semáforo de Idioma (4% — Manual de Marca Sección 3 & 6) */
  --lang-none-bg: #dcfce7;
  --lang-none-border: #bbf7d0;
  --lang-none-text: #15803d;
  --lang-none-dot: #16a34a;

  --lang-basic-bg: #e0f2fe;
  --lang-basic-border: #bae6fd;
  --lang-basic-text: #0369a1;
  --lang-basic-dot: #0284c7;

  --lang-inter-bg: #fef3c7;
  --lang-inter-border: #fde68a;
  --lang-inter-text: #b45309;
  --lang-inter-dot: #d97706;

  /* Estado Abierta */
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --emerald-text: #047857;
  --emerald-dot: #10b981;

  /* Familias Tipográficas Oficiales */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Sombras & Curva de Aceleración del Manual */
  --shadow-card: 0 2px 12px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 14px 36px rgba(2, 132, 199, 0.12);
  --shadow-nav-scroll: 0 8px 30px rgba(2, 132, 199, 0.08);
  --shadow-cta: 0 6px 20px rgba(2, 132, 199, 0.28);
  --shadow-cta-hover: 0 10px 28px rgba(2, 132, 199, 0.38);
  --shadow-modal: 0 24px 64px rgba(15, 23, 42, 0.14);
  --ease-brand: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(56, 189, 248, 0.28);
  color: #0f172a;
}

/* Custom Sky Scrollbar (Manual de Marca Sección 1) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7dd3fc, #0284c7);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8, #0369a1);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--foreground);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--sky-accent);
  outline-offset: 2px;
}

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

/* Patrón de Grilla Arquitectónica Sutil (56x56) */
.bg-portal-grid {
  background-size: 56px 56px;
  background-image:
    linear-gradient(to right, rgba(2, 132, 199, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.055) 1px, transparent 1px);
}

@keyframes pulse-sky {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.animate-pulse-sky {
  animation: pulse-sky 2.8s ease-in-out infinite;
}

/* ==========================================================================
   Navbar Flotante (Receta Manual de Marca Sección 5)
   ========================================================================== */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0 8px;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: 11px 20px;
  transition: all 0.28s var(--ease-brand);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border-sky);
  box-shadow: var(--shadow-nav-scroll);
  padding: 9px 20px;
}

/* Lockup Horizontal Oficial OportunAR */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease-brand);
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.brand-wordmark .ar-highlight {
  color: var(--sky-primary);
}

.brand-kicker {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--subtle-foreground);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--sky-primary);
}

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

.btn-saved-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-brand);
}

.btn-saved-trigger:hover {
  border-color: var(--border-sky-strong);
  background: var(--surface-sky);
  color: var(--sky-deep);
}

.saved-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface-ice);
  color: var(--sky-deep);
}

.saved-count-badge.has-items {
  background: var(--sky-primary);
  color: #ffffff;
}

/* ==========================================================================
   Hero Arquitectónico Blanco & Celeste (Manual de Marca Sección 2 & 4)
   ========================================================================== */
.hero {
  position: relative;
  padding: 46px 0 36px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.92) 0%, #ffffff 74%, #ffffff 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 28%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 28%, #000 40%, transparent 100%);
}

.hero-orb {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 300px;
  border-radius: 9999px;
  background: rgba(186, 230, 253, 0.48);
  filter: blur(110px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

/* Status Pill en Vivo (JetBrains Mono) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--surface-ice);
  border: 1px solid var(--border-sky);
  color: var(--sky-deep);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.status-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.15rem, 4.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--foreground);
  margin-bottom: 18px;
}

.hero-gradient-text {
  background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 52%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 30px;
  max-width: 650px;
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--muted-foreground);
}

/* Buscador Principal */
.search-shell {
  max-width: 720px;
  margin: 0 auto 18px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--background);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 7px 12px 7px 18px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s var(--ease-brand), box-shadow 0.2s var(--ease-brand);
}

.search-box:focus-within {
  border-color: var(--sky-accent);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12), 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.search-icon {
  color: var(--sky-primary);
  flex-shrink: 0;
  margin-right: 12px;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.96rem;
  color: var(--foreground);
  padding: 10px 0;
}

.search-input::placeholder {
  color: var(--placeholder);
}

.search-input:focus {
  outline: none;
}

.search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--surface-sky);
  color: var(--muted-foreground);
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-clear.visible {
  display: inline-flex;
}

.search-clear:hover {
  background: var(--surface-ice);
  color: var(--sky-deep);
}

.kbd-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--subtle-foreground);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* Chips Rápidos en 1 Clic */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.quick-chips-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle-foreground);
  margin-right: 4px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.81rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-brand);
}

.quick-chip:hover {
  border-color: var(--border-sky-strong);
  background: var(--surface-sky);
  color: var(--sky-deep);
  transform: translateY(-1px);
}

.quick-chip.active {
  background: var(--sky-primary);
  border-color: var(--sky-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

/* Métricas Reales */
.hero-metrics {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
  padding: 15px 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.metric-item {
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sky-primary);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.76rem;
  color: var(--subtle-foreground);
  font-weight: 500;
}

/* ==========================================================================
   Marquesina Oficial de Fuentes Rastreadas (Manual de Marca Sección 6)
   ========================================================================== */
.marquee-strip-wrap {
  padding: 8px 0 34px;
}

.marquee-box {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
  border-radius: 15px;
  padding: 12px 0;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-box:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--background);
  border: 1px solid var(--border-sky);
  color: var(--sky-deep);
  font-size: 0.77rem;
  font-weight: 600;
  white-space: nowrap;
}

.marquee-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky-accent);
}

/* ==========================================================================
   Sección Explorador Central
   ========================================================================== */
.explorer-section {
  padding: 8px 0 80px;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sky-primary);
  margin-bottom: 8px;
}

/* Banner Orientador */
.guide-banner {
  background: linear-gradient(135deg, var(--surface-sky) 0%, #ffffff 100%);
  border: 1px solid var(--border-sky);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guide-banner-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guide-mark-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--background);
  border: 1px solid var(--border-sky);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.guide-banner-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.guide-banner-desc {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.guide-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-sky);
  background: var(--background);
  color: var(--sky-deep);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-brand);
}

.preset-btn:hover {
  background: var(--sky-primary);
  border-color: var(--sky-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Pestañas de Nivel + Pestaña Destacada "Exterior e Idiomas" */
.tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.level-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--background);
  color: var(--muted-foreground);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-brand);
}

.tab-btn:hover {
  border-color: var(--border-sky-strong);
  color: var(--sky-deep);
  background: var(--surface-sky);
}

.tab-btn.active {
  background: var(--sky-primary);
  border-color: var(--sky-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.24);
}

.tab-btn.tab-intl {
  background: var(--surface-sky);
  border-color: var(--border-sky);
  color: var(--sky-deep);
}

.tab-btn.tab-intl:hover {
  border-color: var(--sky-accent);
  background: var(--surface-ice);
}

.tab-btn.tab-intl.active {
  background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 100%);
  border-color: var(--sky-primary);
  color: #ffffff;
  box-shadow: var(--shadow-cta);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(2, 132, 199, 0.1);
  color: inherit;
}

.tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Barra de Filtros en Superficie Sutil (#F8FAFC) */
.filters-panel {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle-foreground);
}

.filter-select {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2' 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 10px center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.filter-select:hover {
  border-color: var(--border-sky-strong);
}

.filter-select:focus {
  outline: none;
  border-color: var(--sky-accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

/* Barra de Estado y Leyenda Semáforo */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.results-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.results-summary strong {
  color: var(--foreground);
  font-weight: 700;
}

.btn-reset-filters {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-sky);
  background: var(--surface-sky);
  color: var(--sky-deep);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reset-filters.visible {
  display: inline-flex;
}

.btn-reset-filters:hover {
  background: var(--surface-ice);
}

.traffic-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s ease;
}

.legend-item:hover {
  color: var(--foreground);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-green { background: var(--lang-none-dot); }
.dot-sky   { background: var(--lang-basic-dot); }
.dot-amber { background: var(--lang-inter-dot); }

/* ==========================================================================
   Grilla y Tarjetas de Oportunidades (Manual de Marca Sección 5 & 9)
   Regla clave: Aire generoso y UN SOLO botón CTA principal por tarjeta
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(345px, 1fr));
  gap: 22px;
}

.opp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--background);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s var(--ease-brand),
    box-shadow 0.25s var(--ease-brand),
    border-color 0.25s var(--ease-brand);
  animation: cardEnter 0.34s var(--ease-brand) both;
}

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

.opp-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-sky-strong);
  box-shadow: var(--shadow-card-hover);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-badges-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

/* Badge Cobertura Celeste (#E0F2FE + #0369A1) */
.badge-coverage {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-ice);
  border: 1px solid var(--border-sky);
  color: var(--sky-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Pill de Estado (Abierta / Permanente / Próxima) */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
}

.badge-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-dot);
}

.badge-status.status-upcoming {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.badge-status.status-upcoming .status-dot {
  background: #f59e0b;
}

.btn-bookmark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--background);
  color: var(--placeholder);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-brand);
}

.btn-bookmark:hover {
  border-color: var(--border-sky-strong);
  color: var(--sky-primary);
  background: var(--surface-sky);
}

.btn-bookmark.saved {
  border-color: var(--border-sky-strong);
  background: var(--surface-ice);
  color: var(--sky-primary);
}

/* Institución y Destino */
.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 0.79rem;
  color: var(--sky-deep);
  font-weight: 600;
}

.card-institution {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-country {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--muted-foreground);
  font-size: 0.74rem;
  font-weight: 600;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--foreground);
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.card-title:hover {
  color: var(--sky-primary);
}

.card-summary {
  margin: 0 0 16px;
  font-size: 0.89rem;
  color: var(--muted-foreground);
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Chips Semáforo de Idioma + Nivel + Modalidad */
.card-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.semaforo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.semaforo-none {
  background: var(--lang-none-bg);
  border-color: var(--lang-none-border);
  color: var(--lang-none-text);
}

.semaforo-basic {
  background: var(--lang-basic-bg);
  border-color: var(--lang-basic-border);
  color: var(--lang-basic-text);
}

.semaforo-inter {
  background: var(--lang-inter-bg);
  border-color: var(--lang-inter-border);
  color: var(--lang-inter-text);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--muted-foreground);
  font-size: 0.74rem;
  font-weight: 500;
}

.tag-category {
  background: var(--surface-sky);
  border-color: var(--border-sky);
  color: var(--sky-deep);
  font-weight: 600;
}

/* Pie de Tarjeta: Enlace de lectura + UN ÚNICO Botón CTA Primario */
.card-footer {
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-detail {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.link-detail:hover {
  color: var(--sky-primary);
}

/* Botón Primario CTA (#0284C7 → #0EA5E9 con texto blanco AAA) */
.btn-official {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s var(--ease-brand), box-shadow 0.2s var(--ease-brand);
}

.btn-official:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.btn-official:active {
  transform: scale(0.98);
}

.verified-domain-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--subtle-foreground);
}

.domain-host {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sky-deep);
  font-weight: 500;
}

/* Estado Vacío */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface-sky);
  border: 1px dashed var(--border-sky-strong);
  border-radius: 18px;
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--background);
  border: 1px solid var(--border-sky);
  color: var(--sky-primary);
  display: grid;
  place-items: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 0 auto 20px;
  max-width: 440px;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

/* ==========================================================================
   Sección Portales Oficiales Prioritarios
   ========================================================================== */
.hubs-section {
  padding: 76px 0;
  background: var(--surface-subtle);
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-desc {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.98rem;
}

.hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 16px;
  background: var(--background);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all 0.24s var(--ease-brand);
}

.hub-card:hover {
  border-color: var(--border-sky-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.hub-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-sky);
  border: 1px solid var(--border-sky);
  color: var(--sky-deep);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.hub-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hub-card p {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--muted-foreground);
  line-height: 1.52;
}

.hub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sky-primary);
}

/* ==========================================================================
   Sección Pilares de Identidad OportunAR
   ========================================================================== */
.principles-section {
  padding: 72px 0;
  background: var(--background);
  border-top: 1px solid var(--border-subtle);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.principle-card {
  padding: 26px;
  border-radius: 18px;
  background: var(--surface-sky);
  border: 1px solid var(--border-sky);
}

.principle-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--background);
  border: 1px solid var(--border-sky);
  color: var(--sky-primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.principle-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.principle-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-foreground);
  line-height: 1.58;
}

/* ==========================================================================
   Footer Institucional OportunAR + Crédito Emiliano Zarza
   ========================================================================== */
.footer {
  padding: 44px 0 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-block {
  max-width: 460px;
}

.footer-tagline {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted-foreground);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--sky-primary);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--subtle-foreground);
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--muted-foreground);
}

.developer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--foreground);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--background);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s var(--ease-brand);
}

.developer-link:hover {
  color: var(--sky-primary);
  border-color: var(--border-sky-strong);
  background: var(--surface-sky);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

/* ==========================================================================
   Modales (Ficha de Oportunidad y Lista de Guardadas)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--background);
  border: 1px solid var(--border-sky);
  border-radius: 22px;
  box-shadow: var(--shadow-modal);
  padding: 28px;
  position: relative;
  animation: modalEnter 0.26s var(--ease-brand);
}

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

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--background);
  color: var(--muted-foreground);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--surface-sky);
  color: var(--sky-deep);
  border-color: var(--border-sky-strong);
}

.modal-id-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--sky-deep);
  background: var(--surface-sky);
  border: 1px solid var(--border-sky);
  padding: 3px 10px;
  border-radius: 999px;
}

.modal-title {
  margin: 10px 0 6px;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-right: 40px;
}

.modal-inst {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--sky-primary);
  font-weight: 600;
}

.modal-grid-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.spec-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle-foreground);
  margin-bottom: 3px;
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--foreground);
}

.modal-section-title {
  margin: 18px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.modal-summary-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.req-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.req-check {
  color: var(--sky-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.lang-reassurance {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.modal-cta-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-cta-secondary {
  display: flex;
  gap: 8px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-brand);
}

.btn-secondary:hover {
  border-color: var(--border-sky-strong);
  background: var(--surface-sky);
  color: var(--sky-deep);
}

.btn-official-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff;
  font-size: 0.91rem;
  font-weight: 700;
  box-shadow: var(--shadow-cta);
  transition: all 0.2s var(--ease-brand);
}

.btn-official-lg:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

/* Lista de Guardadas */
.saved-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.saved-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2px;
}

.saved-item-sub {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.saved-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Toast Minimalista */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 120;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--foreground);
  border: 1px solid var(--sky-accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s var(--ease-brand);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .animate-pulse-sky,
  .marquee-track {
    animation: none !important;
  }
}

/* ==========================================================================
   Adaptabilidad Móvil y Tablet
   ========================================================================== */
@media (max-width: 980px) {
  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 32px 0 24px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 16px;
    padding: 14px 18px;
  }
  .filters-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .level-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .tab-btn {
    white-space: nowrap;
  }
  .modal-grid-specs {
    grid-template-columns: 1fr;
  }
  .kbd-hint,
  .traffic-legend,
  .brand-kicker {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
