:root {
  --navy: #0f172a;
  --navy-soft: #162238;
  --navy-card: #17243a;
  --blue: #2563eb;
  --blue-soft: #93c5fd;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(226, 232, 240, 0.15);
  --cream: #e9e1d4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--navy);
  font-family: Inter, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 120px, 1200px);
  margin-inline: auto;
}


/* =========================================================
   NAVBAR
========================================================= */

.site-header {
  position: absolute;
  z-index: 10;
  width: 100%;
}

.nav {
  display: flex;
  height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--text);
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 34px;
  margin-left: 120px;
}

.nav-links a,
.nav-contact {
  color: #cbd5e1;
  font-size: 0.79rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-contact:hover {
  color: white;
}

.nav-contact {
  display: flex;
  gap: 9px;
  align-items: center;
}

.nav-contact span {
  color: var(--blue-soft);
  font-size: 1.1rem;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 145px;
  padding-bottom: 80px;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(55px, 9vw, 130px);
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-topline p {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
}

.hero-topline p:first-child span {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.18);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.hero-kicker,
.section-heading p,
.about-label {
  margin: 0 0 20px;
  color: var(--blue-soft);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font: 600 clamp(3.4rem, 6.2vw, 6.8rem) / 0.94 "Space Grotesk", sans-serif;
  letter-spacing: -0.07em;
}

.hero h1 em,
.section-heading h2 em,
.about h2 em {
  color: var(--blue);
  font-style: normal;
}

.hero-intro {
  max-width: 485px;
  margin: 30px 0 36px;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  height: 52px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: white;
  background: var(--blue);
}

.button-primary span {
  color: #dbeafe;
  font-size: 1.15rem;
}

.button-secondary {
  border: 1px solid var(--line);
  color: #e2e8f0;
}

.button-secondary span {
  color: var(--blue-soft);
  font-size: 1.1rem;
}


/* =========================================================
   VENTANA DE CÓDIGO
========================================================= */

.hero-aside {
  position: relative;
  min-height: 560px;
  padding: 60px 0 30px 40px;
}

.aside-index {
  position: absolute;
  top: 3px;
  right: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.code-window {
  position: relative;
  z-index: 2;
  width: min(100%, 410px);
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.17);
  background: var(--navy-card);
  box-shadow: 25px 25px 0 rgba(37, 99, 235, 0.13);
}

.window-topbar {
  display: flex;
  height: 43px;
  gap: 6px;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.window-topbar span {
  width: 6px;
  height: 6px;
  background: #64748b;
  border-radius: 50%;
}

.window-topbar span:nth-child(2) {
  background: var(--blue);
}

.window-topbar p {
  margin: 0 0 0 8px;
  color: var(--muted);
  font-size: 0.62rem;
}

.code-content {
  padding: 35px 30px;
  color: #cbd5e1;
  font: 500 0.77rem / 2 "Space Grotesk", monospace;
}

.code-content p {
  margin: 0;
}

.code-content i {
  color: #a5b4fc;
  font-style: normal;
}

.code-content b {
  color: var(--blue-soft);
  font-weight: 500;
}

.indent {
  padding-left: 18px;
}

.indent-2 {
  padding-left: 36px;
}

.aside-orbit {
  position: absolute;
  border: 1px solid rgba(147, 197, 253, 0.15);
  border-radius: 50%;
}

.orbit-large {
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  animation: spin 25s linear infinite;
}

.orbit-small {
  right: 0;
  bottom: 25px;
  width: 110px;
  height: 110px;
}

.aside-dot {
  position: absolute;
  top: 42px;
  left: 10px;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.12);
}

.aside-note {
  position: absolute;
  right: 4px;
  bottom: 18px;
  z-index: 5;
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-indicator i {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--blue);
}


/* =========================================================
   PROYECTOS
========================================================= */

.projects {
  padding: 125px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 70px;
}

.section-number {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
}

.section-heading h2,
.about h2,
.contact h2 {
  max-width: 730px;
  margin: 0;
  font: 600 clamp(2.4rem, 4.2vw, 4.8rem) / 1 "Space Grotesk", sans-serif;
  letter-spacing: -0.065em;
}

.projects-list {
  border-top: 1px solid var(--line);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  gap: 25px;
  align-items: start;
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--line);
}

.project-number {
  padding-top: 4px;
  color: var(--blue-soft);
  font-size: 0.7rem;
  font-weight: 600;
}

.project-preview {
  min-height: 390px;
  overflow: hidden;
  transition: transform 0.35s ease;
}

.project:hover .project-preview {
  transform: scale(0.985);
}

.preview-header {
  display: flex;
  height: 34px;
  gap: 5px;
  align-items: center;
  padding: 0 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.preview-header span {
  width: 6px;
  height: 6px;
  background: rgba(15, 23, 42, 0.25);
  border-radius: 50%;
}

.preview-header small {
  margin-left: 8px;
  color: rgba(15, 23, 42, 0.45);
  font-size: 0.58rem;
}

.project-urola {
  position: relative;
  overflow: hidden;
  background: #17243a;
}

.project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.78) saturate(0.9);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.project:hover .project-image {
  filter: brightness(0.92) saturate(1);
  transform: scale(1.035);
}

.project-image-label {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.project-image-label::before {
  position: absolute;
  top: -11px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.45);
}


/* =========================================================
   PRÓXIMOS PROYECTOS
========================================================= */

.projects-next {
  position: relative;
  padding-top: 140px;
  padding-bottom: 140px;
  overflow: hidden;
}

.projects-next__content {
  max-width: 700px;
}

.section-label {
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.projects-next h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.projects-next h2 span {
  color: var(--blue);
}

.projects-next p {
  max-width: 560px;
  margin: 32px 0 0;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}


/* =========================================================
   TAGS — PRÓXIMOS PROYECTOS
========================================================= */

.projects-next ul.projects-next__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.projects-next ul.projects-next__tags li {
  display: block;
  margin: 0;
  padding: 8px 13px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.02);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: default;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.projects-next ul.projects-next__tags li::marker {
  content: "";
}

.projects-next ul.projects-next__tags li:hover {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.25);
  transform: translateY(-3px);
}


/* =========================================================
   LINK GITHUB
========================================================= */

.projects-next__link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 42px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
}

