/* ===== VARIABLES ===== */
:root {
  --azul-oscuro: #002060;
  --amarillo: #e6b546;
  --blanco: #ffffff;
  --gris: #7c7c7c;
  --transition: all 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ANIMACIONES GLOBALES ===== */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.slideInLeft {
  animation-name: slideInLeft;
}

.fadeIn {
  animation-name: fadeIn;
}

.delay-1 {
  animation-delay: 0.3s;
}
.delay-2 {
  animation-delay: 0.6s;
}
.delay-3 {
  animation-delay: 0.9s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION SLIDER  ===== */
.sect_slider_main {
  position: relative;
  width: 100%;
  height: calc(100vh - 112px);
  min-height: 500px;
  overflow: hidden;
}

.cycle-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

/* OVERLAY OSCURO  */
.cycle-slideshow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 32, 96, 0.55);
  z-index: 999;
  pointer-events: none;
}

.cycle-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* CAPTION - Z-INDEX CORREGIDO */
.slide_caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.caption_container {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.slide_head {
  text-align: center;
}

.slide_caption .slide_head h3 {
  color: var(--blanco);
  font-weight: 700;
  font-size: 38px;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slide_caption .slide_head h6 {
  color: var(--blanco);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.slide_buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn_whatsapp,
.btn_contacto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
}

.btn_whatsapp {
  background: #25d366;
  color: var(--blanco);
  border: 2px solid #25d366;
}

.btn_whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  text-decoration: none;
}

.btn_contacto {
  background: var(--azul-oscuro);
  color: var(--blanco);
  border: 2px solid var(--azul-oscuro);
}

.btn_contacto:hover {
  background: transparent;
  color: var(--blanco);
  border-color: var(--blanco);
  transform: translateY(-2px);
  text-decoration: none;
}

/* CONTROLES DEL SLIDER - Z-INDEX CORREGIDO */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 100px;
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.carousel-control-prev {
  left: 0;
}
.carousel-control-next {
  right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-control-prev .carousel-control-prev-icon:before {
  content: "\f104";
  font-family: "FontAwesome";
  background: var(--blanco);
  color: var(--azul-oscuro);
  width: 50px;
  height: 100px;
  line-height: 100px;
  text-align: center;
  font-size: 24px;
  position: absolute;
  display: block;
  transition: var(--transition);
}

.carousel-control-next .carousel-control-next-icon:before {
  content: "\f105";
  font-family: "FontAwesome";
  background: var(--azul-oscuro);
  color: var(--blanco);
  width: 50px;
  height: 100px;
  line-height: 100px;
  text-align: center;
  font-size: 24px;
  position: absolute;
  display: block;
  transition: var(--transition);
}

.carousel-control-prev:hover .carousel-control-prev-icon:before {
  background: var(--azul-oscuro);
  color: var(--blanco);
}

.carousel-control-next:hover .carousel-control-next-icon:before {
  background: var(--blanco);
  color: var(--azul-oscuro);
}

/* ===== SECTION POR QUÉ ELEGIRNOS ===== */
.sect_ventajas {
  padding: 80px 20px;
  background: var(--azul-oscuro);
}

.title-section {
  text-align: center;
  margin-bottom: 60px;
}

.title-section h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 15px;
}

.title-divider {
  width: 80px;
  height: 4px;
  background: var(--amarillo);
  margin: 0 auto;
  border-radius: 2px;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 768px) {
  .ventajas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ventajas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ventaja-box {
  padding: 30px 25px;
  background: var(--blanco);
  transition: var(--transition);
  border: none;
}

.ventaja-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.ventaja-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 32, 96, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.ventaja-box:hover .ventaja-icon {
  background: var(--azul-oscuro);
}

.ventaja-icon i {
  font-size: 36px;
  color: var(--azul-oscuro);
  transition: var(--transition);
}

.ventaja-box:hover .ventaja-icon i {
  color: var(--blanco);
}

.ventaja-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 12px;
}

.ventaja-content p {
  color: var(--gris);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== SECTION EXPERIENCIA Y CONFIANZA BANNER ===== */
.sect_experiencia_banner {
  background-image: url("../../../../public/img/nosotros/img_services.webp");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding: 80px 20px;
  position: relative;
}

.sect_experiencia_banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 32, 96, 0.92),
    rgba(0, 32, 96, 0.85)
  );
  z-index: 1;
}

.sect_experiencia_banner .container {
  position: relative;
  z-index: 2;
}

.experiencia-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.experiencia-content {
  text-align: center;
  margin-bottom: 50px;
}

.experiencia-badge {
  width: 90px;
  height: 90px;
  background: var(--amarillo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 8px 20px rgba(230, 181, 70, 0.4);
}

.experiencia-badge i {
  font-size: 45px;
  color: var(--azul-oscuro);
}

.experiencia-content h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 20px;
  line-height: 1.3;
}

.experiencia-divider {
  width: 100px;
  height: 4px;
  background: var(--amarillo);
  margin: 0 auto 25px;
  border-radius: 2px;
}

