/* Refinamientos visuales: hero comercial, soluciones compactas y respaldo AMICOM. */

/* ------------------------------------------------------------
   Hero showcase
   ------------------------------------------------------------ */

.hero-provider {
  --hero-rotation: 3400ms;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  min-height: 470px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 54, .12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 22%, rgba(33, 136, 230, .16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(238, 244, 249, .82));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-provider::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  right: -125px;
  bottom: -150px;
  border: 1px solid rgba(20, 103, 183, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(33, 136, 230, .035),
    0 0 0 96px rgba(33, 136, 230, .02);
}

.hero-provider-copy {
  position: relative;
  z-index: 5;
  max-width: 430px;
}

.hero-provider-kicker {
  margin: 0 0 9px;
  color: var(--blue-600);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-provider h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hero-provider h2 span {
  color: var(--blue-600);
}

.hero-provider-label {
  margin: 13px 0 0;
  color: var(--slate-600);
  font-size: .8rem;
  font-weight: 700;
  transition: opacity .22s ease, transform .22s ease;
}

.hero-provider-label.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.hero-showcase-stage {
  position: relative;
  min-height: 245px;
  margin: 8px 0 4px;
}

.hero-showcase-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(75%, 300px);
  aspect-ratio: 1;
  transform: translate(-50%, -46%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 136, 230, .13), rgba(33, 136, 230, 0) 66%);
  filter: blur(2px);
}

.hero-showcase-item {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(62%, 245px);
  max-height: 245px;
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, -42%) scale(.91);
  filter: drop-shadow(0 24px 28px rgba(7, 20, 38, .16));
  transition:
    opacity .62s cubic-bezier(.2, .75, .2, 1),
    transform .68s cubic-bezier(.2, .75, .2, 1),
    filter .68s ease;
  will-change: opacity, transform;
}

.hero-showcase-item.is-active {
  z-index: 3;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: drop-shadow(0 28px 34px rgba(7, 20, 38, .2));
}

.hero-showcase-progress {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.hero-showcase-progress span {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 31, 54, .12);
}

.hero-showcase-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-showcase-progress span.is-active::after {
  animation: heroShowcaseProgress var(--hero-rotation) linear forwards;
}

@keyframes heroShowcaseProgress {
  to { transform: scaleX(1); }
}

/* ------------------------------------------------------------
   Soluciones
   ------------------------------------------------------------ */

.solutions-layout {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr);
  gap: 16px;
  align-items: stretch;
}

.solutions-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.solution-tab {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 26px;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 16px 17px 16px 19px;
  border: 1px solid var(--slate-200);
  border-radius: 15px;
  background: #fbfcfd;
  color: var(--navy-950);
  text-align: left;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.solution-tab:hover {
  border-color: rgba(20, 103, 183, .25);
  background: var(--white);
}

.solution-tab:focus-visible {
  outline: 3px solid rgba(33, 136, 230, .24);
  outline-offset: 3px;
}

.solution-tab.is-active {
  border-color: rgba(20, 103, 183, .32);
  background: linear-gradient(135deg, rgba(20, 103, 183, .1), rgba(33, 136, 230, .025));
  box-shadow: inset 3px 0 0 var(--blue-600), 0 10px 26px rgba(7, 20, 38, .055);
}

.solution-tab-number {
  align-self: start;
  padding-top: 2px;
  color: var(--blue-600);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.solution-tab-copy {
  display: grid;
  gap: 4px;
}

.solution-tab-kicker {
  color: var(--slate-600);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.solution-tab-copy strong {
  max-width: 300px;
  font-size: .93rem;
  line-height: 1.22;
  letter-spacing: -.018em;
}

.solution-tab-arrow {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--slate-400);
  font-size: .85rem;
  transition: color .2s ease, transform .2s ease, background .2s ease;
}

.solution-tab.is-active .solution-tab-arrow {
  background: var(--blue-600);
  color: var(--white);
  transform: translateX(2px);
}

.solutions-panel {
  min-height: 376px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 54, .13);
  border-radius: var(--radius-md);
  background: var(--navy-950);
  box-shadow: 0 22px 52px rgba(7, 20, 38, .11);
}

.solution-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 26px;
  min-height: 376px;
  padding: 30px;
}

.solution-detail[hidden] {
  display: none;
}

