/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
:root {

  --black: #000000;
  --dark: #ffffff;
  --red: #8b1a1a;
  --red-mid: #9e1e1e;
  --white: #ffffff;
  --light-gray: #f0f0f0;
  --card-dark: #ffffff;
  --text-light: #cccccc;
  --text-muted: #888888;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
  
body {
  background: #000;
  overflow-x: hidden;
}

.page {
  width: 100%;
  min-height: 100vh;
  background: transparent;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 72px 48px;
}

.page-year {
  position: absolute;
  bottom: 32px;
  right: 72px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
}

.script-red {
  font-family: var(--font-serif);
  color: var(--red);
  font-weight: 400;
}

.italic {
  font-style: italic;
}

/* ======== PAGE 1: COVER ======== */
.page-cover {
  justify-content: flex-start;
  overflow: hidden;
}

.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
  z-index: 10;
  position: relative;
}

.nav-version {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: mon;
  display: flex;
  gap: 48px;
}

.nav-links li {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  cursor: pointer;
  letter-spacing: 0.03em;
}

.cover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-name {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.cover-name-top {
  display: flex;
  align-items: center;
  padding-left: 32px;
}

.cover-name-bottom {
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
  margin-top: -30px;
}

.name-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(80px, 12vw, 160px);
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.01em;
}

.name-script.robledo {
  font-size: clamp(90px, 14vw, 185px);
}

.cover-photos {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 280px;
  height: 340px;
}

.photo-stack {
  position: absolute;
  width: 220px;
  height: 290px;
  background: #2a2a2a;
}

.photo-back {
  top: 0;
  left: 50px;
  transform: rotate(8deg);
  background: #1e1e1e;
  border: 1px solid #333;
  overflow: hidden;
}

.photo-back::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2d4a2d 0%, #1a3a1a 50%, #0a2a0a 100%);
  opacity: 0.8;
}

.photo-front {
  top: 20px;
  left: 20px;
  transform: rotate(-4deg);
  overflow: hidden;
}

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

.cover-star {
  position: absolute;
  top: 32%;
  right: 14%;
  font-size: 70px;
  color: var(--white);
  font-weight: 100;
  z-index: 3;
  line-height: 1;
  transform: rotate(15deg);
}

.cover-footer {
  position: absolute;
  bottom: 48px;
  left: 72px;
  z-index: 10;
}

.cover-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.cover-year {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--white);
  text-align: center;
  margin-top: 2px;
}

/* ======== PAGE 2: SOBRE MI ======== */
.page-sobre {
  padding-top: 24px;
}

.sobre-header {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 40px;
  letter-spacing: 0.03em;
}

.sobre-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  flex: 1;
  align-items: start;
}

.sobre-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 68px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.sobre-intro {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 16px;
}

.sobre-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sobre-img-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-bottom: 24px;
}

.sobre-img-border {
  position: absolute;
  top: -14px;
  right: -14px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border: 4px solid var(--red);
  z-index: 0;
}

.sobre-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.sobre-body {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.75;
  margin-bottom: 20px;
}

.sobre-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  text-decoration: underline;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: inline-block;
}

/* ======== PAGE 3: HISTORIAL ======== */
.page-historial {
  padding-top: 48px;
}

.historial-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  flex: 1;
}

.historial-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 72px;
  font-weight: 400;
  color: var(--red);
  line-height: 1.05;
  margin-bottom: 50px;
  letter-spacing: -0.01em;
}

.niveles {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
}

.nivel-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
}

.nivel-row--top {
  align-items: flex-start;
}

.nivel-label {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  min-width: 120px;
  letter-spacing: 0.03em;
}

.nivel-status {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
}

