/* =====================================================================
   PRODYTEC S.A.C. — ESTILOS DE EXPERIENCIA (experiencia.css)
   Estilos específicos de la página casos-exito.html (galerías y
   bloques de experiencia por sector). Se carga DESPUÉS de styles.css.
   ===================================================================== */

/* =====================================================
   EXPERIENCIA APLICADA - SECTORES + PORTAFOLIO
   1) Hero  2) Todos los sectores  3) Proyectos por sector
   ===================================================== */
.experience-page {
  background: #f4f7fb;
  color: #0f1f33
}

.experience-hero {
  position: relative;
  min-height: calc(100svh - 105px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000080;
  color: #fff
}

.experience-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 80, .94), rgba(0, 0, 128, .74), rgba(0, 0, 80, .48)), linear-gradient(180deg, rgba(0, 0, 80, .22), rgba(0, 0, 80, .86)), url("assets/imagenes/experiencia-hero.jpg") center/cover no-repeat
}

.experience-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 80, .35), transparent 70%)
}

.experience-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto
}

.experience-kicker,
.exp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #00cfe8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase
}

.experience-kicker::before,
.exp-eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: #00cfe8
}

.experience-hero h1 {
  max-width: 760px;
  margin: 24px 0 22px;
  color: #fff;
  font-size: clamp(42px, 4.8vw, 78px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.055em;
  text-transform: uppercase
}

.experience-title-accent {
  display: block;
  color: #38e7f7
}

.experience-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.58;
  font-weight: 600
}

.experience-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px
}

.experience-hero-actions a,
.exp-sector-btn,
.exp-project-card a,
.exp-final-actions a {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease
}

.experience-hero-actions a:first-child {
  background: #fff;
  color: #000080
}

.experience-hero-actions a:last-child {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .32)
}

.exp-sector-btn,
.exp-project-card a,
.exp-final-actions a:first-child {
  background: #000080;
  color: #fff
}

.exp-sector-btn:hover,
.exp-project-card a:hover,
.experience-hero-actions a:hover,
.exp-final-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 80, .18)
}

.experience-kicker {
  opacity: 0;
  animation: servicesFadeUp .7s ease forwards;
  animation-delay: .20s
}

.experience-hero h1 {
  opacity: 0;
  animation: servicesTitleIn .95s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: .48s
}

.experience-hero p {
  opacity: 0;
  animation: servicesFadeUp .75s ease forwards;
  animation-delay: .78s
}

.experience-hero-actions {
  opacity: 0;
  animation: servicesFadeUp .75s ease forwards;
  animation-delay: 1.05s
}

.exp-intro {
  background: #f4f7fb;
  padding: 96px 24px 80px;
  color: #000080
}

.exp-intro-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center
}

.exp-intro h2 {
  max-width: 880px;
  margin: 16px auto 18px;
  color: #000080;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.045em
}

.exp-intro p {
  max-width: 860px;
  margin: 0 auto;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 600
}

.exp-sector-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px
}

.exp-sector-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #000080;
  border: 1px solid rgba(0, 0, 128, .10);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none
}

.exp-sector {
  padding: 105px 24px
}

.exp-sector-light {
  background: #fff
}

.exp-sector-soft {
  background: #eef3f8
}

.exp-sector-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 58px;
  align-items: center
}

.exp-sector-reverse .exp-sector-media {
  order: 2
}

.exp-sector-reverse .exp-sector-copy {
  order: 1
}

.exp-sector-media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background: #000080;
  box-shadow: 0 28px 75px rgba(0, 0, 80, .14)
}

.exp-media-slider {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.exp-media-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: expImageLoop 12s infinite
}

.exp-media-slider img:nth-child(1) {
  animation-delay: 0s
}

.exp-media-slider img:nth-child(2) {
  animation-delay: 4s
}

.exp-media-slider img:nth-child(3) {
  animation-delay: 8s
}

.exp-sector-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 80, .05), rgba(0, 0, 80, .80)), linear-gradient(90deg, rgba(0, 0, 80, .35), transparent)
}

.exp-media-dots {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 8px
}

.exp-media-dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55)
}

.exp-media-dots i:nth-child(2) {
  background: #00cfe8
}

.exp-media-caption {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 34px;
  color: #fff
}

.exp-media-caption span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #00e5ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase
}

.exp-media-caption span::before {
  content: "";
  width: 34px;
  height: 2px;
  background: #00e5ff
}

.exp-media-caption strong {
  display: block;
  max-width: 460px;
  color: #fff;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1.05;
  font-weight: 900
}

.exp-sector-copy h2 {
  margin: 18px 0 22px;
  color: #000080;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.045em
}

.exp-sector-copy>p {
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 600
}

