﻿:root {
  --bg: #000000;
  --bg-elevated: rgba(15, 23, 42, 0.9);
  --bg-soft: rgba(0, 0, 0, 0.75);
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.1);
  --accent-strong: #d1d1d1;
  --text-main: #c4c4c4;
  --text-pill: #000000;
  --text-muted: #bbbbbb;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --radius-xl: 24px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.8);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #000000 0, #000000a9 50%, #000000a4 100%);
  color: var(--text-main);
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

article {
  top: 0;
}

body {
  min-height: 100vh;
}

.p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.541),
    rgb(0, 0, 0, 0.5),
    transparent
  );
  border-bottom: 1px solid rgba(90, 90, 90, 0.25);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #bebebe, #ffffffad 50%);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000000;
}

.logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* NAV LINKS */

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* NAV TOGGLE (MOBILE) */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  margin: 4px 0;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

/* HERO */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.2rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, rgba(80, 80, 80, 0), transparent);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.hero h1 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
}

.hero .accent {
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 36rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* BUTTONS */

.btn {
  border-radius: 999px;
  border: 2px solid rgb(255, 255, 255, 0.3);
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.btn.primary {
  background: radial-gradient(circle at 10% 0, var(--accent), var(--accent));
  color: #000000;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(29, 29, 29, 0.75);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(100, 100, 100, 0.9);
}

.btn.ghost {
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: rgba(54, 54, 54, 0.95);
  border-color: var(--accent);
}

.btn.full {
  width: 100%;
}

/* HERO META */

.hero-meta {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.meta-item {
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background:rgba(0, 0, 0, 1)
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 500;
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card {
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.5)
  );
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-soft);
  padding: 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.profile-card {
  width: 100%;
  max-width: 320px;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
}

.profile-card h2 {
  margin: 0.6rem 0 0.15rem;
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
}

.profile-role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
  position: relative;
  z-index: 1;
}

.profile-stats {
  display: flex;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.profile-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-number {
  font-weight: 600;
  font-size: 1.1rem;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tech-pills {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

.tech-pills span {
  font-size: 0.72rem;
  color: var(--text-pill);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.911);
  color: #000000;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(100, 100, 100, 0.5);
}

/* HERO ORBIT ANIMATION */

.hero-orbit {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: 0.3;
}

.orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgb(255, 255, 255);
}

.orbit-1 {
  width: 70%;
  height: 100%;
  top: 130%;
  left: 30%;
  animation: spin 70s linear infinite reverse;
}

.orbit-2 {
  width: 95%;
  height: 170%;
  top: 70%;
  left: 2.5%;
  border-style: solid;
  border-color: rgb(255, 255, 255);
  animation: spin 65s linear infinite reverse;
}

.orbit-3 {
  width: 40%;
  height: 90%;
  top: 20%;
  left: 20%;
  border-style: dotted;
  border-color: rgb(255, 255, 255);
  animation: spin 90s linear infinite;
}

.orbit-4 {
  width: 30%;
  height: 70%;
  top: 8%;
  left: 65%;
  border-style: solid;
  border-color: rgb(255, 255, 255);
  animation: spin 100s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* SECTIONS GENERALES */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
}

.section-header {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* GRID */

.grid {
  display: grid;
  gap: 1.6rem;
}

.about-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
}

/* ABOUT */

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
}

.about-text p + p {
  margin-top: 0.7rem;
}

.about-highlights h3 {
  margin-top: 0;
}

.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlight-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.95);
}

/* TIMELINE */

.career-timeline {
  position: relative;
  padding: 2.4rem 2rem 3rem;
  overflow: hidden;
}

.career-timeline .timeline-track {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 48.3%;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08));
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.timeline-items {
  position: relative;
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
  min-height: 320px;
  align-items: stretch;
}

.timeline-item {
  position: relative;
  padding-left: 1.8rem;
}

.timeline-item-1 {
  position: relative;
  padding-left: 1.8rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0.6rem;
}

.timeline-item-1 p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0.6rem;
}

.timeline-badge {
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent), #0f172a);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.411);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.timeline-item-1::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
}

.timeline-node {
  position: relative;
  flex: 1;
  min-width: 150px;
  --line-length: 76px;
  --dot-color: #b8b8b8;
}



.timeline-node.is-top::before {
  top: calc(50% - var(--line-length));
  height: var(--line-length);
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
}

.timeline-node.is-bottom::before {
  top: 50%;
  height: var(--line-length);
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
}

.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 15px 30px rgba(0, 0, 0, 0.5);
}

.timeline-year {
  position: absolute;
  font-weight: 700;
  color: var(--dot-color);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  top: calc(50% + 20px);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-card {
  position: absolute;
  left: 50%;
  width: 200px;
  padding: 0.5rem 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  text-align: center;
}

.timeline-node.is-top .timeline-card {
  bottom: calc(50% + var(--line-length) + 16px);
}

.timeline-node.is-bottom .timeline-card {
  top: calc(50% + var(--line-length) + 16px);
}

.timeline-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: rgba(0, 0, 0, 1);
}

.timeline-role {
  display: block;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 0.35rem;
}

.timeline-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
}

.tone-none { --dot-color: #4da3ff00; }
.tone-gray { --dot-color: #9ca3af; }


.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.bullet-list li + li {
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .timeline-items {
    min-height: 280px;
  }

  .timeline-card {
    width: 180px;
  }
}

@media (max-width: 720px) {
  .career-timeline {
    padding: 1.6rem 1.2rem 1.8rem;
  }

  .career-timeline .timeline-track {
    top: 0;
    bottom: 0;
    left: 18px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .timeline-items {
    flex-direction: column;
    gap: 1.3rem;
    min-height: auto;
  }

  .timeline-node {
    min-height: 0;
    padding-left: 56px;
  }

  .timeline-node::before,
  .timeline-node.is-top::before,
  .timeline-node.is-bottom::before {
    top: 0;
    height: 100%;
    left: 18px;
  }

  .timeline-dot {
    top: 8px;
    left: 18px;
    transform: translate(-50%, 0);
  }

  .timeline-year {
    position: static;
    transform: none;
    margin-top: 4px;
    text-align: left;
  }

  .timeline-card {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    text-align: left;
    margin-top: 0.35rem;
  }
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  align-items: baseline;
}

.timeline-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

/* PROJECTS */

.project-card {
  position: relative;
  min-height: 200px;
}

.project-chip {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.project-card h3 {
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.project-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.project-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags li {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  color: #000000;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(100, 100, 100, 0.2);
}

/* CONTACTO */

.section-contact {
  padding-bottom: 3.5rem;
}

.contact-info h3,
.contact-form h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(77, 77, 77, 0.95);
}

.contact-list span:first-child {
  color: var(--text-muted);
}

.contact-list a {
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.form-feedback {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--accent-strong);
  min-height: 1.1em;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.95);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.97);
    display: none;
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 620px) {
  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .glass-card {
    padding: 1.2rem 1.2rem;
  }
}

