/* Reset y estilos base actualizados */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1c1a29 0%, #2d2640 50%, #1c1a29 100%);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* Estilos para el nuevo hero section */
.hero {
  background: linear-gradient(180deg, rgba(138, 43, 226, 0.2) 0%, rgba(28, 26, 41, 0) 100%);
  padding: 80px 20px 60px 20px;
  text-align: center;
  border-bottom: 2px solid rgba(138, 43, 226, 0.3);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8a2be2 0%, #b968ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para la nueva sección CTA con grid layout */
.cta-section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.cta-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
  background: rgba(138, 43, 226, 0.08);
  border: 2px solid rgba(138, 43, 226, 0.3);
  border-radius: 24px;
  padding: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(138, 43, 226, 0.2);
  transition: all 0.4s ease;
}

.cta-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(138, 43, 226, 0.4);
  border-color: rgba(138, 43, 226, 0.5);
}

.cta-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid rgba(138, 43, 226, 0.2);
}

.cta-image img {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(138, 43, 226, 0.6));
  transition: transform 0.3s ease;
}

.cta-image:hover img {
  transform: scale(1.05) rotate(2deg);
}

.cta-info h2 {
  font-size: 2.2rem;
  color: #b968ff;
  margin-bottom: 25px;
  font-weight: 700;
  text-align: left;
}

.cta-description p {
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.cta-description p:last-child {
  margin-bottom: 0;
}

/* Estilos para la nueva sección de journey/timeline */
.journey-section {
  padding: 60px 20px 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.journey-header {
  text-align: center;
  margin-bottom: 80px;
}

.journey-header h2 {
  font-size: 2rem;
  color: #b968ff;
  font-weight: 600;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto;
}

/* Timeline wrapper con línea central */
.timeline-wrapper {
  position: relative;
  padding: 40px 0;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #8a2be2 0%, #6a1bb2 50%, #8a2be2 100%);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

/* Estilos para milestone (antes timeline-item) */
.milestone {
  display: flex;
  align-items: center;
  margin-bottom: 100px;
  position: relative;
}

.milestone:nth-child(odd) {
  flex-direction: row;
}

.milestone:nth-child(even) {
  flex-direction: row-reverse;
}

.milestone:last-child {
  margin-bottom: 0;
}

/* Marker del milestone (antes timeline-icon) */
.milestone-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.milestone-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #8a2be2 0%, #6a1bb2 100%);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.8), 0 0 60px rgba(138, 43, 226, 0.4);
  border: 5px solid #1c1a29;
  transition: all 0.3s ease;
}

.milestone:hover .milestone-number {
  transform: scale(1.15);
  box-shadow: 0 0 40px rgba(138, 43, 226, 1), 0 0 80px rgba(138, 43, 226, 0.6);
}

/* Card del milestone (antes timeline-content) */
.milestone-card {
  width: 45%;
  background: rgba(138, 43, 226, 0.12);
  border: 2px solid rgba(138, 43, 226, 0.3);
  border-radius: 20px;
  padding: 35px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
  transition: all 0.4s ease;
}

.milestone:nth-child(odd) .milestone-card {
  margin-right: auto;
}

.milestone:nth-child(even) .milestone-card {
  margin-left: auto;
}

.milestone-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(138, 43, 226, 0.4);
  border-color: rgba(138, 43, 226, 0.5);
}

.milestone-card h3 {
  color: #b968ff;
  font-size: 1.6rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.milestone-card p {
  color: #e0e0e0;
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Media del milestone */
.milestone-media {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.milestone-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  border: 1px solid rgba(138, 43, 226, 0.2);
}

.milestone-media img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
}

.milestone-media video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(138, 43, 226, 0.2);
}

/* Footer actualizado */
.page-footer {
  text-align: center;
  padding: 50px 20px;
  margin-top: 60px;
  border-top: 2px solid rgba(138, 43, 226, 0.3);
  background: rgba(138, 43, 226, 0.05);
}

.page-footer p {
  color: #b0b0b0;
  font-size: 1rem;
}

/* Navegación de retorno actualizada */
.back-navigation {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8a2be2 0%, #6a1bb2 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
  transition: all 0.3s ease;
}

.back-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(138, 43, 226, 0.6);
  background: linear-gradient(135deg, #9d3ef5 0%, #7a28c9 100%);
}

.back-link span {
  display: inline-block;
}

/* Responsive design actualizado */
@media (max-width: 1024px) {
  .cta-container {
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 40px;
  }

  .milestone-card {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cta-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
    text-align: center;
  }

  .cta-image {
    margin: 0 auto;
    max-width: 250px;
  }

  .cta-info h2 {
    text-align: center;
    font-size: 1.8rem;
  }

  .cta-description p {
    text-align: center;
  }

  .journey-header h2 {
    font-size: 1.6rem;
  }

  .timeline-wrapper::before {
    left: 35px;
  }

  .milestone {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 90px;
    margin-bottom: 70px;
  }

  .milestone-marker {
    left: 35px;
  }

  .milestone-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .milestone-card {
    width: 100% !important;
    margin: 0 !important;
  }

  .back-link {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 15px 40px 15px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .cta-section {
    padding: 50px 15px;
  }

  .cta-container {
    padding: 25px;
  }

  .cta-info h2 {
    font-size: 1.5rem;
  }

  .cta-description p {
    font-size: 1rem;
  }

  .journey-section {
    padding: 40px 15px 80px 15px;
  }

  .journey-header h2 {
    font-size: 1.3rem;
  }

  .milestone {
    padding-left: 75px;
  }

  .timeline-wrapper::before {
    left: 28px;
  }

  .milestone-marker {
    left: 28px;
  }

  .milestone-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    border: 4px solid #1c1a29;
  }

  .milestone-card {
    padding: 25px;
  }

  .milestone-card h3 {
    font-size: 1.3rem;
  }

  .milestone-card p {
    font-size: 0.95rem;
  }

  .back-navigation {
    bottom: 20px;
    right: 20px;
  }

  .back-link {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