.exp-tags-box {
  margin: 28px 0 30px;
  padding: 26px;
  border-radius: 22px;
  background: #f4f7fb;
  border: 1px solid rgba(0, 0, 128, .10)
}

.exp-tags-box h3 {
  margin: 0 0 16px;
  color: #000080;
  font-size: 17px;
  font-weight: 900
}

.exp-tags-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.exp-tags-box span {
  padding: 10px 15px;
  border-radius: 999px;
  background: #fff;
  color: #000080;
  font-size: 13px;
  font-weight: 900
}

.exp-projects-master {
  background: #f4f7fb;
  padding: 110px 24px 118px
}

.exp-projects-master-head {
  width: min(1180px, calc(100% - 48px));
  max-width: 900px;
  margin: 0 auto 72px;
  text-align: center
}

.exp-projects-master-head h2 {
  margin: 16px 0 16px;
  color: #000080;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.045em
}

.exp-projects-master-head p {
  margin: 0 auto;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 600
}

.exp-work-section {
  padding: 86px 0 100px;
  border-top: 1px solid rgba(0, 0, 128, .08);
  scroll-margin-top: 120px
}

.exp-work-section:first-of-type {
  padding-top: 0;
  border-top: 0
}

.exp-work-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto
}

.exp-work-head {
  max-width: 900px;
  margin-bottom: 44px
}

.exp-work-head h2 {
  margin: 16px 0 16px;
  color: #000080;
  font-size: clamp(36px, 3.8vw, 58px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.045em
}

.exp-work-head p {
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 600
}

.exp-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px
}

.exp-project-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 128, .08);
  box-shadow: 0 26px 70px rgba(0, 0, 80, .11);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease
}

.exp-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 85px rgba(0, 0, 80, .18);
  border-color: rgba(0, 207, 232, .38)
}

.exp-project-media {
  position: relative;
  height: clamp(220px, 18vw, 250px);
  overflow: hidden;
  background: #000080
}

.exp-project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: expImageLoop 12s infinite
}

.exp-project-media img:nth-child(1) {
  animation-delay: 0s
}

.exp-project-media img:nth-child(2) {
  animation-delay: 4s
}

.exp-project-media img:nth-child(3) {
  animation-delay: 8s
}

.exp-project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 80, .05), rgba(0, 0, 80, .72))
}

.exp-project-body {
  padding: 28px
}

.exp-project-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #00cfe8;
  color: #000080;
  font-size: 14px;
  font-weight: 900
}

.exp-project-location {
  display: block;
  margin-bottom: 10px;
  color: #00aeca;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase
}

.exp-project-card h3 {
  margin: 0 0 16px;
  color: #000080;
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.035em
}

.exp-project-card p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600
}

.exp-project-detail {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #f4f7fb
}

.exp-project-detail strong {
  display: block;
  margin-bottom: 8px;
  color: #000080;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase
}

.exp-project-card a {
  margin-top: 22px
}

.exp-final-cta {
  background: #eef3f8;
  color: #000080;
  text-align: center;
  padding: 98px 24px 108px
}

.exp-final-cta span {
  color: #00aeca;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase
}

.exp-final-cta h2 {
  max-width: 900px;
  margin: 12px auto 18px;
  color: #000080;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.045em
}

.exp-final-cta p {
  max-width: 760px;
  margin: 0 auto 32px;
  color: #334155;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600
}

.exp-final-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap
}

.exp-final-actions a:last-child {
  background: #fff;
  color: #000080;
  border: 1px solid rgba(0, 0, 128, .18)
}

@keyframes expImageLoop {
  0% {
    opacity: 0;
    transform: scale(1.04)
  }

  8% {
    opacity: 1;
    transform: scale(1)
  }

  30% {
    opacity: 1;
    transform: scale(1)
  }

  38% {
    opacity: 0;
    transform: scale(1.04)
  }

  100% {
    opacity: 0;
    transform: scale(1.04)
  }
}

@media(max-width:1050px) {
  .exp-sector-inner {
    grid-template-columns: 1fr
  }

  .exp-sector-reverse .exp-sector-media,
  .exp-sector-reverse .exp-sector-copy {
    order: initial
  }

  .exp-project-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:760px) {
  .experience-hero {
    min-height: auto;
    padding: 130px 0 90px
  }

  .experience-hero-inner,
  .exp-intro-inner,
  .exp-sector-inner,
  .exp-work-inner,
  .exp-projects-master-head {
    width: min(100% - 36px, 1180px)
  }

  .exp-sector,
  .exp-projects-master {
    padding-left: 0;
    padding-right: 0
  }

  .exp-sector {
    padding-top: 78px;
    padding-bottom: 78px
  }

  .exp-sector-media {
    min-height: 340px
  }

  .exp-project-grid {
    grid-template-columns: 1fr
  }

  .exp-project-media {
    height: 220px
  }

  .experience-hero-actions,
  .exp-final-actions {
    flex-direction: column;
    align-items: stretch
  }

  .experience-hero-actions a,
  .exp-final-actions a {
    width: 100%
  }
}