.projects-next__link span {
  color: var(--blue);
  transition: transform 0.3s ease;
}

.projects-next__link:hover {
  gap: 14px;
  color: var(--blue);
}

.projects-next__link:hover span {
  transform: translate(2px, -2px);
}

.projects-next__number {
  position: absolute;
  right: 6vw;
  bottom: 70px;
  color: rgba(255, 255, 255, 0.025);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(100px, 18vw, 240px);
  font-weight: 600;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}


/* =========================================================
   ATLAS
========================================================= */

.project-atlas {
  background: var(--cream);
}

.atlas-content {
  position: relative;
  height: calc(100% - 34px);
  min-height: 356px;
  padding: 52px 8%;
  overflow: hidden;
  color: #372919;
  background:
    linear-gradient(120deg,
      transparent 0 49%,
      rgba(74, 55, 35, 0.08) 49% 50%,
      transparent 50%);
}

.atlas-content::after {
  position: absolute;
  right: 10%;
  bottom: -20%;
  width: 31%;
  height: 95%;
  content: "";
  border: 1px solid #98816a;
  border-radius: 150px 150px 0 0;
}

.atlas-content p {
  margin: 0 0 30px;
  color: #765f48;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.atlas-content h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font: 500 clamp(3rem, 6vw, 6.1rem) / 0.84 Georgia, serif;
  letter-spacing: -0.08em;
}

.atlas-content>div {
  width: 100px;
  height: 1px;
  margin-top: 42px;
  background: #765f48;
}


/* =========================================================
   NEXO
========================================================= */

