/* ==========================================================================
   Terrabox Kids - Guía Paso a Paso (Carrusel)
   ========================================================================== */

/* Sección contenedora */
.guia-section {
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 60%, #ffffff 100%);
  padding: 70px 0 20px;
  overflow: hidden;
  position: relative;
}

/* Decoración superior */
.guia-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #8dc63f, #00aeef, #f7941d, #8dc63f);
  background-size: 200% 100%;
  animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Encabezado */
.guia-header {
  margin-bottom: 36px;
  padding: 0 16px;
}

.guia-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #1e3a1e;
  margin-bottom: 10px;
  line-height: 1.2;
}

.guia-title span {
  color: #8dc63f;
}

.guia-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: #4a7a4a;
  font-weight: 500;
  margin: 0;
}

/* Contenedor del carrusel + flechas */
.guia-carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Área de slides */
.guia-carousel {
  flex: 1;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(141, 198, 63, 0.2);
  background: #000;
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 520px;
}

/* Pista de slides */
.guia-slides {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Cada slide */
.guia-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.guia-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Transición de entrada desde la derecha */
.guia-slide.entering {
  opacity: 0;
  transform: translateX(40px) scale(0.98);
}

.guia-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f0fdf4;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Flechas de navegación */
.guia-arrow {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.guia-arrow-prev {
  background: #ffffff;
  color: #8dc63f;
  border: 2px solid #8dc63f;
}

.guia-arrow-prev:hover {
  background: #8dc63f;
  color: #ffffff;
  transform: scale(1.1) translateX(-3px);
  box-shadow: 0 6px 20px rgba(141, 198, 63, 0.4);
}

.guia-arrow-next {
  background: #8dc63f;
  color: #ffffff;
}

.guia-arrow-next:hover {
  background: #7ab332;
  transform: scale(1.1) translateX(3px);
  box-shadow: 0 6px 20px rgba(141, 198, 63, 0.5);
}

.guia-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

.guia-arrow:active {
  transform: scale(0.95) !important;
}

/* Indicadores dot */
.guia-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.guia-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #8dc63f;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.guia-dot.active {
  background: #8dc63f;
  transform: scale(1.4);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.25);
}

.guia-dot:hover:not(.active) {
  background: rgba(141, 198, 63, 0.4);
  transform: scale(1.2);
}

/* Contador de paso */
.guia-counter {
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4a7a4a;
  letter-spacing: 1px;
}

.guia-counter-current {
  font-size: 1.4rem;
  font-weight: 900;
  color: #8dc63f;
}

.guia-counter-sep {
  margin: 0 4px;
  color: #aac97a;
}

/* CTA */
.guia-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(141, 198, 63, 0.35);
  font-size: 1.05rem;
}

.guia-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(141, 198, 63, 0.45);
}

/* ===== Responsivo ===== */

/* Tablet */
@media (max-width: 768px) {
  .guia-section {
    padding: 50px 0 10px;
  }

  .guia-carousel-wrap {
    gap: 8px;
    padding: 0 6px;
  }

  .guia-arrow {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .guia-carousel {
    border-radius: 16px;
    max-height: 380px;
  }
}

/* Móvil */
@media (max-width: 480px) {
  .guia-section {
    padding: 40px 0 10px;
  }

  .guia-carousel-wrap {
    gap: 0;
    padding: 0;
    position: relative;
  }

  /* Flechas flotantes sobre la imagen en móvil */
  .guia-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #8dc63f !important;
    border-color: transparent !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .guia-arrow-prev {
    left: 8px;
  }

  .guia-arrow-next {
    right: 8px;
  }

  .guia-arrow:hover {
    transform: translateY(-50%) scale(1.05) !important;
    background: rgba(141, 198, 63, 0.9) !important;
    color: #fff !important;
  }

  .guia-carousel {
    width: 100%;
    border-radius: 0;
    max-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .guia-dot {
    width: 10px;
    height: 10px;
  }
}
