:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 48px;
  --space-5: 80px;
}

/* =========================
   RESET + BASE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: #d1d5db;

  background: linear-gradient(180deg, #18181B 0%, #212427 100%);
}


/* =========================
   COLUMNA CENTRAL
========================= */

.page-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;

  border-left: 1px solid #374151;
  border-right: 1px solid #374151;

  padding-left: 44px;
  padding-right: 44px;
}

.subpage .page-shell {
  padding-left: 0;
  padding-right: 0;
}


/* =========================
   HEADER
========================= */

.header {
  padding: 48px 0 24px;
}

.logo img {
  height: 20px;
  display: block;
}

.logo a {
  display: inline-block;
}

.subpage .hero-nav {
  padding-top: 32px;
}

.page-no-hero .hero-nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 44px 0;
  box-sizing: border-box;
}

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

.hero {
  text-align: center;
  padding-bottom: 80px;
}

/* CONTENEDOR VISUAL */

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 40px auto 40px;
}

.hero-overlay {
  padding: 32px;
}

/* FONDO LÍNEAS */

.lines {
  position: absolute;
  inset: 0;

  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.25) 0px,
    rgba(255,255,255,0.25) 2px,
    transparent 2px,
    transparent 8px
  );

  z-index: 1;
}


/* FORMA CENTRAL */

.shape {
  position: absolute;
  inset: 15% 20%;
  background: #0a0f18;

  clip-path: polygon(
    20% 0%,
    80% 0%,
    100% 40%,
    80% 100%,
    20% 100%,
    0% 40%
  );

  z-index: 2;
}


/* IMAGEN */

.astronaut {
  position: relative;
  width: 55%;
  max-width: 360px;
  margin: 0 auto;
  display: block;

  transform: translate(5%, -5%);
  z-index: 3;
}


/* TEXTO INTRO */

.intro {
  max-width: 640px;
  margin: 24px auto 0;

  font-size: 20px;
  line-height: 1.5;

  text-align: center;
}

/* TEXTO PRINCIPAL */
.intro-main {
  color: #ffffff;
  font-weight: 400;
}

/* TEXTO SECUNDARIO */
.intro-secondary {
  color: #9CA3AF;
  font-weight: 300;
}

/* TEXTO DESCRIPTIVO */

.logo-text {
  max-width: 720px;
  width: 100%;
  margin-bottom: 64px;
}

.section-logo-project .logo-text {
  max-width: 720px;
}

/* =========================
   SKILLS
========================= */

.skills {
  margin-top: 32px;
}

.skills {
  text-align: left;
}

