/* =========================================================================
   Habilidades Pane
   ========================================================================= */

#pane-habilidades {
  /* display: none; is handled by .tab-pane and .active class globally */
  padding: 24px;
  background-color: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 8px;
}

.habilidades-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.habilidades-header__title {
  font-size: 16px;
  font-weight: 700;
  color: #080B17;
  font-family: 'Lato', sans-serif;
  margin: 0;
}

.habilidades-filter-container {
  position: relative;
  display: flex;
  align-items: center;
}

.habilidades-filter-icon {
  cursor: pointer;
  color: #374151;
  transition: color 0.2s;
}

.habilidades-filter-icon:hover {
  color: #080B17;
}

.habilidades-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e8eaf0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-width: 200px;
  z-index: 100;
  display: none; /* hidden by default */
  flex-direction: column;
  overflow: hidden;
}

.habilidades-dropdown.show {
  display: flex;
}

.filter-option {
  padding: 10px 16px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.filter-option:hover {
  background-color: #f8f9fb;
}

.filter-option.active {
  background-color: #eaf1fb;
  color: #1b4e6b;
  font-weight: 600;
}

/* =========================================================================
   Habilidades Grid & Cards
   ========================================================================= */

.habilidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.habilidad-card {
  background: #ffffff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.habilidad-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.habilidad-card.hidden {
  display: none;
}

.habilidad-card__percent {
  font-size: 32px;
  font-weight: 800;
  color: #2F385E; /* Dark blue color from the design */
  font-family: 'Lato', sans-serif;
  line-height: 1.1;
}

.habilidad-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  font-family: 'Inter', sans-serif;
  min-height: 40px; /* Aligns badgets if titles span two lines */
}

.habilidad-card__badge {
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  width: max-content;
  font-weight: 500;
}
/* =========================================================================
   Experiencia Pane
   ========================================================================= */

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .exp-grid {
    grid-template-columns: 1fr;
  }
}

.exp-card {
  background: #ffffff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 24px;
}

.exp-card__header {
  font-size: 15px;
  font-weight: 700;
  color: #080B17;
  font-family: 'Lato', sans-serif;
  margin-top: 0;
  margin-bottom: 24px;
}

/* Timeline specific */
.exp-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.exp-timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}
.exp-timeline-item:last-child {
  padding-bottom: 0;
}

.exp-timeline-item::before {
  content: '';
  position: absolute;
  left: 19.5px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: #e8eaf0;
}
.exp-timeline-item:last-child::before {
  display: none;
}

/* Base list items */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.exp-list-item {
  display: flex;
  gap: 16px;
}
.exp-list-item.minimal-gap {
  gap: 16px;
}
.exp-list-item.align-center {
  align-items: center;
}
.exp-list-item.gap-md {
  gap: 16px;
}

/* Icon box */
.exp-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1; /* above timeline line */
}

/* Colors for icon boxes */
.bg-blue { background-color: #eaf1fb; }
.text-blue { color: #005be3; font-size: 20px;}

.bg-green { background-color: #e8f5e9; }
.text-green { color: #2e7d32; font-size: 20px;}

.bg-orange { background-color: #fff3e0; }
.text-orange { color: #e65100; font-size: 20px;}

.bg-pink { background-color: #fce4ec; }
.text-pink { color: #c2185b; font-size: 20px;}

/* Content styles */
.exp-content {
  flex: 1;
}

.exp-title {
  font-size: 13px;
  font-weight: 700;
  color: #080B17;
  font-family: 'Inter', sans-serif;
  margin: 0 0 2px 0;
}

.exp-title-plain {
  font-size: 13px;
  font-weight: 500;
  color: #080B17;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.exp-subtitle {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin: 0 0 4px 0;
}

.exp-date {
  font-size: 11px;
  color: #9aa0a8;
  font-family: 'Inter', sans-serif;
  margin: 0 0 8px 0;
}

.exp-desc {
  font-size: 13px;
  color: #374151;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.exp-desc-bold {
  font-size: 12px;
  font-weight: 600;
  color: #080B17;
  font-family: 'Inter', sans-serif;
  margin: 0 0 8px 0;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tags span {
  background-color: #f0f2f7;
  color: #374151;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* Split layout (for buttons) */
.exp-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.exp-btn {
  background: #ffffff;
  border: 1px solid #e8eaf0;
  color: #374151;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.exp-btn:hover {
  background: #f8f9fb;
  color: #080B17;
}

/* For minimal lists */
.minimal-gap .exp-date {
  margin-bottom: 0;
}