.project-nexo {
  background: #e8eef7;
}

.nexo-content {
  display: grid;
  height: calc(100% - 34px);
  grid-template-columns: 72px 1fr;
}

.nexo-content aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  color: white;
  background: #182438;
}

.nexo-content aside b {
  font: 700 1.2rem "Space Grotesk", sans-serif;
}

.nexo-content aside i {
  width: 15px;
  height: 2px;
  background: #64748b;
}

.dashboard {
  padding: 32px;
  color: #17243a;
}

.dashboard>p {
  margin: 0 0 22px;
  font-size: 0.9rem;
  font-weight: 600;
}

.dashboard-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.dashboard-stats div,
.dashboard-chart {
  background: white;
}

.dashboard-stats div {
  padding: 16px;
}

.dashboard-stats small {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 0.62rem;
}

.dashboard-stats strong {
  font: 600 1.15rem "Space Grotesk", sans-serif;
}

.dashboard-chart {
  display: flex;
  height: 120px;
  gap: 9px;
  align-items: end;
  margin-top: 14px;
  padding: 16px;
}

.dashboard-chart span {
  flex: 1;
  background: var(--blue);
}

.dashboard-chart span:nth-child(1) {
  height: 28%;
}

.dashboard-chart span:nth-child(2) {
  height: 44%;
}

.dashboard-chart span:nth-child(3) {
  height: 37%;
}

.dashboard-chart span:nth-child(4) {
  height: 70%;
}

.dashboard-chart span:nth-child(5) {
  height: 57%;
}

.dashboard-chart span:nth-child(6) {
  height: 84%;
}

.dashboard-chart span:nth-child(7) {
  height: 100%;
}


/* =========================================================
   PULSE
========================================================= */

.project-pulse {
  color: white;
  background: #17243a;
}

.pulse-content {
  position: relative;
  height: calc(100% - 34px);
  min-height: 356px;
  padding: 43px;
  overflow: hidden;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px,
      transparent 1px);
  background-size: 100% 32px;
}

.pulse-content p,
.pulse-content>span {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--blue-soft);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.pulse-content h3 {
  position: relative;
  z-index: 1;
  margin: 67px 0 0;
  font: 700 clamp(4rem, 8vw, 7rem) / 0.8 "Space Grotesk", sans-serif;
  letter-spacing: -0.1em;
}

.pulse-content>span {
  position: absolute;
  bottom: 35px;
  left: 43px;
}

.pulse-ring {
  position: absolute;
  right: -72px;
  bottom: -94px;
  width: 285px;
  height: 285px;
  border: 36px solid var(--blue);
  border-radius: 50%;
}


/* =========================================================
   PROJECT META
========================================================= */

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 20px;
}

.project-meta p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.68rem;
}

.project-meta h3 {
  margin: 0;
  font: 600 1.45rem "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
}

.project-meta ul {
  display: flex;
  gap: 6px;
  align-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-meta li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 600;
  cursor: default;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.project-meta li:hover {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.25);
  transform: translateY(-3px);
}

.project-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--blue-soft);
  font-size: 1.25rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.project:hover .project-arrow {
  background: var(--blue);
  transform: rotate(45deg);
}


/* =========================================================
   SOBRE MÍ
========================================================= */

.about {
  padding: 125px 0;
  border-top: 1px solid var(--line);
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.about-label {
  margin: 0;
  color: var(--blue-soft);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.about-status {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-status span {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.14);
}

.about-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.55fr;
  gap: 80px;
  align-items: end;
  margin: 65px 0 70px;
}

.about-intro h2 {
  max-width: 760px;
  margin: 0;
  font: 600 clamp(2.6rem, 4.5vw, 5rem) / 0.98 "Space Grotesk", sans-serif;
  letter-spacing: -0.07em;
}

.about-intro h2 em {
  color: var(--blue);
  font-style: normal;
}

.about-intro>p {
  max-width: 400px;
  margin: 0 0 5px;
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.85;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 14px;
}

.about-card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(23, 36, 58, 0.45);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.about-card:hover {
  border-color: rgba(147, 197, 253, 0.4);
  transform: translateY(-5px);
}

.about-card-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 90% 10%,
      rgba(37, 99, 235, 0.23),
      transparent 35%),
    #17243a;
}

