/* ════════════════════════════════════════════════════════
   experience.css
   ════════════════════════════════════════════════════════ */

#experience {
  padding: clamp(3.5rem, 6vw, 5rem) var(--px) var(--py);
  border-top: 1px solid var(--border);
  background: var(--s0);
}

/* ── Lista de empresas ────────────────────────────────── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ── Bloque empresa ───────────────────────────────────── */
.exp-empresa {
  border: 1px solid var(--border);
  overflow: visible;         /* IMPRESCINDIBLE para que sticky funcione */
  background: var(--s0);
  /* hover: borde superior naranja que entra desde la izquierda (igual que p-card) */
  box-shadow: inset 0 0 0 0 var(--orange);
  transition: box-shadow .35s ease;
  position: relative;
}
.exp-empresa::after {
  content: '';
  position: absolute;
  top: -1px; left: 0;       /* sobre el border superior existente */
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  pointer-events: none;
}
.exp-empresa:hover::after {
  transform: scaleX(1);
}

/* ── Header empresa: logo+nombre (izq) | periodo (der) ── */
.exp-empresa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.exp-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exp-logo-wrap {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  background: var(--s0);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.exp-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.exp-logo-ph {
  font-family: var(--fm); font-size: 0.6rem; font-weight: 500;
  color: var(--t3); letter-spacing: 0.04em;
}

.exp-empresa-name {
  font-family: var(--fh); font-size: 1rem;
  font-weight: 600; color: var(--t1);
}

/* periodo bold para que no se pierda sobre el fondo gris */
.exp-empresa-periodo {
  font-family: var(--fm); font-size: 0.65rem;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* ── Body: 2 columnas ─────────────────────────────────── */
.exp-empresa-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

/* ── Col puestos ──────────────────────────────────────── */
.exp-puestos-col {
  padding: 1.2rem 1.3rem 0.8rem;
  border-right: 1px solid var(--border);
}

/* ── Puesto: timeline + contenido ────────────────────── */
.exp-puesto {
  display: flex;
  gap: 0.9rem;
  padding-bottom: 1.4rem;
}
.exp-puesto:last-child {
  padding-bottom: 0.4rem;
}

/* columna del timeline */
.exp-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 14px;
  padding-top: 4px;
}

/* todos los puntos: naranja vivo, todos iguales */
.exp-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--s0), 0 0 0 3.5px var(--orange);
}

/* todas las líneas: naranja vivo, todos iguales (incluido el último) */
.exp-line {
  width: 1.5px;
  flex: 1;
  min-height: 12px;
  margin-top: 5px;
  background: var(--orange);
  opacity: 0.22;
}

/* contenido del puesto */
.exp-puesto-content { flex: 1; min-width: 0; }

/* título: font-weight 500 + 0.9rem para distinguir del texto */
.exp-puesto-title {
  font-family: var(--fh);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t1);
  margin-bottom: 0.22rem;
  line-height: 1.35;
}

.exp-puesto-area-sep { color: var(--t3); font-weight: 400; }

/* meta: periodo + badges */
.exp-puesto-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.exp-puesto-periodo {
  font-family: var(--fm); font-size: 0.6rem;
  color: var(--t3); letter-spacing: 0.1em;
}

/* badges de ubicación — todos grises */
.exp-ubicacion-badges { display: flex; gap: 0.28rem; }
.exp-ubicacion-badge {
  font-family: var(--fm); font-size: 0.52rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  background: var(--s1); color: var(--t2);
  border: 1px solid var(--border-h);
}

/* highlights */
.exp-puesto-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.exp-hl {
  font-size: 0.77rem; color: var(--t2);
  padding-left: 0.95rem; position: relative; line-height: 1.55;
}
.exp-hl::before {
  content: '';
  position: absolute; left: 0; top: 0.5rem;
  width: 5px; height: 1px;
  background: var(--orange); opacity: 0.5;
}

/* ── Col carrusel sticky ──────────────────────────────── */
.exp-carousel-col {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  align-self: start;              /* imprescindible para sticky en grid */
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem;
}

/* área visual del carrusel */
.exp-carousel-ph {
  width: 100%; height: 300px;
  background: var(--s1);
  border: 1px dashed var(--border-h);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.exp-carousel-ph-text {
  font-family: var(--fm); font-size: 0.56rem;
  color: var(--t3); letter-spacing: 0.1em;
  text-align: center; line-height: 1.9;
}

/* indicadores de imagen */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding-top: 0.65rem;
}
.carousel-ind {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(217,95,10,0.20);
  flex-shrink: 0;
  transition: all .2s;
}
.carousel-ind.active {
  width: 16px;
  border-radius: 3px;
  background: var(--orange);
}
