:root {
  --timeline-left: 100px; /* Control central de la alineación */

}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-bg-secondary);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(
      circle at 30% 40%,
      rgba(124, 92, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(80, 160, 255, 0.12),
      transparent 60%
    );
  filter: blur(80px);
  z-index: -1;
}

.hero h2 {
  font-size: 2.6rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.hero p {
  max-width: 600px;
  margin: 0 auto 1rem;
  color: var(--color-text-secondary);
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;

  border-radius: 999px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.4);
}

/* =========================
   LOGS · TIMELINE
========================= */

.log-title {
  font-family: monospace;
  font-size: 1.4rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.log-title::before {
  content: "$";
  color: var(--color-accent);
}

/* CONTENEDOR */
.latest-logs {
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  padding-left: 1rem;
}

/* LÍNEA TIMELINE */
.latest-logs::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-left) + 1rem);
  top: 10px;
  bottom: 10px;
  width: 1px; /* Más fina queda más elegante */
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  opacity: 0.2;
}

/* ENTRY */
.log-entry {
  display: grid;
  grid-template-columns: var(--timeline-left) 1fr;
  gap: 2.5rem;
  position: relative;
  padding: 1.5rem 0;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

/* ANIMACIÓN PROGRESIVA */
.log-entry:nth-of-type(1) { animation-delay: 0.1s; }
.log-entry:nth-of-type(2) { animation-delay: 0.2s; }
.log-entry:nth-of-type(3) { animation-delay: 0.3s; }
.log-entry:nth-of-type(4) { animation-delay: 0.4s; }
.log-entry:nth-of-type(5) { animation-delay: 0.5s; }
.log-entry:nth-of-type(6) { animation-delay: 0.6s; }

/* PUNTO */
.log-entry::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-left) + 0.85rem); /* Ajuste preciso sobre la línea */
  top: 1.8rem;
  width: 8px;
  height: 8px;
  background: var(--color-bg); /* Fondo sólido para que no se vea la línea debajo */
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

/* HOVER */
.log-entry:hover::before {
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  transform: scale(1.3);
}

.log-entry:hover h3 {
  color: var(--color-accent);
}

/* DESTACADO */
.log-entry:first-of-type::before {
  border-color: #00f2ff;
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}
/* FECHA */
.log-date {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-align: right;
  padding-top: 0.5rem;
  font-weight: bold;
}

.log-entry:hover .tag {
  border-color: rgba(var(--color-accent-rgb), 0.5);
  background: rgba(var(--color-accent-rgb), 0.05);
}

/* CONTENIDO */
.log-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.log-entry:last-of-type::before {
  border-color: #ff4c4c;
  box-shadow: 0 0 8px rgba(255, 76, 76, 0.3);
}
.log-content {
  text-align: left;
  padding-left: 20px; /* separación de la línea */
}

/* TITULO */
.latest-logs h3 {
  font-weight: 400;
}

/* PROMPT */
.latest-logs h3::before {
  content: "$";
  color: var(--color-accent);
  margin-right: 0.5rem;
}

/* CURSOR SOLO PRIMER LOG */
.latest-logs h3::after {
  content: "";
}

.latest-logs .log-entry:first-of-type h3::after {
  content: "_";
  margin-left: 4px;
  animation: blink 1s infinite;
}

/* DESCRIPCIÓN */
.log-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.3rem;
}

/* META */
.log-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* ANIMACIÓN */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CURRENTLY */

.currently ul {
  list-style: none;
  padding: 0;
}

.currently li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-bg);
}

.currently li::before {
  content: ">";
  color: var(--color-accent);
  margin-right: 0.5rem;
}

/* CONTACT */

.contact {
  text-align: center;
}

.contact-text {
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto 1rem;
}
