/* === VARIABLES === */
:root {
  --accent: rgba(21,32,43,0.85);
  --accent-2: rgba(255,255,255,0.92);
  --primary: #f2c94c;
  --muted: rgba(255,255,255,0.85);
  --bg-dark: rgba(8,10,12,0.6);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* === RESET / BASE === */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  background: #000;
  color: var(--muted);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(0.5);
  z-index: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-content .lead {
  font-size: clamp(14px, 2vw, 20px);
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* BOTONES */
.cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  backdrop-filter: blur(4px);
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--accent-2);
  border: 2px solid rgba(255,255,255,0.18);
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), #f2994a);
  color: #111;
  border: 0;
  box-shadow: 0 8px 30px rgba(242,201,76,0.12);
}

/* === INSTAGRAM DEBAJO DE LOS BOTONES === */
.instagram-link {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.instagram-link a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.instagram-link a:hover {
  background: linear-gradient(90deg, var(--primary), #f2994a);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(242,201,76,0.12);
}

.instagram-link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.instagram-link span {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

/* === SECCIONES === */
section {
  padding: 30px 20px; /* espacio reducido */
}

.panel { max-width: 1100px; margin: 0 auto; background: transparent; }
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-img img { width: 100%; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #f2994a);
  margin: 12px auto 0;
  border-radius: 2px;
}
.about-text p {
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-bottom: 14px;
  text-align: justify;
  text-justify: inter-word;
}

/* ANIMACIONES */
.fade-in-left, .fade-in-right { opacity: 0; transition: all 0.9s ease; }
.fade-in-left { transform: translateX(-60px); }
.fade-in-right { transform: translateX(60px); }
.fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: translateX(0); }
.reveal { opacity:0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* TIMELINE MODERNO */
.trajectory { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.timeline { position: relative; padding-left: 40px; flex: 1; }
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(242,201,76,0.3), rgba(242,201,76,0.1));
  border-radius: 4px;
}
.timeline-item {
  position: relative;
  padding: 18px 18px 18px 50px;
  margin-bottom: 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.timeline-item:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(242,201,76,0.2); }
.timeline-marker {
  position: absolute;
  left: 0;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid rgba(255,255,255,0.2);
  transition: transform .3s ease, background .3s ease;
}
.timeline-item.active .timeline-marker { transform: scale(1.2); background: #f2994a; }
.timeline-date { font-weight: 700; color: var(--accent-2); font-size: 14px; margin-bottom: 6px; }
.timeline-content {
  margin-top: 6px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.timeline-item.active .timeline-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 760px) {
  .about-container { grid-template-columns: 1fr; }
  .trajectory { flex-direction: column; }
  .timeline { padding-left: 20px; }
  .timeline::before { left: 8px; }
  .timeline-item { padding-left: 40px; }
  .timeline-marker { left: 0; }

  /* Ajustes responsivos para Instagram */
  .instagram-link a {
    padding: 8px 16px;
    gap: 8px;
  }
  .instagram-link img {
    width: 22px;
    height: 22px;
  }
  .instagram-link span {
    font-size: 14px;
  }

  section { padding: 25px 20px; } /* espacios más compactos en móviles */
}

/* FOOTER */
footer {
  padding: 28px 20px;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
