/* =====================
   HOME - HERO / CAROUSEL
===================== */
.hero {
  width: 100%;
}

.carousel {
  height: 60vh;
  position: relative;
  overflow: hidden;
}

/* Slides */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(10, 37, 64, 0.75),
    rgba(10, 37, 64, 0.55)
  );
}

/* Texto del slide */
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.slide-content h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}

.slide-content p {
  font-size: 19px;
  font-weight: 300;
  max-width: 980px;
}

/* =====================
   CAROUSEL CONTROLS
===================== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

/* Botón del slide */
.slide-btn {
  margin-top: 15px;
  background: #6299b9;
  color: #ffffff;
}

/* =====================
   VALUES
===================== */
.values {
  background: #f8fafc;
  padding: 120px 0;
}

.values-container {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.value-card {
  text-align: center;
  padding: 45px 35px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.1);
}

.value-card img {
  height: 80px;
  margin-bottom: 24px;
}

.value-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 14px;
}

.value-card p {
  font-size: 16px;
  font-weight: 400;
  color: #4a5d73;
  max-width: 320px;
  margin: auto;
}

/* =====================
   CTA HOME
===================== */
.home-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #68b3d3, #4699c9);
  color: #313131;
  text-align: center;
  padding: 110px 20px;
}

/* Luces decorativas */
.home-cta::before,
.home-cta::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: 0;
}

.home-cta::before {
  background: #ffffff;
  top: -120px;
  left: -120px;
}

.home-cta::after {
  background: #1f9bd1;
  bottom: -140px;
  right: -140px;
}

/* Contenido CTA */
.home-cta h2,
.home-cta p,
.home-cta .cta-btn {
  position: relative;
  z-index: 1;
}

.home-cta h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 14px;
}

.home-cta p {
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.home-cta .cta-btn {
  background: #ffffff;
  color: #147bb8;
  padding: 15px 38px;
  border-radius: 32px;
  font-weight: 600;
  font-size: 15px;
}

.home-cta .cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* =====================
   RESPONSIVE HOME
===================== */
@media (max-width: 1024px) {
  .slide-content h1 {
    font-size: 42px;
  }

  .values-container {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .carousel {
    height: 70vh;
  }

  .slide-content h1 {
    font-size: 34px;
  }

  .slide-content p {
    font-size: 17px;
  }

  .values-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-cta {
    padding: 90px 20px;
  }

  .home-cta h2 {
    font-size: 28px;
  }

  .home-cta p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .prev {
    left: 15px;
  }

  .next {
    right: 15px;
  }
}
/* =====================
   INDICADOR DESLIZAR - MOBILE
===================== */
.swipe-indicator {
  display: none;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
  animation: bounce 2s infinite ease-in-out;
}

.swipe-indicator span {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.swipe-indicator svg {
  width: 24px;
  height: 24px;
  fill: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* =====================
   RESPONSIVE MOBILE - OCULTAR FLECHAS Y MOSTRAR INDICADOR
===================== */
@media (max-width: 768px) {
  /* Ocultar flechas */
  .carousel-btn {
    display: none;
  }
  
  /* Mostrar indicador */
  .swipe-indicator {
    display: flex;
  }
  
  /* Ajustar padding del contenido para el indicador */
  .slide-content {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .swipe-indicator {
    bottom: 25px;
    font-size: 13px;
  }
  
  .swipe-indicator span {
    padding: 6px 14px;
  }
  
  .swipe-indicator svg {
    width: 20px;
    height: 20px;
  }
  
  .slide-content {
    padding-bottom: 70px;
  }
}