/* ===== GLOBAL LAYOUT ===== */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== TIMELINE ===== */
.timeline {
  display: flex;
  justify-content: center;
  padding: 80px 20px 40px;
}

.years {
  display: flex;
  gap: 30px;
  align-items: flex-end;
}

.year {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.year span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: bold;
  font-size: 18px;
}

.year::after {
  content: "";
  display: block;
  width: 2px;
  height: 40px;
  background: #111;
  margin: 10px auto 0;
  transition: all 0.3s;
}

.year:hover {
  transform: translateY(-10px);
}

.year.active {
  transform: translateY(-20px);
}

.year.active span {
  padding: 6px 10px;
  border-radius: 20px;
  color: white;
}

.year.red span {
  background: #e63946;
}

.year.blue span {
  background: #007bff;
}

.year.active::after {
  height: 60px;
}

/* ===== IMAGEN ===== */
#yearImage {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

/* ===== CONTENIDO ===== */
.content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 1000px;
  margin: 40px 0;
  padding-left: 300px;
  gap: 20px;
}

.content-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.content-left img {
  width: 80px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

.content-left h2 {
  font-size: 80px;
  margin: 0;
  transition: all 0.3s ease;
}

/* ===== BOTÓN VIDEO ===== */
.video-link {
  display: block;
  width: fit-content;
  margin: auto auto 60px auto; /* 👈 baja solo al final */
  
  padding: 12px 26px; /* 👈 más equilibrado */
  background: linear-gradient(135deg, #6fa8ff, #4a6fd1);
  color: white;
  
  font-weight: 600;
  font-size: 15px; /* 👈 más fino */
  border-radius: 25px;
  text-decoration: none;
  
  transition: 0.25s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);

  position: relative;
  overflow: hidden;
}

/* HOVER */
.video-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
}

/* CLICK */
.video-link:active {
  transform: scale(0.98);
}

/* EFECTO PULSE SUAVE */
.video-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
  70% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
  100% { opacity: 0; }
}

/* ===== TEXTO SOBRE FOTO ===== */
.banner-text {
  color: white;
  font-size: 18px;
  font-weight: 500;
}