/* Main Styles */
:root {
  --primary-color: #026937;
  --primary-light: #35944b;
  --primary-dark: #064e3b;
  --secondary-color: #059669;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --text-color: #1f2937;
  --text-light: #4b5563;
  --background-color: #f0fdfa;
  --background-light: #d1fae5;
  --white: #ffffff;
  --border-radius: 15px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  min-height: 100vh;
  line-height: 1.5;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 6rem auto 3rem;
  padding: 2rem;
  background-color: rgba(245, 245, 245, 0.92);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  animation: fadeIn 1s ease-in-out;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  z-index: 1000;
  padding: 1rem 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-text {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.header-home {
  color: var(--white);
  text-decoration: none;
  font-size: 1.2rem;
  transition: opacity 0.3s ease;
}

.header-home:hover {
  opacity: 0.8;
}

.text-justified {
  text-align: justify;
  margin-bottom: 2rem;
  line-height: 1.8;
}

ul.text-justified {
  padding-left: 2rem;
  margin-bottom: 3rem;
}

ul.text-justified li {
  margin-bottom: 1rem;
}

.nav-bar {
  background-color: rgba(255, 255, 255, 0.741);
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 3.5rem;
  left: 0;
  width: 100%;
  z-index: 10;
}

.nav-bar a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.nav-bar a:hover {
  background-color: var(--primary-light);
  color: white;
}

h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: none;
  outline: none;
}

a {
  text-decoration: none;
}

.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../resources/images/train-6485753_1280.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
  z-index: -1;
}

/* Journey Container and Track */
.journey-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.journey-track {
  position: relative;
  height: 200px;
  margin: 2rem 0;
}

.journey-path {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.track-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-light),
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 8px;
  transform: translateY(-50%);
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Milestone Styles */
.milestone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22%;
  z-index: 2;
  cursor: pointer;
}

.milestone-dot {
  width: 20px;
  height: 20px;
  background-color: var(--white);
  border: 3px solid var(--primary-light);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.milestone[data-index="0"] .milestone-dot {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.milestone-label {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  transition: var(--transition);
}

.milestone[data-index="0"] .milestone-label {
  color: var(--primary-color);
  font-weight: 600;
}

.milestone:hover .milestone-dot {
  transform: scale(1.2);
  border-color: var(--accent-color);
}

.milestone:hover .milestone-label {
  color: var(--primary-dark);
}

/* Journey Indicator */
.journey-indicator {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 3;
  transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.indicator-arrow {
  font-size: 2rem;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  transform: translateY(-50%);
  animation: pulse 1.5s infinite alternate;
}

/* Moment Cards */
.moment-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.moment-card {
  background-color: #f8fafc;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: 300px;
  max-width: 100%;
  opacity: 0.6;
  transform: scale(0.95);
  transition: var(--transition);
  border-left: 4px solid transparent;
  cursor: pointer;
}

.moment-card.active {
  background-color: var(--white);
  opacity: 1;
  transform: scale(1);
  border-left: 4px solid var(--primary-light);
  box-shadow: var(--shadow-strong);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.moment-card h2 {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.moment-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  border-color: var(--primary-light);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.card-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

/* Journey Navigation */
.journey-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.journey-progress {
  font-size: 0.95rem;
  color: var(--text-light);
}

.current-step {
  font-weight: 600;
  color: var(--primary-color);
}

/* Footer */
footer {
  width: 100%;
  background-color: #000;
  color: var(--white);
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--white);
}

footer p {
  text-align: center;
  color: #86868b;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--white);
}

/* Animations */
@keyframes pulse {
  from {
    transform: translateY(-50%) scale(1);
  }
  to {
    transform: translateY(-50%) scale(1.2);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .journey-track {
    height: 150px;
  }
  
  .milestone-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 6rem 1rem 3rem;
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .journey-track {
    height: 120px;
  }
  
  .milestone-dot {
    width: 16px;
    height: 16px;
  }
  
  .indicator-arrow {
    font-size: 1.5rem;
  }
  
  .moment-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .moment-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  .journey-path {
    padding: 0 0.5rem;
  }
  
  .milestone-label {
    display: none;
  }
  
  .journey-track {
    height: 80px;
  }
  
  .milestone-dot {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
  
  .journey-navigation {
    flex-wrap: wrap;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  .container {
    padding: 1rem;
  }
}

.key-point {
    padding: 2rem;
    background: var(--background-light);
    border-radius: 8px;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;        /* Centra los elementos internos */
    justify-content: center;    /* Centra verticalmente si hay altura definida */
    margin: 2rem auto;          /* Centra el contenedor horizontalmente */
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;           /* Limita el ancho total */
    width: 100%;
}

.full-width-image {
    width: 75%; /* Puedes ajustar: 100% para ancho completo del contenedor */
    max-width: 500px; /* Limita el tamaño para que no se vea enorme */
    height: auto;
    border-radius: 8px;
}