/* =====================================================
   EXPERIENCIA - EFECTO HOVER EN BOTONES DE SECTORES
   ===================================================== */

.exp-sector-nav a {
  position: relative !important;
  overflow: hidden !important;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    background .25s ease,
    color .25s ease !important;
}

/* Brillo interno */
.exp-sector-nav a::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(0, 229, 255, .18) 45%,
      transparent 75%) !important;
  transform: translateX(-120%) !important;
  transition: transform .45s ease !important;
  pointer-events: none !important;
}

/* Al pasar el mouse */
.exp-sector-nav a:hover {
  transform: translateY(-5px) !important;
  background: #000080 !important;
  color: #ffffff !important;
  border-color: rgba(0, 229, 255, .75) !important;
  box-shadow:
    0 16px 34px rgba(0, 0, 128, .20),
    0 0 0 4px rgba(0, 229, 255, .12) !important;
}

/* Movimiento del brillo */
.exp-sector-nav a:hover::before {
  transform: translateX(120%) !important;
}

/* Al hacer clic / enfoque con teclado */
.exp-sector-nav a:focus-visible {
  outline: none !important;
  background: #000080 !important;
  color: #ffffff !important;
  border-color: #00e5ff !important;
  box-shadow:
    0 0 0 4px rgba(0, 229, 255, .25),
    0 16px 34px rgba(0, 0, 128, .20) !important;
}

/* Click más natural */
.exp-sector-nav a:active {
  transform: translateY(-2px) scale(.98) !important;
}

/* =====================================================
   CARRUSEL DE 4 Y 5 IMÁGENES PARA TARJETAS Y SECTORES
   Pegar al final de experiencia.css
   ===================================================== */

/* Para carruseles de 4 imágenes */
.exp-project-media-4 img:nth-child(1) {
  animation-delay: 0s !important;
}

.exp-project-media-4 img:nth-child(2) {
  animation-delay: 3s !important;
}

.exp-project-media-4 img:nth-child(3) {
  animation-delay: 6s !important;
}

.exp-project-media-4 img:nth-child(4) {
  animation-delay: 9s !important;
}

.exp-project-media-4 img {
  animation-name: expImageLoop4 !important;
  animation-duration: 12s !important;
  animation-iteration-count: infinite !important;
}

/* Para carruseles de 5 imágenes */
.exp-media-slider-5 img:nth-child(1),
.exp-project-media-5 img:nth-child(1) {
  animation-delay: 0s !important;
}

.exp-media-slider-5 img:nth-child(2),
.exp-project-media-5 img:nth-child(2) {
  animation-delay: 3s !important;
}

.exp-media-slider-5 img:nth-child(3),
.exp-project-media-5 img:nth-child(3) {
  animation-delay: 6s !important;
}

.exp-media-slider-5 img:nth-child(4),
.exp-project-media-5 img:nth-child(4) {
  animation-delay: 9s !important;
}

.exp-media-slider-5 img:nth-child(5),
.exp-project-media-5 img:nth-child(5) {
  animation-delay: 12s !important;
}

.exp-media-slider-5 img,
.exp-project-media-5 img {
  animation-name: expImageLoop5 !important;
  animation-duration: 15s !important;
  animation-iteration-count: infinite !important;
}

/* Ocultar puntos decorativos si no están sincronizados */
.exp-media-dots {
  display: none !important;
}

/* Mejora visual para área de imagen */
.exp-sector-media,
.exp-project-media {
  background: #000080 !important;
}

.exp-project-media img,
.exp-media-slider img {
  object-fit: cover !important;
  object-position: center center !important;
}

/* Animación 4 imágenes */
@keyframes expImageLoop4 {
  0% {
    opacity: 0;
    transform: scale(1.045);
  }

  7% {
    opacity: 1;
    transform: scale(1);
  }

  23% {
    opacity: 1;
    transform: scale(1);
  }

  30% {
    opacity: 0;
    transform: scale(1.045);
  }

  100% {
    opacity: 0;
    transform: scale(1.045);
  }
}

/* Animación 5 imágenes */
@keyframes expImageLoop5 {
  0% {
    opacity: 0;
    transform: scale(1.045);
  }

  6% {
    opacity: 1;
    transform: scale(1);
  }

  18% {
    opacity: 1;
    transform: scale(1);
  }

  25% {
    opacity: 0;
    transform: scale(1.045);
  }

  100% {
    opacity: 0;
    transform: scale(1.045);
  }
}