/* --- DARK ACADEMIC EDITORIAL STYLESHEET --- */

:root {
  --bg-color: #000000; /* Negro puro (o prueba con #050505 para un negro profundo mate) */
  --text-primary: #e6edf3;
  --text-muted: #8b949e;
  --border-color: #21262d; /* Opcional: oscurece un poco los bordes si lo deseas */
  --accent: #58a6ff;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

/* Ocultar elementos visuales artificiales anteriores */
.grid-overlay {
  display: none;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4rem;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.dot {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__toggle {
  display: none;
}

/* HERO */
.hero {
  padding: 2rem 0 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.hero__telemetry {
  margin-bottom: 2rem;
  opacity: 0.5;
  max-width: 300px;
}

.hero__svg {
  width: 100%;
  height: auto;
}

.axis { stroke: var(--border-color); stroke-width: 1; }
.dispersion-ellipse { fill: none; stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4; }
.trajectory { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.apogee { fill: var(--accent); }
.scatter circle { fill: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn--primary {
  background-color: var(--text-primary);
  color: var(--bg-color);
  font-weight: 500;
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn--ghost:hover {
  border-color: var(--text-primary);
}

/* SECTIONS */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.section__body p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__body p strong, .section__body strong {
  color: var(--text-primary);
}

/* CARDS (Editorial List Style) */
.cards {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.card {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #161b22;
}

.card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.card__desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.card__tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: #161b22;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.card__link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
}

.cards__more {
  margin-top: 3rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cards__more a {
  color: var(--text-primary);
  text-decoration: underline;
}

/* AWARDS */
.awards {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.award {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.award__mark {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
}

.award h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.award p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* SKILLS */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background-color: #161b22;
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* CONTACT */
.section--contact {
  border-bottom: none;
}

.contact__lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.contact__direct-email {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact__direct-email strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* FOOTER */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    padding: 0 1.25rem 3rem 1.25rem;
  }
  .nav__links {
    display: none;
  }
  .hero__title {
    font-size: 2.25rem;
  }
}

/* --- HERO LAYOUT CON FOTO --- */
.hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero__content {
  flex: 1;
}

.hero__image-wrapper {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px; /* Cambia a 50% si prefieres que la foto sea circular */
  border: 1px solid var(--border-color);
  filter: grayscale(15%); /* Da un tono ligeramente desaturado, muy elegante y sobrio */
}

/* Ajuste para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
  .hero__container {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .hero__image-wrapper {
    width: 160px;
    height: 160px;
    margin-bottom: 1.5rem;
  }
}

/* --- ESTILO PARA ENLACES DE CONSTANCIAS --- */
.award__link {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.award__link:hover {
  text-decoration: underline;
  opacity: 0.8;
}