.skills h4 {
  display: inline-block; /* CLAVE */

  text-align: left;
  font-weight: 500;
  font-size: 14px;
  margin-top: 24px;

  background: linear-gradient(
    90deg,
    #FF5959,
    #FF7288,
    #FBB590
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tags span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;

  color: #6B7280;

  border: 1px solid #6B7280;
  background: rgba(107, 114, 128, 0.1);

  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}


/* =========================
   CTA (BOTONES)
========================= */

.cta {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 40px;

  /* TEXTO */
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;

  /* FONDO */
  background: rgba(71, 85, 105, 0.6);

  /* BORDE CON GRADIENTE */
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;

  transition: all 0.3s ease;
}

/* BORDE GRADIENTE REAL */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 1px;

  background: linear-gradient(
    90deg,
    #FF5959,
    #FF7288,
    #FBB590
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

.btn:hover {
  background: rgba(71, 85, 105, 0.8);
  transform: translateY(-1px);
}

.btn.outline {
  border-color: rgba(255,255,255,0.3);
}

.btn.outline:hover {
  border-color: #ff5c5c;
}

/* =========================
   BIO (texto intermedio)
========================= */

.bio {
  margin: 100px 0; /* CLAVE: top y bottom */
  text-align: center;
}

.bio p {
  max-width: 720px;
  margin: 0 auto;

  font-size: 20px;
  line-height: 1.6;
}

/* Parte en blanco (regular) */
.bio-main {
  color: #ffffff;
  font-weight: 400;
}

/* Parte en gris (light) */
.bio-secondary {
  color: #9CA3AF;
  font-weight: 300;
  margin-left: 4px; /* suaviza el corte */
}

.bio-secondary-block {
  margin: 100px 0 120px;
}

/* =========================
   PROJECTS
========================= */

.projects-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;

  display: inline-block;

  background: linear-gradient(
    90deg,
    #FF5959,
    #FF7288,
    #FBB590
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #9CA3AF;
  margin: 32px 0 16px;
}

.projects {
  margin-top: 120px;
}

.projects h2 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
}

.project {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  padding: 14px 0;

  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: inherit;

  transition: all 0.3s ease;
}

.project:hover {
  transform: translateX(6px);
  color: #ffffff;
}

.project span:last-child {
  text-align: right;
  opacity: 0.6;
}


/* =========================
   CONTACT
========================= */

.contact-title {
  display: block;
  text-align: center;

  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;

  background: linear-gradient(
    90deg,
    #FF5959,
    #FF7288,
    #FBB590
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact {
  margin: 120px 0;
  text-align: center;
}

.contact h3 {
  font-weight: 500;
  margin-bottom: 10px;
}

.email {
  font-size: 20px;
}


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

.footer {
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-left: 32px;
  padding-right: 32px;
}

.footer-left img {
  height: 14px;
}

.footer-right {
  color: #6B7280;
  font-size: 12px;
}

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

.project-hero {
  position: relative;
  width: 100%;
}

.hero-image {
  width: 100%;
  display: block;
}

/* OVERLAY */

.hero-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;

  padding: 32px;
}

/* NAV */

.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* TÍTULOS GRADIENTES */

.project-title {
  margin-top: 40px;
  text-align: center;

  font-size: 28px;
  font-weight: 600;

  background: linear-gradient(
    90deg,
    #FF5959,
    #FF7288,
    #FBB590
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-subtitle {
  margin-top: 40px;
  text-align: left;

  font-size: 16px;
  font-weight: 600;

  background: linear-gradient(
    90deg,
    #FF5959,
    #FF7288,
    #FBB590
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* LINKS */

.nav-left,
.nav-prev,
.nav-next {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
}

/* GRUPO DERECHA */

.nav-right-group {
  display: flex;
  gap: 80px;
}

/* BACK HOME */

.nav-left .arrow {
  margin-right: 6px;
}

/* HOVER (sutil) */

.nav-left:hover,
.nav-prev:hover,
.nav-next:hover {
  opacity: 0.7;
}


/* SUBPAGE */

.project-content {
  padding-left: 32px;
  padding-right: 32px;
}

/* =========================
   PROJECT META (2 COLUMNAS)
========================= */

.project-meta {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;

  margin-top: 80px;

  padding-left: 32px;
  padding-right: 32px;
}

.project-meta {
  align-items: start;
}

.meta-description {
  margin: 0;
  line-height: 1.5;
}

.meta-right {
  margin-top: 4px;
}

/* COLUMNA IZQUIERDA */

.meta-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9CA3AF;
}

.meta-value {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
}

/* 🔥 CLAVE */
.meta-title,
.meta-value {
  margin: 0;
}

/* COLUMNA DERECHA */

.meta-description {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;

  color: #ffffff;
}

/* =========================
   GENERIC SECTION
========================= */

.project-section {
  margin-top: var(--space-5);
}

/* CONTENEDOR INTERNO (padding real) */

.section-inner {
  padding-left: 32px;
  padding-right: 32px;

  max-width:720∫px;
  margin: 0 auto;
}

/* =========================
   INTRO (PROBLEMS)
========================= */

.section-intro {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400; /* SemiBold */
  line-height: 1.5;

  color: #9CA3AF;

  margin: 0 0 48px 0;
}

/* =========================
   COLUMN
========================= */

.column-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400; /* Bold */

  color: #ffffff;

  margin: 0;
}

.column-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400; /* Bold */
  line-height: 1.6;

  color: #9CA3AF;

  margin: 0;
}

.section-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; /* un poco más de aire */
}

.column-item {
  max-width: 560px;
}

.column-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================
   SECTION: BASIC TEXT
========================= */

.section-basic-text {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400; /* SemiBold */
  line-height: 1.5;

  color: #ffffff;

  margin: 0;
}

/* =========================
   SECTION: IMAGE
========================= */

.section-image-text {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;

  color: #9CA3AF;

  margin: 0 0 48px 0;
}

/* IMAGEN */

.section-image-wrapper {
  width: 100%;
}

.section-image-img {
  width: 100%;
  display: block;
}

/* =========================
   SECTION: DOUBLE IMAGE
========================= */

.section-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.image-item {
  width: 100%;
}

/* =========================
   SECTION: COLUMNS + IMAGE
========================= */

.section-columns-image .section-image-wrapper {
  margin-top: 48px; /* separación respecto a columnas */
}

/* =========================
   SECTION: IMAGE + COLUMNS
========================= */

.section-image-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;

  margin-bottom: 32px; /* separación con textos */
}

/* =========================
   IMAGE SIZE CONTROL
========================= */

.section-image-columns-grid .image-item {
  display: flex;
  justify-content: center;
}

.section-image-columns-grid .section-image-img {
  width: 100%;
  max-width: 320px; /* 👈 ajusta según diseño */
}

.section-image-grid .image-item {
  display: flex;
  justify-content: center;
}

.section-image-grid .section-image-img {
  width: 100%;
  max-width: 320px; /* 👈 mismo límite que antes */
}

.image-limited {
  display: flex;
  justify-content: center;
}

.image-limited .section-image-img {
  width: 100%;
  max-width: 320px;
}

.section-logo-project .logo-images {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.section-logo-project .logo-image-card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto; /* centra SIN romper ancho */
}

.section-logo-project .logo-image-card img {
  width: 100%;
  display: block;
}


/* TEXTO CON PÁRRAFOS */

.section-image-text p {
  margin: 0 0 16px 0;
}

/* LISTA */

.section-list {
  margin: 16px 0 0 0;
  padding-left: 20px;

  color: #9CA3AF;

  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.section-list li {
  margin-bottom: 8px;
}

/* =========================
   SECTION: IMAGE STACK
========================= */

.section-image-stack-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}