.nivel-status-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nivel-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.nivel-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.historial-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.historial-img {
  width: 100%;
  max-width: 560px;
  height: 580px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ======== PAGE 4: EQUIPO ======== */
/* ======================================== */
/* CONTENEDOR DE LAS CARTAS */
/* CENTRAR TODO EL BLOQUE */
/* ======================================== */

/* ========================= */
/* CARTAS PREMIUM */
/* ========================= */

.equipo-card {
  width: 340px;

  padding: 40px;

  border-radius: 24px;

  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(15px);

  text-align: center;

  transition: all 0.4s ease;

  position: relative;

  overflow: hidden;
}

.equipo-card::before {
  content: "";

  position: relative;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(139,26,26,0.12),
    transparent 50%
  );

  opacity: 0;

  transition: opacity 0.4s ease;
}

.equipo-card:hover {
  transform: translateY(-10px);

  border-color: rgba(139,26,26,0.5);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.4),
    0 0 40px rgba(139,26,26,0.15);
}

.equipo-card:hover::before {
  opacity: 1;
}


/* ======================================== */
/* CARTAS */
/* ======================================== */

.equipo-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
}

.equipo-card a:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}
/* ======================================== */
/* IMÁGENES */
/* REDUCIR TAMAÑO */
/* ======================================== */

.equipo-card img {
  width: 180px; /* cambiar tamaño imagen */

  height: 180px;

  object-fit: cover;

  border-radius: 50%;

  margin: 20px auto; /* centra la imagen */
}


/* ======================================== */
/* NOMBRE */
/* ======================================== */

.card-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
}

.card-role {
  color: #ffffff;
  opacity: 0.8;
  line-height: 1.6;
  font-family: var(--font-sans);
}


/* ======================================== */
/* ESPACIADOR */
/* ======================================== */

.card-spacer {
  height: 20px;
}

/* ======== PAGE 5: DATOS ACADÉMICOS ======== */
.page-datos {
  padding-top: 40px;
  align-items: center;
}

.datos-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 72px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -0.01em;
}

.datos-img-wrap {
  position: relative;
  width: 90%;
  max-width: 1100px;
  min-height: 480px;
  margin: 0 auto 32px;
  overflow: hidden;
}

.datos-bg-img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: center;
  filter:
    brightness(0.35)
    contrast(1.1)
    saturate(0.9);
}
.datos-img-wrap {
  position: relative;

  border: 1px solid rgba(139,26,26,0.4);

  box-shadow:
    0 0 50px rgba(139,26,26,0.15);

  overflow: hidden;
  
}
.historial-img {
  border-radius: 20px;

  box-shadow:
    0 20px 60px rgba(0,0,0,.4),
    0 0 40px rgba(139,26,26,.15);
}
.datos-bg-img {
  transform: scale(1.08);
  transition: transform 1.5s ease;
}

.datos-img-wrap:hover .datos-bg-img {
  transform: scale(1.15);
}
.datos-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 32px;
}

.datos-overlay p {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.8),
    0 0 20px rgba(0,0,0,0.6);
}

.datos-disclaimer {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--white);
  text-align: center;
  line-height: 1.7;
  max-width: 1000px;
  margin: 0 auto;
  letter-spacing: 0.04em;
}
.nivel-row {
  padding: 24px;
  margin-bottom: 16px;

  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.02);

  border-radius: 12px;

  transition: all .3s ease;
}

.nivel-row:hover {
  transform: translateX(8px);

  border-color: rgba(139,26,26,0.4);
  
}
.nivel-label {
  position: relative;
}

.nivel-label::before {
  content: attr(data-num);

  position: absolute;

  left: -30px;
  top: -20px;

  font-size: 80px;

  opacity: .05;

  font-weight: 700;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
  .page {
    padding: 28px 32px 40px;
  }

  .sobre-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .historial-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .historial-img {
    max-width: 100%;
    height: 320px;
  }

  .name-script {
    font-size: 60px;
  }

  .name-script.robledo {
    font-size: 70px;
  }

  .equipo-cards {
    flex-direction: column;
    max-width: 400px;
  }
}
/* ======================================== */
/* NAVBAR FIJA */
/* ======================================== */

.navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 26px 72px;

  z-index: 9999;

  background: rgba(10, 10, 10, 0.35);

  backdrop-filter: blur(12px);
}


/* ======================================== */
/* LOGO */
/* ======================================== */

