/* ============================================================
   14. VISTA OPORTUNIDADES
   ============================================================ */

/* Navegación de Categorías */
.category-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-nav::-webkit-scrollbar {
  height: 4px;
}
.category-nav::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.btn-category {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-category i {
  font-size: 16px;
}

.btn-category:hover {
  background: var(--sky-100);
  border-color: var(--sky-200);
  color: var(--navy-900);
}

.btn-category.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

/* Mapa Interactivo */
.ge-map-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.ge-map-placeholder {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-ctrl-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.15s;
}

.map-ctrl-btn:hover {
  background: var(--sky-100);
  color: var(--navy-900);
}

.map-ctrl-btn + .map-ctrl-btn {
  border-top: 1px solid var(--line);
}

.ge-map-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ge-map-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.legend-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
}

.legend-items {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-900);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.ge-region-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ge-region-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--sky-100);
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.ge-region-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.ge-region-row:last-child {
  border-bottom: none;
}

.region-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
  display: flex;
  align-items: center;
}

.region-count {
  font-size: 14px;
  color: var(--slate);
  text-align: right;
}

.region-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.15s;
  text-decoration: none !important;
}

.region-link:hover {
  color: var(--teal-600);
}

@media (max-width: 900px) {
  .ge-map-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .ge-map-visual, .ge-map-data {
    display: contents !important;
  }
  
  .ge-map-visual > h2.section-title { order: 1; }
  .ge-map-visual > p { order: 2; margin-bottom: 10px !important; }
  
  .ge-map-data > div:first-child { 
    display: contents !important;
  }
  
  /* Filtros */
  .ge-map-filters {
    order: 3;
    align-self: flex-end !important;
    margin-bottom: 10px !important;
  }
  
  /* Contenedor del mapa */
  .ge-map-visual > .ge-map-container {
    order: 4;
    width: 100% !important;
  }
  .ge-map-visual > .ge-map-container #mapa-peru {
    height: 350px !important; 
  }
  
  /* Semáforo */
  .ge-map-legend {
    order: 5;
    margin-top: 10px !important;
    margin-bottom: 0px !important;
    text-align: left !important;
  }
  .ge-map-legend .legend-items {
    justify-content: flex-start !important;
  }
  
  /* Tabla de resultados */
  .ge-map-data > .ge-region-table {
    order: 6;
    margin-top: 5px !important;
  }

  /* Botón Ver todas */
  .ge-map-data > button {
    order: 7;
  }
}

/* --- EXTRACTED BLOCKS --- */
.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.op-body { 
  padding: 20px; 
  display: flex; 
  flex-direction: column;
  justify-content: space-between;
  flex: 1; 
}
.op-body-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.op-header {
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}
.op-body .tag { 
  align-self: flex-start; 
}
.op-title { 
  font-family: var(--font-heading); 
  font-weight: 800; 
  font-size: 16.5px; 
  margin-top: 4px; 
  margin-bottom: 0.5rem;
}
.op-meta { 
  font-size: 12px; 
  color: var(--slate); 
  display: flex; 
  flex-direction: row; 
  gap: 2px; 
  justify-content: space-between;
}
.op-body .btn { 
  width: 100%; 
  justify-content: center; 
  text-transform: uppercase; 
  font-size: 12px; 
  letter-spacing: 0.04em; 
  font-weight: 800; 
}
  .hero-grid {
    grid-template-columns: 1fr; 
  }
/* 5. Puntos de estado (Status dots) */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
/* 8. Tarjetas Visuales (Imágenes y Placeholders) */
.card-visual {
  height: 160px;
  background: var(--sky-100);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-visual.bg-white { background: #fff; }
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-visual .card-placeholder-icon {
  position: absolute;
  z-index: 2;
}
.card-visual .tag {
  top: 12px;
  left: 12px;
}
.card-visual .card-placeholder-icon {
  font-size: 30px;
  color: var(--slate-light);
  z-index: 1;
}
.hero-grid-2 {
  grid-template-columns: 1fr 1fr !important;
}
.op-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--slate);
  font-size: 13.5px;
  margin-bottom: 1rem;
}
.op-meta-stack span {
  display: block;
}
/* Hover states for bookmark icons */
.bookmark, .sc-bookmark-icon, .card-visual .card-bookmark, .curso-thumb .card-bookmark {
  transition: all 0.2s ease;
}
.bookmark:hover, .sc-bookmark-icon:hover, .card-visual .card-bookmark:hover, .curso-thumb .card-bookmark:hover {
  color: var(--teal-600);
  background: #fff;
}

/* ============================================================
   RESPONSIVE: HERO OPORTUNIDADES
   ============================================================ */
@media (max-width: 768px) {
  .hero-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-bottom: 20px;
  }
  
  .hero-copy h1 {
    font-size: 32px !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
  }
  .hero-copy p {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .hero-grid-2 .hero-visual {
    height: 240px !important; 
    margin-top: 10px;
    margin-bottom: 24px !important; 
  }

  .quick-card.quick-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    overflow-x: hidden !important;
    gap: 4px !important;
    padding: 20px 8px !important;
  }
  .quick-card.quick-4 .quick-item {
    flex: none !important;
    min-width: 0 !important;
    padding: 10px 4px !important;
  }
}