.experiencia-text {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.experiencia-text strong {
  color: var(--amarillo);
  font-weight: 700;
}

.experiencia-subtitle {
  font-size: 15px;
  color: var(--amarillo);
  font-weight: 600;
  font-style: italic;
}

.experiencia-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .experiencia-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(230, 181, 70, 0.3);
  padding: 30px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--amarillo);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 50px;
  color: var(--amarillo);
}

.stat-info {
  text-align: left;
}

.stat-info h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 5px;
  line-height: 1;
}

.stat-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.experiencia-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn_conocenos,
.btn_consulta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
}

.btn_conocenos {
  background: var(--amarillo);
  color: var(--azul-oscuro);
  border: 2px solid var(--amarillo);
}

.btn_conocenos:hover {
  background: transparent;
  color: var(--amarillo);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 181, 70, 0.3);
  text-decoration: none;
}

.btn_consulta {
  background: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
}

.btn_consulta:hover {
  background: var(--blanco);
  color: var(--azul-oscuro);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Responsive para sección experiencia */
@media (max-width: 767px) {
  .experiencia-content h2 {
    font-size: 28px;
  }

  .experiencia-text {
    font-size: 15px;
  }

  .stat-box {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .stat-info {
    text-align: center;
  }

  .stat-icon i {
    font-size: 40px;
  }

  .stat-info h3 {
    font-size: 28px;
  }

  .btn_conocenos,
  .btn_consulta {
    padding: 12px 28px;
    font-size: 14px;
  }
}

/* ===== SECTION SERVICIOS ESPECIALIZADOS ===== */
.sect_servicios_especializados {
  padding: 80px 20px;
  background: var(--azul-oscuro);
}

.servicios-header {
  text-align: center;
  margin-bottom: 50px;
}

.servicios-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 15px;
}

.servicios-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 640px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.servicio-box {
  background: var(--blanco);
  transition: var(--transition);
  overflow: hidden;
}

.servicio-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.servicio-content {
  padding: 30px 25px;
}

.servicio-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 32, 96, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.servicio-box:hover .servicio-icon {
  background: var(--azul-oscuro);
}

.servicio-icon i {
  font-size: 28px;
  color: var(--azul-oscuro);
  transition: var(--transition);
}

.servicio-box:hover .servicio-icon i {
  color: var(--blanco);
}

.servicio-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 12px;
}

.servicio-content p {
  color: var(--gris);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
  min-height: 60px;
}

.servicio-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.servicio-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gris);
}

.servicio-features i {
  color: #10b981;
  font-size: 16px;
}

/* ===== SECTION VALORES CON BANNER ===== */
.sect_valores_banner {
  background-image: url("../../../../public/img/fondo/fondobanner.webp");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding: 80px 20px;
  position: relative;
}

.sect_valores_banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.sect_valores_banner .container {
  position: relative;
  z-index: 2;
}

.valores-header {
  text-align: center;
  margin-bottom: 50px;
}

.valores-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 15px;
}

.valores-divider {
  width: 80px;
  height: 4px;
  background: var(--amarillo);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.valores-header p {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.valores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 640px) {
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .valores-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.valor-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
}

.valor-card:hover {
  transform: translateY(-8px);
  background: var(--blanco);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.valor-icon {
  margin-bottom: 15px;
}

.valor-icon i {
  font-size: 48px;
  color: var(--amarillo);
  transition: var(--transition);
}

.valor-card:hover .valor-icon i {
  transform: scale(1.1);
  color: var(--azul-oscuro);
}

.valor-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.valor-card p {
  font-size: 13px;
  color: var(--gris);
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .sect_slider_main {
    height: 80vh;
  }

  .slide_caption .slide_head h3 {
    font-size: 32px;
  }

  .slide_caption .slide_head h6 {
    font-size: 16px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 80px;
  }

  .carousel-control-prev .carousel-control-prev-icon:before,
  .carousel-control-next .carousel-control-next-icon:before {
    width: 40px;
    height: 80px;
    line-height: 80px;
    font-size: 20px;
  }

  .sect_ventajas,
  .sect_servicios_especializados,
  .sect_valores_banner,
  .sect_experiencia_banner {
    padding: 60px 20px;
  }

  .title-section h2,
  .servicios-header h2,
  .valores-header h2,
  .experiencia-content h2 {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .sect_slider_main {
    height: 70vh;
    min-height: 450px;
  }

  .slide_caption .slide_head h3 {
    font-size: 26px;
  }

  .slide_caption .slide_head h6 {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .slide_buttons {
    gap: 10px;
  }

  .btn_whatsapp,
  .btn_contacto {
    padding: 10px 24px;
    font-size: 14px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .title-section h2,
  .servicios-header h2,
  .valores-header h2,
  .experiencia-content h2 {
    font-size: 26px;
  }

  .ventaja-content h3,
  .servicio-content h3,
  .valor-card h4 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .sect_slider_main {
    height: 100vh;
    min-height: 400px;
  }

  .slide_caption .slide_head h3 {
    font-size: 22px;
  }

  .slide_caption .slide_head h6 {
    font-size: 14px;
  }

  .btn_whatsapp,
  .btn_contacto {
    padding: 10px 20px;
    font-size: 13px;
  }
}