.nav-logo {
  font-family: var(--font-serif);

  font-size: 24px;

  color: var(--white);

  font-style: italic;
}


/* ======================================== */
/* LINKS MENU */
/* ======================================== */

.navbar-links {
  display: flex;

  align-items: center;

  gap: 42px;

  list-style: none;
}


/* ======================================== */
/* LINKS */
/* ======================================== */

.navbar-links a {
  color: var(--white);

  text-decoration: none;

  font-family: var(--font-sans);

  font-size: 12px;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  position: relative;

  transition: opacity 0.3s ease;
}


/* ======================================== */
/* HOVER */
/* ======================================== */

.navbar-links a:hover {
  opacity: 0.6;
}


/* ======================================== */
/* LINEA ANIMADA */
/* ======================================== */

.navbar-links a::after {
  content: '';

  position: absolute;

  left: 0;
  bottom: -6px;

  width: 0%;

  height: 1px;

  background: var(--white);

  transition: width 0.4s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}


/* ======================================== */
/* SEPARACIÓN PARA NAVBAR */
/* EVITA QUE EL MENU TAPE EL CONTENIDO */
/* ======================================== */

.page-cover {
  padding-top: 100px;
}


/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

@media (max-width: 900px) {

  .navbar {
    padding: 24px 24px;

    flex-direction: column;

    gap: 20px;
  }

  .navbar-links {
    gap: 18px;

    flex-wrap: wrap;

    justify-content: center;
  }

}
/* ======================================== */
/* NAVBAR ESTILO EDITORIAL */
/* ======================================== */

.navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 30px 72px;

  z-index: 9999;

  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.85),
    rgba(10, 10, 10, 0.15),
    transparent
  );

  backdrop-filter: blur(8px);
}


/* ======================================== */
/* LOGO */
/* ======================================== */

.nav-logo {
  font-family: var(--font-serif);

  font-style: italic;

  font-size: 26px;

  font-weight: 400;

  color: var(--white);

  letter-spacing: -0.02em;
}


.nav-links li {
  list-style: none;
}

.nav-links a {
  position: relative;

  font-family: var(--font-sans);

  font-size: 13px;

  font-weight: 400;

  color: var(--white);

  text-decoration: none;

  letter-spacing: 0.03em;

  transition: color 0.3s ease;
}


/* ======================================== */
/* HOVER */
/* ======================================== */

.nav-links a:hover {
  color: var(--red);
}


/* ======================================== */
/* LINEA ANIMADA */
/* ======================================== */

.nav-links a::after {
  content: '';

  position: absolute;

  left: 0;
  bottom: -6px;

  width: 0%;

  height: 1px;

  background: var(--red);

  transition: width 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
}


/* ======================================== */
/* LINKS */
/* ======================================== */

.navbar-links a {
  position: relative;

  text-decoration: none;

  color: var(--white);

  font-family: var(--font-sans);

  font-size: 12px;

  font-weight: 400;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  transition: all 0.35s ease;
}


/* ======================================== */
/* HOVER */
/* ======================================== */

.navbar-links a:hover {
  color: var(--red);
}


/* ======================================== */
/* LINEA HOVER */
/* ======================================== */

.navbar-links a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0%;

  height: 1px;

  background: var(--red);

  transition: width 0.4s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}


/* ======================================== */
/* ESPACIADO HERO */
/* PARA QUE EL MENU NO TAPE */
/* ======================================== */

.page-cover {
  padding-top: 110px;
}


/* ======================================== */
/* EFECTO SCROLL */
/* ======================================== */

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);

  border-bottom: 1px solid rgba(255,255,255,0.05);
}


/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

@media (max-width: 900px) {

  .navbar {
    padding: 24px 28px;

    flex-direction: column;

    gap: 20px;
  }

  .navbar-links {
    gap: 18px;

    flex-wrap: wrap;

    justify-content: center;
  }

  .nav-logo {
    font-size: 22px;
  }

}
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page {
  background: transparent;
  position: relative;
  z-index: 1;
}