/* Experiencias Aplicadas — carousel (landing V2)
   Uses design tokens from styles.css / optupply-v2-theme.css */

.experiences-section {
  --exp-gap: 1.1rem;
  --exp-slides-visible: 1;
  --exp-card-pad: 1rem 1.05rem 1.1rem;
  --exp-visual-ratio: 16 / 10;
  border-bottom: 1px solid var(--line) !important;
  padding-top: clamp(3rem, 6vw, 4.5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 4.75rem) !important;
}

.experiences-inner {
  width: 100%;
  min-width: 0;
}

.experiences-header {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto 1.85rem;
  text-align: center;
}

.experiences-eyebrow.section-eyebrow {
  justify-content: center;
  width: 100%;
  margin-bottom: 0.85rem !important;
}

.experiences-heading {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.experiences-lead {
  margin: 0;
  color: #b4c0d2;
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.62;
  font-weight: 500;
}

.experiences-lead--secondary {
  margin-top: 0.7rem;
  color: #9eb0c8;
}

/* Carousel shell */
.exp-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
}

.exp-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.exp-carousel-nav {
  display: inline-flex;
  gap: 0.45rem;
}

.exp-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 24, 39, 0.9);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.exp-nav-btn:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.18);
}

.exp-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.exp-carousel-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.exp-track-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-md);
  cursor: grab;
  touch-action: pan-y;
}

.exp-track-viewport.is-dragging {
  cursor: grabbing;
}

.exp-track {
  --slide-w: calc(
    (100% - (var(--exp-slides-visible) - 1) * var(--exp-gap)) / var(--exp-slides-visible)
  );
  display: flex;
  gap: var(--exp-gap);
  margin: 0;
  padding: 0.15rem 0.1rem 0.35rem;
  list-style: none;
  width: 100%;
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .exp-track {
    transition: none;
  }

  .exp-nav-btn {
    transition: none;
  }
}

.exp-slide {
  flex: 0 0 var(--slide-w);
  min-width: 0;
  max-width: var(--slide-w);
}

/* Card — visual-first */
.exp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: var(--exp-card-pad);
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.exp-vertical {
  color: var(--brand-light);
}

.exp-meta-sep {
  color: var(--muted-2);
}

.exp-maturity {
  color: #9eb0c8;
  font-weight: 600;
}

.exp-title {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.exp-visual {
  position: relative;
  width: 100%;
  aspect-ratio: var(--exp-visual-ratio);
  margin: 0 0 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 20, 0.85);
  overflow: hidden;
}

.exp-visual picture,
.exp-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.exp-visual-caption {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.5rem;
  margin: 0;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  background: rgba(7, 11, 20, 0.78);
  color: #c5d0e0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.exp-copy {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.exp-block {
  min-width: 0;
}

.exp-block dt {
  margin: 0 0 0.18rem;
  color: var(--brand-light);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exp-block dd {
  margin: 0;
  color: #b7c3d4;
  font-size: 0.86rem;
  line-height: 1.4;
}

.exp-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.exp-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
}

.exp-dot.is-active {
  background: var(--brand-light);
  width: 1.15rem;
}

@media (min-width: 768px) {
  .experiences-section {
    --exp-slides-visible: 2;
  }
}

@media (min-width: 1200px) {
  .experiences-section {
    --exp-slides-visible: 3;
  }
}

@media (max-width: 575.98px) {
  .experiences-header {
    margin-bottom: 1.4rem;
  }

  .exp-card {
    border-radius: var(--radius-md);
  }

  .exp-visual {
    aspect-ratio: 16 / 11;
  }

  .exp-block dd {
    font-size: 0.88rem;
  }
}
