.fase-header {
  box-shadow: 0px 6px 16px 0px #00000029;
  backdrop-filter: blur(20px);
}
.timeline-container {
  /* position: sticky; */
  bottom: 0px;
  left: 0;
}

/* Contenedor principal del slider */
/* #seccion-fases {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;

  will-change: transform;
}

.fase {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  will-change: transform;
  backface-visibility: hidden;
  width: 100%;
} */

.timeline-navigation {
  width: 100%;
  /* height: 100%; */
  position: relative;
}
.timeline-container {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  min-height: 100px;
}

.horizontal-line {
  position: absolute;
  top: 50%;
  width: 100vw;
  height: 3px;
  left: 0;
  border-bottom: 3px dashed #6e12c0;
  transform: translateY(-50%);
}

.fase-icon {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  height: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0;
}
.fase-1 {
  opacity: 1;
}
.fase-4 {
  left: auto;
  right: 0;
}
.flecha-h {
  opacity: 1;
  width: auto;
  height: 36px;
  left: 50%;
  transform: translate(-50%, -50%);
}
.fase .wp-block-list li {
  margin-bottom: 10px !important;
}

.fase-4-description {
  max-width: 553px;
  gap: 24px;
  opacity: 1;
  border-radius: 16px;
  padding: 24px;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  text-align: center;
  /* position: absolute;
  top: 50%;
  left: 0%; */
  /* transform: translateY(-50%); */
  background: #6e12c0;
  color: white;
  opacity: 0;
  margin-right: 120px;
  height: 0;
  pointer-events: none;
}

/* ******************************* */
/* Contenedor principal del slider */
#seccion-fases {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  will-change: transform;
}

/* Estilo de cada slide individual */
.fase {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  will-change: transform;
  backface-visibility: hidden;
  width: 100%;
}

.mobile-navigation .next,
.mobile-navigation .back {
  display: none;
}
/* ESTILOS PARA MÓVIL - MUY SIMPLE */
@media (max-width: 768px) {
  .fase-icon,
  .timeline-container .fase-4 {
    max-height: 80px;
  }

  /* Contenedor se adapta al contenido */
  #seccion-fases {
    height: auto !important;
    min-height: 100vh;
    /* overflow: visible !important; */
  }

  /* Slides uno debajo del otro, solo visible el activo */
  .fase {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    min-height: 100vh;
    padding: 2rem 1rem;
    display: none; /* Controlado por JS */
  }

  /* Botones de navegación móvil */
  .mobile-navigation .next,
  .mobile-navigation .back {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 8px;
    transition: all 0.3s ease;
  }

  .mobile-navigation .next:hover,
  .mobile-navigation .back:hover {
    background: #0056b3;
  }

  .mobile-navigation .next:disabled,
  .mobile-navigation .back:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
}

/* Contenido del slide con scroll */
.fase-content {
  height: auto;
  overflow-y: auto;
  padding: 1rem;
}

/* Ajustes adicionales para contenido en móvil */
.fase h2,
.fase h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.fase p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Timeline en móvil (si aplica) */
.timeline-container {
  position: relative;
  /* margin-top: 2rem; */
}

/* .horizontal-line {
  display: none; 
} */

/* ESTILOS PARA TABLETS */
@media (min-width: 769px) and (max-width: 1024px) {
  .fase {
    padding: 2rem;
  }

  .fase h2,
  .fase h3 {
    font-size: clamp(2rem, 3vw, 2.8rem);
  }

  .fase p {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }
}

/* OPTIMIZACIONES ADICIONALES */
/* Smooth scroll para mejor experiencia */
html {
  scroll-behavior: smooth;
}

/* Prevenir zoom en inputs en iOS */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Indicador de transición (opcional) */
.slide-transition-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slide-transition-indicator.active {
  opacity: 1;
}

/* Botones de navegación móvil (opcional) */
.mobile-navigation {
  /* position: absolute; */
  /* bottom: 100%; */
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  margin-bottom: 16px;
}

.mobile-nav-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.mobile-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Indicadores de slide (puntos) */
.slide-indicators {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.slide-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator.active {
  background: white;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .slide-indicators {
    bottom: 0.5rem;
  }

  .slide-indicator {
    width: 8px;
    height: 8px;
  }
}