.card-label {
  margin: 0 0 auto;
  color: var(--blue-soft);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.about-card-main h3 {
  margin: 42px 0 17px;
  font: 600 clamp(1.9rem, 3vw, 3rem) / 0.95 "Space Grotesk", sans-serif;
  letter-spacing: -0.07em;
}

.about-card-main>p:last-child {
  max-width: 410px;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.83rem;
  line-height: 1.75;
}

.approach-list {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.approach-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #e2e8f0;
  font-size: 0.82rem;
}

.approach-list li:first-child {
  border-top: 1px solid var(--line);
}

.approach-list span {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 600;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.stack-list li:hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}


/* =========================================================
   CONTACTO
========================================================= */

.contact {
  padding: 125px 0 32px;
  border-top: 1px solid var(--line);
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-label {
  margin: 0;
  color: var(--blue-soft);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.contact-header>p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.contact-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin: 75px 0 95px;
}

.contact-main h2 {
  margin: 0;
  font: 600 clamp(3rem, 6vw, 6.5rem) / 0.9 "Space Grotesk", sans-serif;
  letter-spacing: -0.08em;
}

.contact-main h2 em {
  color: var(--blue);
  font-style: normal;
}

.contact-email {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--blue);
  color: white;
  font: 500 clamp(1rem, 1.8vw, 1.35rem) "Space Grotesk", sans-serif;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email span {
  color: var(--blue);
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.contact-email:hover {
  border-color: white;
  color: var(--blue-soft);
}

.contact-email:hover span {
  transform: translate(3px, -3px);
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.contact-footer>p {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.social-links a {
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.social-links a span {
  color: var(--blue);
}

.social-links a:hover {
  color: white;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  color: #64748b;
  font-size: 0.65rem;
}

.footer-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #cbd5e1;
  font: 600 0.72rem "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
}

.footer-brand i {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.footer p {
  margin: 0;
}

.footer-top {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-top span {
  color: var(--blue);
  font-size: 0.9rem;
}

.footer-top:hover {
  color: white;
}


/* =========================================================
   ANIMACIÓN
========================================================= */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   TABLET / LAPTOP PEQUEÑO
========================================================= */

@media (min-width: 801px) and (max-width: 1100px) {
  .container {
    width: min(100% - 64px, 1000px);
  }

  /* NAV */

  .nav-links {
    gap: 25px;
    margin-left: 60px;
  }

  /* HERO */

  .hero {
    padding-top: 130px;
  }

  .hero-topline {
    margin-bottom: 80px;
  }

  .hero-layout {
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 7vw, 5.8rem);
  }

  .hero-aside {
    min-height: 500px;
    padding-left: 20px;
  }

  .code-window {
    width: min(100%, 390px);
  }

  .orbit-large {
    width: 370px;
    height: 370px;
  }

  /* PROYECTOS */

  .section-heading {
    gap: 35px;
  }

  .project-preview {
    min-height: 330px;
  }

  /* PRÓXIMOS PROYECTOS */

  .projects-next {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  .projects-next h2 {
    font-size: clamp(42px, 6vw, 66px);
  }

  /* SOBRE MÍ */

  .about-intro {
    gap: 45px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-card-main {
    grid-column: 1 / -1;
  }

  /* CONTACTO */

  .contact-main {
    gap: 30px;
  }

  .contact-main h2 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
  }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 800px) {

  .container {
    width: min(100% - 40px, 600px);
  }


  /* NAV */

  .nav {
    height: 76px;
  }

  .nav-contact {
    display: none;
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }

  .menu-button span {
    width: 21px;
    height: 2px;
    background: white;
    transition: transform 0.2s ease;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 0;
    margin: 0;
    padding: 0 20px;
    overflow: hidden;
    visibility: hidden;
    background: #17243a;
    border: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    transition: 0.25s ease;
  }

  .nav-links.is-open {
    max-height: 210px;
    padding: 20px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }


  /* HERO */

  .hero {
    padding-top: 125px;
  }

  .hero-topline p:last-child {
    display: none;
  }

  .hero-layout {
    display: block;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 14vw, 5rem);
  }

  .hero-aside {
    position: relative;
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 60px 0 30px 40px;
  }

  .code-window {
    width: min(100%, 340px);
  }

  .code-content {
    padding: 24px 20px;
    font-size: 0.67rem;
  }

  .orbit-large {
    width: 310px;
    height: 310px;
  }

  .aside-note {
    position: relative;
    z-index: 3;
    align-self: flex-end;
    margin: 32px 4px 0 0;
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.7;
    letter-spacing: 0.05em;
  }

  .scroll-indicator {
    display: none;
  }


  /* PROYECTOS */

  .projects {
    padding: 90px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 45px;
  }

  .section-heading h2 {
    margin-top: 25px;
  }

  .project {
    grid-template-columns: 25px 1fr;
    gap: 14px;
  }

  .project-preview {
    min-height: 270px;
  }

  .atlas-content,
  .pulse-content {
    min-height: 236px;
  }

  .atlas-content {
    padding: 36px 8%;
  }

  .atlas-content h3 {
    font-size: 3.4rem;
  }

  .nexo-content {
    grid-template-columns: 52px 1fr;
  }

  .dashboard {
    padding: 19px;
  }

  .dashboard-chart {
    height: 85px;
  }

  .pulse-content {
    padding: 30px;
  }

  .pulse-content h3 {
    margin-top: 46px;
  }

  .pulse-content>span {
    bottom: 25px;
    left: 30px;
  }

  .project-meta {
    grid-column: 2;
    display: block;
  }

  .project-meta ul {
    margin-top: 15px;
  }

  .project-arrow {
    position: absolute;
    right: 0;
    bottom: 40px;
  }


  /* PRÓXIMOS PROYECTOS */

  .projects-next {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .projects-next h2 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .projects-next p {
    font-size: 14px;
    line-height: 1.7;
  }

  .projects-next__number {
    right: 20px;
    bottom: 30px;
    font-size: 120px;
  }


  /* SOBRE MÍ */

  .about {
    padding: 90px 0;
  }

  .about-header {
    display: block;
  }

  .about-status {
    margin-top: 25px;
  }

  .about-intro {
    display: block;
    margin: 45px 0;
  }

  .about-intro>p {
    margin-top: 27px;
  }

  .about-grid {
    display: block;
  }

  .about-card {
    min-height: auto;
    margin-bottom: 14px;
  }

  .about-card-main {
    min-height: 290px;
  }


  /* CONTACTO */

  .contact {
    padding-top: 90px;
  }

  .contact-header,
  .contact-main,
  .contact-footer,
  .footer {
    display: block;
  }

  .contact-header>p {
    margin-top: 25px;
  }

  .contact-main {
    margin: 55px 0 65px;
  }

  .contact-email {
    margin-top: 34px;
  }

  .contact-footer>p {
    margin-bottom: 25px;
  }

  .footer {
    padding: 26px 0;
  }

  .footer p {
    margin: 16px 0;
  }
}


/* =========================================================
   DETALLE DE PROYECTO — BASE
========================================================= */

.case-page {
  background: var(--navy);
}

.case-back {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.case-back span {
  color: var(--blue);
  font-size: 1.1rem;
}

.case-back:hover {
  color: white;
}

.case-hero {
  padding-top: 170px;
  padding-bottom: 75px;
}

.case-hero-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-soft);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.case-hero-top p {
  margin: 0;
}

.case-title {
  margin-top: 72px;
}

.case-title>p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.case-title h1 {
  margin: 0;
  font: 600 clamp(4rem, 9vw, 10rem) / 0.8 "Space Grotesk", sans-serif;
  letter-spacing: -0.1em;
}

.case-title h1 em,
.case-detail-content h2 em {
  color: var(--blue);
  font-style: normal;
}

.case-summary {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-top: 80px;
}

.case-summary p {
  max-width: 430px;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.8;
}

.case-summary a {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--blue);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
}

.case-summary a span {
  margin-left: 10px;
  color: var(--blue);
  font-size: 1.15rem;
}

.case-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #17243a;
}

.case-cover img {
  display: block;
  width: 100%;
  min-height: 450px;
  object-fit: cover;
  object-position: top center;
}

.case-details {
  display: grid;
  grid-template-columns: 0.45fr 1.2fr;
  gap: 70px;
  padding: 135px 0;
  border-bottom: 1px solid var(--line);
}

.case-detail-label span,
.case-contribution-heading span,
.case-tech>div>span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
}

.case-detail-label p,
.case-contribution-heading p,
.case-tech>div>p {
  margin: 0;
  color: var(--blue-soft);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.case-detail-content h2 {
  margin: 0 0 38px;
  font: 600 clamp(2.5rem, 4.5vw, 5.2rem) / 0.97 "Space Grotesk", sans-serif;
  letter-spacing: -0.07em;
}

.case-detail-content p {
  max-width: 600px;
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.85;
}

.case-contribution {
  padding: 125px 0;
  border-bottom: 1px solid var(--line);
}

.case-contribution-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 62px;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contribution-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(23, 36, 58, 0.45);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contribution-grid article:hover {
  border-color: rgba(147, 197, 253, 0.4);
  transform: translateY(-5px);
}

.contribution-grid article>span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 600;
}

.contribution-grid h3 {
  margin: 70px 0 13px;
  font: 600 1.35rem "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
}

.contribution-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.case-tech {
  display: grid;
  grid-template-columns: 0.45fr 1.2fr;
  gap: 70px;
  padding: 105px 0;
  border-bottom: 1px solid var(--line);
}

.case-tech ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-tech li {
  padding: 12px 15px;
  border: 1px solid var(--line);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.case-tech li:hover {
  border-color: var(--blue);
  background: var(--blue);
}

.case-tech .planned {
  color: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.45);
}

.case-tech small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 500;
}

.case-next {
  padding: 125px 0;
}

.case-next p {
  margin: 0 0 22px;
  color: var(--blue-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.case-next a {
  color: white;
  font: 600 clamp(3.5rem, 7vw, 8rem) / 0.85 "Space Grotesk", sans-serif;
  letter-spacing: -0.09em;
}

.case-next a span {
  color: var(--blue);
  font-size: 0.55em;
}


/* =========================================================
   DETALLE DE PROYECTO — MÓVIL
========================================================= */

@media (max-width: 800px) {

  .case-hero {
    padding-top: 125px;
    padding-bottom: 55px;
  }

  .case-title {
    margin-top: 52px;
  }

  .case-summary {
    display: block;
    margin-top: 55px;
  }

  .case-summary a {
    display: inline-block;
    margin-top: 30px;
  }

  .case-cover img {
    min-height: 250px;
  }

  .case-details,
  .case-tech {
    display: block;
    padding: 85px 0;
  }

  .case-detail-content {
    margin-top: 35px;
  }

  .case-contribution {
    padding: 85px 0;
  }

  .case-contribution-heading {
    display: block;
    margin-bottom: 38px;
  }

  .case-contribution-heading p {
    margin-top: 10px;
  }

  .contribution-grid {
    display: block;
  }

  .contribution-grid article {
    min-height: auto;
    margin-bottom: 14px;
  }

  .contribution-grid h3 {
    margin-top: 48px;
  }

  .case-tech ul {
    margin-top: 35px;
  }

  .case-next {
    padding: 85px 0;
  }
}