/* 
===============================================
TIMELINE.CSS - Timeline vertical del evento (VERSIÓN CORREGIDA)
===============================================
Estilos para la línea de tiempo que muestra
los detalles del casamiento con iconos a la izquierda.
*/

/* CONTENEDOR PRINCIPAL DEL TIMELINE */
.timeline {
  background: #fefefe;
  position: relative;
}

.timeline-title {
  color: #2c2c2c;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(
    135deg,
    var(--color-lila-oscuro) 0%,
    var(--color-lila-principal) 100%
  );
  border-radius: 2px;
}

/* CONTENEDOR DE LA LÍNEA DE TIEMPO */
.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* ELEMENTOS DEL TIMELINE */
.timeline-item {
  margin-bottom: 3rem;
  opacity: 0;
  animation: slideInFromLeft 0.8s ease-out forwards;
  position: relative;
}

/* CONTENIDO DEL TIMELINE - LAYOUT FLEXBOX PARA ICONO + TEXTO */
.timeline-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(158, 133, 186, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--color-lila-principal);
}

/* ICONOS DEL TIMELINE */
.timeline-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--color-lila-oscuro) 0%,
    var(--color-lila-principal) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 25px var(--color-lila-principal);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-icon::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(158, 133, 186, 0.2);
  border-radius: 50%;
  z-index: -1;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon::before {
  transform: scale(1);
}

.timeline-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(15%) sepia(15%) saturate(1127%)
    hue-rotate(31deg) brightness(95%) contrast(91%);
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(158, 133, 186, 0.4);
}

/* CONTENIDO DE TEXTO - ALINEADO A LA DERECHA */
.timeline-content > div:last-child {
  flex: 1;
  text-align: right;
}

.timeline-content h3 {
  color: #2c2c2c;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 1.2rem;
}

/* BOTÓN DE GOOGLE MAPS */
.btn-maps {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    var(--color-lila-oscuro) 0%,
    var(--color-lila-principal) 100%
  );
  color: #2c2c2c;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--color-lila-principal);
}

.btn-maps:hover {
  background: linear-gradient(
    135deg,
    var(--color-lila-oscuro) 0%,
    var(--color-lila-principal) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--color-lila-principal);
  color: white;
}

/* ANIMACIONES */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .timeline-content {
    gap: 15px;
    padding: 20px 25px;
    border-radius: 12px;
  }

  .timeline-icon {
    width: 50px;
    height: 50px;
  }

  .timeline-icon::before {
    width: 50px;
    height: 50px;
  }

  .timeline-icon img {
    width: 25px;
    height: 25px;
  }

  .timeline-content h3 {
    font-size: 1.3rem;
  }

  .timeline-content p {
    font-size: 1.1rem;
  }

  .timeline-title::after {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .timeline-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .timeline-content > div:last-child {
    text-align: center;
  }

  .timeline-icon {
    width: 60px;
    height: 60px;
  }

  .timeline-icon img {
    width: 30px;
    height: 30px;
  }

  .timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .timeline-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Simplificar efectos en móvil */
  .timeline-content:hover {
    transform: translateY(-2px);
  }

  .timeline-item:hover .timeline-icon {
    transform: scale(1.05);
  }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  .timeline-item {
    animation: none;
    opacity: 1;
  }

  .timeline-content:hover,
  .timeline-item:hover .timeline-icon {
    transform: none;
  }

  .timeline-icon::before {
    display: none;
  }
}

/* MEJORAS PARA DISPOSITIVOS TÁCTILES */
@media (hover: none) {
  .timeline-content:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--color-lila-principal);
  }

  .timeline-item:hover .timeline-icon {
    transform: none;
    box-shadow: 0 8px 25px var(--color-lila-principal);
  }

  .timeline-icon::before {
    display: none;
  }
}

/* FOCUS PARA NAVEGACIÓN CON TECLADO */
.timeline-content:focus {
  outline: 2px solid var(--color-lila-principal);
  outline-offset: 2px;
}

/* ESTADOS ALTERNATIVOS PARA VARIACIÓN VISUAL */
.timeline-item:nth-child(even) .timeline-content {
  background: rgba(248, 248, 248, 0.9);
}

.timeline-item:nth-child(even) .timeline-content:hover {
  background: rgba(255, 255, 255, 0.95);
}