.solution-detail-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.solution-detail-label {
  margin: 0 0 11px;
  color: #6dbaff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.solution-detail h3 {
  margin: 0;
  max-width: 560px;
  color: var(--white);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.solution-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.solution-capabilities span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .76);
  font-size: .72rem;
  font-weight: 700;
}

.solution-detail-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  color: #79c1ff;
  font-size: .76rem;
  font-weight: 800;
}

.solution-detail-action span {
  transition: transform .2s ease;
}

.solution-detail-action:hover span {
  transform: translateX(3px);
}

.solution-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 20%, rgba(33, 136, 230, .25), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .012));
}

.solution-visual::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -90px;
  top: -80px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .018);
}

.solution-visual img {
  position: relative;
  z-index: 2;
  width: min(76%, 185px);
  max-height: 225px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .2));
}

.solution-visual-pair .solution-visual-main {
  width: min(69%, 165px);
  transform: translate(-14px, -20px);
}

.solution-visual-pair .solution-visual-secondary {
  position: absolute;
  z-index: 3;
  right: 13px;
  bottom: 14px;
  width: min(43%, 92px);
  max-height: 115px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .065);
  backdrop-filter: blur(10px);
}

/* ------------------------------------------------------------
   AMICOM
   ------------------------------------------------------------ */

.section-amicom {
  padding: 34px 0 95px;
  background: var(--paper);
}

.amicom-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 30px 36px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .72);
}

.amicom-logo-wrap {
  display: grid;
  place-items: center;
  min-height: 125px;
  padding: 14px 26px 14px 0;
  border-right: 1px solid var(--slate-200);
}

.amicom-logo-wrap img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.amicom-copy {
  max-width: 760px;
}

.amicom-copy h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.amicom-copy > p {
  margin: 12px 0 0;
  color: var(--slate-600);
  font-size: .9rem;
}

@media (max-width: 1020px) {
  .hero-provider {
    min-height: 430px;
    padding: 26px;
  }

  .solutions-layout {
    grid-template-columns: 1fr;
  }

  .solutions-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-tab {
    min-height: 84px;
  }

  .solutions-panel,
  .solution-detail {
    min-height: 360px;
  }

  .amicom-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 26px;
    padding: 28px;
  }

  .amicom-logo-wrap {
    min-height: 110px;
    padding-right: 22px;
  }

  .amicom-logo-wrap img {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 780px) {
  .hero-provider {
    width: min(100%, 560px);
    min-height: 450px;
    margin-inline: auto;
  }

  .hero-showcase-stage {
    min-height: 235px;
  }

  .solutions-panel {
    min-height: 0;
  }

  .solution-detail {
    grid-template-columns: minmax(0, 1fr) 200px;
    min-height: 350px;
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .hero-provider {
    min-height: 420px;
    padding: 23px 20px;
    border-radius: 24px;
  }

  .hero-provider h2 {
    font-size: 1.7rem;
  }

  .hero-showcase-stage {
    min-height: 215px;
  }

  .hero-showcase-item {
    width: min(60%, 205px);
    max-height: 205px;
  }

  .solutions-nav {
    grid-template-columns: 1fr;
  }

  .solution-tab {
    min-height: 76px;
    padding: 14px 15px 14px 17px;
  }

  .solution-detail {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 535px;
    padding: 24px 20px;
  }

  .solution-detail h3 {
    font-size: 1.55rem;
  }

  .solution-detail-action {
    margin-top: 22px;
    padding-top: 0;
  }

  .solution-visual {
    min-height: 190px;
  }

  .solution-visual img {
    width: min(58%, 150px);
    max-height: 155px;
  }

  .solution-visual-pair .solution-visual-main {
    width: min(55%, 140px);
    transform: translate(-12px, -12px);
  }

  .solution-visual-pair .solution-visual-secondary {
    width: min(31%, 78px);
    max-height: 90px;
  }

  .section-amicom {
    padding: 10px 0 72px;
  }

  .amicom-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 21px;
  }

  .amicom-logo-wrap {
    justify-items: start;
    min-height: 0;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--slate-200);
  }

  .amicom-logo-wrap img {
    width: 78px;
    height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-showcase-item {
    transition: none;
  }

  .hero-showcase-progress span.is-active::after {
    animation: none;
    transform: scaleX(1);
  }
}
