:root {
  --bg: #0a0a0f;
  --card: #12121a;

  --text: #f8fafc;
  --muted: #9ca3af;

  --pink: #f9a8d4;
  --pink-soft: #fbcfe8;

  --border: #1f1f2b;

  --radius: 16px;
}

/* RESET */

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

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto;
  background: var(--bg);
  color: var(--text);

  line-height: 1.6;
}

/* HERO */

.hero {
  text-align: center;
  padding: 120px 20px 80px;

  background: radial-gradient(
    circle at top,
    rgba(249,168,212,0.25) 0%,
    rgba(249,168,212,0.15) 35%,
    rgba(10,10,15,0.9) 70%,
    var(--bg) 100%
  );
}

.hero h1 {
  font-size: 48px;
  color: var(--pink);
  text-shadow: 0 0 25px rgba(249,168,212,0.35);
}

.subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
}

.hero-buttons {
  margin-top: 30px;

  display: flex;
  gap: 12px;

  justify-content: center;
  flex-wrap: wrap;
}

/* HERO ENTRADA */

.hero h1 {
  animation: heroTitle 1s ease forwards;
}

.subtitle {
  opacity: 0;
  animation: heroSubtitle 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-buttons {
  opacity: 0;
  animation: heroButtons 1s ease forwards;
  animation-delay: 0.6s;
}

@keyframes heroTitle {
  from {
    opacity: 0;
    transform: translateY(-35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubtitle {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroButtons {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* BOTONES */

.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid var(--pink);

  background: transparent;
  color: var(--pink-soft);

  text-decoration: none;
  cursor: pointer;

  transition: 0.25s;
  font-size: 14px;

  position: relative; /* NECESARIO */
  overflow: hidden; /* NECESARIO */
}

/* EFECTO BRILLO */

.btn::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(249, 168, 212, 0.45),
    transparent
  );

  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::after {
  transform: translateX(100%);
}

button.btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink-soft);
  font: inherit;
}

.btn:hover {
  background: var(--pink);
  color: #000;
}

.btn.primary {
  background: var(--pink);
  color: #000;
}

.btn.active {
  background: var(--pink);
  color: #000;
}

/* CONTAINER */

.container {
  max-width: 1100px;

  margin: auto;

  padding: 60px 20px;
  position: relative;
  z-index: 1;
}


/* PERFIL */

.profile {
  display: grid;

  grid-template-columns: 260px 1fr;

  gap: 40px;

  align-items: center;
}

/* TEXTO */

.muted {
  color: var(--muted);
}

/* SKILLS */

.skills {
  margin-top: 20px;

  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.skills span {
  border: 2px solid var(--pink);

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 12px;

  color: var(--pink-soft);
}

/* TARJETAS */

.cards {
  margin-top: 20px;

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 20px;
}

.card {
  background: var(--card);

  border-radius: var(--radius);

  padding: 20px;

  border: 1px solid var(--border);

  display: flex;

  flex-direction: column;

  gap: 12px;

  transition: 0.25s;
  position: relative;
  overflow: hidden;
}

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

  border-color: var(--pink);
}
.card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: var(--radius);

  background: radial-gradient(
    circle at top,
    rgba(249, 168, 212, 0.15),
    transparent 70%
  );

  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover::before {
  opacity: 1;
}
/* META REPOS */

.repoMeta {
  font-size: 12px;

  color: var(--muted);

  display: flex;

  gap: 10px;

  flex-wrap: wrap;
}

/* TOOLBAR */

.toolbar {
  margin-top: 20px;

  display: flex;

  gap: 10px;

  flex-wrap: wrap;

  align-items: center;
}

/* INPUTS */

.input,
.select {
  padding: 10px;

  border-radius: 10px;

  border: 1px solid var(--border);

  background: #0f0f15;

  color: white;

  font-size: 14px;
}

.input:focus,
.select:focus {
  outline: none;

  border-color: var(--pink);
}

/* FOOTER */

.footer {
  text-align: center;

  padding: 40px;

  color: var(--muted);

  border-top: 1px solid var(--border);

  margin-top: 60px;
}

/* TITULOS */

h2 {
  font-size: 26px;

  margin-bottom: 10px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero h1 {
    font-size: 36px;
  }

  .profile {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  /* FOTO PERFIL */

  .photo {
    width: 200px;
    height: 200px;
    animation: floatPhoto 6s ease-in-out infinite;
  }

  @keyframes floatPhoto {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-8px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  .photo::before {
    width: 115%;
    height: 115%;
  }

  .photo::after {
    width: 108%;
    height: 108%;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 80px 20px;
  }
}
/* ANIMACIONES */

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* STATS */

.stats-grid {
  margin-top: 20px;

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

  gap: 20px;
}

.stat {
  background: var(--card);

  border: 1px solid var(--border);

  padding: 25px;

  border-radius: var(--radius);

  text-align: center;

  transition: 0.3s;
}

.stat:hover {
  transform: translateY(-5px);

  border-color: var(--pink);
}
.stat:hover .stat-number {
  transform: scale(1.15);
  transition: transform 0.3s;
}

.stat-number {
  font-size: 32px;

  font-weight: 700;

  color: var(--pink);
}

.stat-label {
  font-size: 14px;

  color: var(--muted);

  margin-top: 6px;
}

/* CONTENEDOR FOTO */

.photo {
  position: relative;

  width: clamp(180px, 22vw, 220px);
  height: clamp(180px, 22vw, 220px);

  margin: auto;

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

  flex-shrink: 0;
}

/* FOTO */

.photo img {
  width: 100%;
  height: 100%;

  border-radius: 50%;

  object-fit: cover;

  border: 3px solid var(--pink-soft);

  position: relative;
  z-index: 2;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* HALO ROSA */

.photo::before {
  content: "";

  position: absolute;

  width: 110%;
  height: 110%;

  border-radius: 50%;

  background: linear-gradient(120deg, #f9a8d4, #fbcfe8, #f9a8d4, #f472b6);
  background-size: 300% 300%;

  animation: gradientSpin 8s ease infinite;

  filter: blur(14px);

  z-index: 0;
}
/* ANILLO GIRANDO */

.photo::after {
  content: "";

  position: absolute;

  width: 105%;
  height: 105%;

  border-radius: 50%;

  border: 2px dashed rgba(249, 168, 212, 0.6);

  animation: spin 18s linear infinite;

  z-index: 1;
}

/* ANIMACION */

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

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

/* HOVER */

.photo:hover img {
  transform: scale(1.05);

  box-shadow: 0 0 35px rgba(249, 168, 212, 0.55),
    0 0 80px rgba(249, 168, 212, 0.25);
}
@keyframes gradientSpin {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}
/* ENTRADA TARJETAS */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);

  display: flex;
  flex-direction: column;
  gap: 12px;

  position: relative;
  overflow: hidden;

  transition: all 0.6s ease;

  opacity: 0;
  transform: translateY(40px) scale(0.96);
}

.card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.skills span {
  opacity: 0;
  transform: translateY(10px);
  animation: skillFade 0.5s ease forwards;
}

.skills span:nth-child(1) {
  animation-delay: 0.1s;
}
.skills span:nth-child(2) {
  animation-delay: 0.2s;
}
.skills span:nth-child(3) {
  animation-delay: 0.3s;
}
.skills span:nth-child(4) {
  animation-delay: 0.4s;
}
.skills span:nth-child(5) {
  animation-delay: 0.5s;
}
/* CURSOR GLOW */

body::before {
  content: "";

  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;

  background: radial-gradient(
    400px circle at var(--x, 50%) var(--y, 50%),
    rgba(249, 168, 212, 0.12),
    transparent 60%
  );

  z-index: 0;
}
@keyframes skillFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
