/* =========================================
   APEX | SLIDER PRINCIPAL
   Tipografía: Montserrat
   Colores: azul, blanco y negro corporativos
   ========================================= */

/* MONTSERRAT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* CONFIGURACIÓN GENERAL */
#apexSlider,
#apexSlider * {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif !important;
}

#apexSlider {
  --apex-blue: #203c80;
  --apex-blue-hover: #1B3060;
  --apex-white: #F0F0F0;
  --apex-black: #000000;
  --apex-whatsapp: #25D366;

  position: relative;
  display: block;
  width: 100%;
  height: clamp(420px, 44vw, 650px);
  overflow: hidden;
  background: var(--apex-black);
  isolation: isolate;
}

/* ESTRUCTURA DEL SLIDER */
#apexSlider .apex-slides,
#apexSlider .apex-slide {
  position: absolute;
  inset: 0;
}

#apexSlider .apex-slide {
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}

#apexSlider .apex-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* CAPA OSCURA PARA LEGIBILIDAD */
#apexSlider .apex-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .78) 0%,
    rgba(0, 0, 0, .55) 42%,
    rgba(0, 0, 0, .20) 100%
  );
  pointer-events: none;
}

/* CONTENIDO */
#apexSlider .apex-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 82%);
  margin: 0 auto;
  padding: 35px 0 55px;
  color: var(--apex-white);
}

/* ETIQUETA SUPERIOR */
#apexSlider .apex-tag {
  display: block;
  margin: 0 0 20px;
  color: var(--apex-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* TÍTULO PRINCIPAL */
#apexSlider .apex-content h1 {
  max-width: 760px;
  margin: 0 0 22px;
  padding: 0;
  color: #FFFFFF;
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  text-transform: none;
}

/* DESCRIPCIÓN */
#apexSlider .apex-content p {
  max-width: 500px;
  margin: 0 0 30px;
  padding: 0;
  color: #F0F0F0;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.8;
}

/* CONTENEDOR DE BOTONES */
#apexSlider .apex-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ESTILO BASE DE BOTONES */
#apexSlider .apex-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin: 0;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    background .25s ease,
    border-color .25s ease,
    color .25s ease;
}

#apexSlider .apex-btn span {
  font-size: 19px;
  line-height: 1;
}

#apexSlider .apex-btn svg {
  display: block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
}

/* BOTÓN PRINCIPAL: AZUL APEX */
#apexSlider .apex-btn-primary {
  background: var(--apex-blue);
  border-color: var(--apex-blue);
  color: #FFFFFF !important;
}

#apexSlider .apex-btn-primary:hover {
  background: var(--apex-blue-hover);
  border-color: var(--apex-blue-hover);
  color: #FFFFFF !important;
}

/* BOTÓN WHATSAPP */
#apexSlider .apex-btn-whatsapp {
  background: var(--apex-whatsapp);
  border-color: var(--apex-whatsapp);
  color: #FFFFFF !important;
}

#apexSlider .apex-btn-whatsapp:hover {
  background: #1EAE54;
  border-color: #1EAE54;
  color: #FFFFFF !important;
}

/* FLECHAS DE NAVEGACIÓN */
#apexSlider .apex-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease;
}

#apexSlider .apex-arrow:hover {
  background: var(--apex-blue);
}

#apexSlider .apex-prev {
  left: 18px;
}

#apexSlider .apex-next {
  right: 18px;
}

/* INDICADORES */
#apexSlider .apex-dots {
  position: absolute;
  z-index: 5;
  bottom: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

#apexSlider .apex-dot {
  display: block;
  width: 26px;
  height: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}

#apexSlider .apex-dot.active {
  width: 40px;
  background: #FFFFFF;
}

/* =========================================
   TABLET: 768px A 1024px
   ========================================= */
@media (min-width: 768px) and (max-width: 1024px) {

  #apexSlider {
    height: 520px;
  }

  #apexSlider .apex-content {
    width: 82%;
  }

  #apexSlider .apex-content h1 {
    font-size: 50px;
    line-height: 1.12;
  }

  #apexSlider .apex-content p {
    max-width: 440px;
    font-size: 16px;
  }

  #apexSlider .apex-buttons {
    gap: 10px;
  }

  #apexSlider .apex-btn {
    min-height: 48px;
    padding: 13px 15px;
    font-size: 13px;
  }

  #apexSlider .apex-arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  #apexSlider .apex-prev {
    left: 8px;
  }

  #apexSlider .apex-next {
    right: 8px;
  }
}

/* =========================================
   MÓVIL: HASTA 767px
   ========================================= */
@media (max-width: 767px) {

  #apexSlider {
    height: 520px;
    min-height: 480px;
    max-height: 620px;
  }

  #apexSlider .apex-slide {
    background-position: center center;
  }

  #apexSlider .apex-overlay {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, .80) 0%,
      rgba(0, 0, 0, .55) 100%
    );
  }

  #apexSlider .apex-content {
    width: 80%;
    padding: 25px 0 35px;
  }

  #apexSlider .apex-tag {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 1.8px;
    line-height: 1.7;
  }

  #apexSlider .apex-content h1 {
    margin-bottom: 16px;
    font-size: clamp(32px, 8.5vw, 44px);
    line-height: 1.12;
    letter-spacing: -.5px;
  }

  #apexSlider .apex-content p {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.6;
  }

  /* BOTONES APILADOS EN MÓVIL */
  #apexSlider .apex-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 290px;
    gap: 10px;
  }

  #apexSlider .apex-btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 10px;
    font-size: 13px;
  }

  /* FLECHAS EN LA PARTE INFERIOR */
  #apexSlider .apex-arrow {
    top: auto;
    bottom: 17px;
    width: 30px;
    height: 30px;
    transform: none;
    font-size: 22px;
  }

  #apexSlider .apex-prev {
    left: 12px;
  }

  #apexSlider .apex-next {
    right: 12px;
  }

  #apexSlider .apex-dots {
    bottom: 30px;
    gap: 8px;
  }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  #apexSlider .apex-slide,
  #apexSlider .apex-btn,
  #apexSlider .apex-dot {
    transition: none;
  }
}

