/* ==========================================================================
   EXPERTISE SHOWCASE SECTION (INSPIRACIÓN EDITORIAL / PALABRAS CLAVE EN AZUL)
   Interactive Studio Showcase with Dynamic Headline & Flanking Visuals
   ========================================================================== */

.expertise-showcase-section {
  position: relative;
  width: 100%;
  background: #F8F9FB;
  color: #0A0C10;
  padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 6vw, 80px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(10, 12, 16, 0.08);
  border-bottom: 1px solid rgba(10, 12, 16, 0.08);
  box-sizing: border-box;
}

/* Background Ambient Lighting */
.expertise-showcase-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle at center, rgba(0, 113, 227, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.expertise-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Discipline Navigation Tabs at Top */
.expertise-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 16px);
  margin-bottom: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}

.expertise-tab-btn {
  background: #FFFFFF;
  border: 1px solid rgba(10, 12, 16, 0.1);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #71717A;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.expertise-tab-btn:hover {
  color: #0A0C10;
  border-color: rgba(10, 12, 16, 0.25);
  transform: translateY(-1px);
}

.expertise-tab-btn.is-active {
  background: #0A0C10;
  color: #FFFFFF;
  border-color: #0A0C10;
  box-shadow: 0 4px 14px rgba(10, 12, 16, 0.12);
}

.expertise-tab-btn.is-active .tab-num {
  color: #0071E3;
}

.tab-num {
  font-size: 0.6875rem;
  color: #A1A1A6;
  transition: color 0.25s ease;
}

/* Stage Layout: Flanking Visuals + Central Typography */
/* Stage Layout: Flanking Visuals + Central Typography */
.expertise-stage-grid {
  display: grid;
  grid-template-columns: clamp(210px, 20vw, 280px) minmax(500px, 1fr) clamp(210px, 20vw, 280px);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  position: relative;
  min-height: 420px;
}

/* Flanking Visual Cards */
.expertise-flank-col {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(10, 12, 16, 0.06);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
}

.expertise-flank-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.09);
}

.flank-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: absolute;
  inset: 0;
}

.flank-img.is-active {
  opacity: 1;
  position: relative;
  transform: scale(1);
}

.flank-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111111;
  z-index: 5;
}

/* Central Typography Box (Clean, Elegant Separation & Stable Size) */
.expertise-center-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(10px, 2vw, 24px);
  position: relative;
  min-height: 420px;
  box-sizing: border-box;
  gap: 16px; /* Physical spacing between pretitle, title, description, button */
}

.expertise-pretitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 500;
  color: #8E8E93;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1;
}

.expertise-main-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
  font-size: clamp(1.75rem, 2.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #0A0C10;
  margin: 0;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-wrap: balance;
}

.title-line-1,
.title-line-2 {
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: normal;
}

.title-line-1.is-animating,
.title-line-2.is-animating {
  opacity: 0;
  transform: translateY(6px);
}

/* Keyword in Vibrant Electric Blue */
.keyword-blue {
  color: #0071E3;
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Magenta Brand Dot */
.keyword-dot {
  color: #E11D48;
}

.expertise-desc {
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  color: #71717A;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
  transition: opacity 0.3s ease;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-wrap: balance;
}

.expertise-desc.is-animating {
  opacity: 0;
}

/* Pill CTA Button (Matching the Reference) */
.expertise-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(10, 12, 16, 0.22);
  background: #FFFFFF;
  color: #0A0C10;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-top: 6px;
}

.expertise-pill-btn:hover {
  background: #0A0C10;
  color: #FFFFFF;
  border-color: #0A0C10;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 12, 16, 0.15);
}

.expertise-pill-btn .btn-arrow {
  transition: transform 0.25s ease;
}

.expertise-pill-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Bottom Controls: Navigation Arrows & Dots */
.expertise-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: clamp(36px, 4vw, 52px);
}

.expertise-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(10, 12, 16, 0.12);
  background: #FFFFFF;
  color: #0A0C10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.expertise-arrow-btn:hover {
  background: #0A0C10;
  color: #FFFFFF;
  border-color: #0A0C10;
  transform: scale(1.06);
}

.expertise-dots-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expertise-dot-nav {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D1D1D6;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.expertise-dot-nav.is-active {
  background: #0071E3; /* The signature blue! */
  transform: scale(1.3);
  width: 22px;
  border-radius: 999px;
}

.expertise-dot-nav:hover:not(.is-active) {
  background: #8E8E93;
}

/* Responsive Tablet & Mobile (Locked Dimensions to Guarantee Zero Height Shift) */
@media (max-width: 980px) {
  .expertise-stage-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .expertise-flank-col {
    display: none; /* Keep focus on central editorial message on smaller screens */
  }
  .expertise-center-box {
    min-height: 340px;
    height: 340px;
  }
  .expertise-main-title {
    font-size: clamp(1.8rem, 5.2vw, 2.8rem);
    height: 120px;
  }
  .expertise-desc {
    height: 64px;
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .expertise-center-box {
    min-height: 360px;
    height: 360px;
  }
  .expertise-main-title {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
    height: 120px;
  }
  .expertise-desc {
    font-size: 0.88rem;
    height: 72px;
  }
}
