@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600&display=swap");

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #030c1a;
  font-family: "Rajdhani", sans-serif;
  color: white;
}
body::before {
  content: "";

  position: fixed;
  inset: 0;

  background:
    radial-gradient(
      ellipse 60% 40% at 50% 0%,
      rgba(0, 140, 255, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 30% at 80% 80%,
      rgba(0, 200, 180, 0.07) 0%,
      transparent 60%
    );

  pointer-events: none;
  z-index: -2;
}

/* ---------- Grid de fondo ---------- */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 140, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 140, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Logo */
.logo {
  font-family: "Orbitron", monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #00d9ff;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 8%;
  background: rgba(3, 12, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 170, 255, 0.15);
  z-index: 1000;
}

.navbar nav {
  display: flex;
  gap: 2rem;
}

.navbar nav a {
  text-decoration: none;
  color: #b7d9ff;
  font-family: "Orbitron", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: 0.3s;
}

.navbar nav a:hover {
  color: #00eaff;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 8% 80px;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
}

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

/* ---------- Avatar ---------- */
.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003366, #001833);
  border: 2px solid rgba(0, 150, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", monospace;
  font-size: 22px;
  font-weight: 700;
  color: #00ccff;
  position: relative;
  overflow: hidden;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 200, 255, 0.15),
    transparent 60%
  );
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.3);
  animation: spin-slow 8s linear infinite;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00eeff;
  box-shadow: 0 0 6px #00eeff;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ff88;
  border: 2px solid #030c1a;
  animation: blink-dot 2s ease-in-out infinite;
}

@keyframes blink-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ---------- Bloque de nombre ---------- */

.sc2-label {
  font-family: "Orbitron", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(0, 180, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.hero-text h1 {
  font-family: "Orbitron", monospace;
  font-size: 4rem;
  line-height: 1.1;
  color: #ffffff;
}

.hero-text h2 {
  color: #00cfff;
  margin-top: 0.75rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.hero-text p {
  margin-top: 1.5rem;
  max-width: 650px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(220, 235, 255, 0.8);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.9rem 1.6rem;

  text-decoration: none;

  font-family: "Orbitron", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;

  color: #b7d9ff;

  background: linear-gradient(
    135deg,
    rgba(0, 60, 120, 0.25),
    rgba(0, 20, 50, 0.45)
  );

  border: 1px solid rgba(0, 170, 255, 0.25);

  backdrop-filter: blur(10px);

  position: relative;
  overflow: hidden;

  transition: all 0.3s ease;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.hero-secondary-btn::before {
  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 220, 255, 0.12),
    transparent
  );

  transition: left 0.6s ease;
}

.hero-secondary-btn:hover {
  border-color: rgba(0, 210, 255, 0.6);

  color: white;

  transform: translateY(-3px);

  box-shadow:
    0 0 10px rgba(0, 210, 255, 0.3),
    0 0 20px rgba(0, 210, 255, 0.15);
}

.hero-secondary-btn:hover::before {
  left: 100%;
}
/* =========================
   ABOUT
========================= */

.about {
  padding: 8rem 8%;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #00aaff,
    #00eeff,
    #00aaff,
    transparent
  );
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: "Orbitron", monospace;
  font-size: 3rem;
  color: white;
  text-shadow:
    0 0 8px rgba(0, 170, 255, 0.4),
    0 0 18px rgba(0, 170, 255, 0.2);
}

.section-tag {
  display: inline-block;

  padding: 6px 14px;

  background: rgba(0, 100, 200, 0.15);

  border: 1px solid rgba(0, 180, 255, 0.3);

  color: #60c8ff;

  font-family: Orbitron;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.about-status {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 2rem;

  color: #60c8ff;

  font-family: Orbitron;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.status-light {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #00ff88;

  animation: blink-dot 2s infinite;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  overflow: hidden;
  padding: 3rem;

  background: linear-gradient(
    135deg,
    rgba(4, 16, 38, 0.95),
    rgba(2, 10, 28, 0.98)
  );
  background-image:
    linear-gradient(rgba(0, 150, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 255, 0.03) 1px, transparent 1px);

  background-size: 25px 25px;
  border: 1px solid rgba(0, 150, 255, 0.25);

  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
}

.about-content::before {
  content: "";

  position: absolute;

  top: 0;
  left: 40px;
  right: 40px;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    #00aaff,
    #00eeff,
    #00aaff,
    transparent
  );

  animation: pulse-line 3s infinite;
}

.about-content::after {
  content: "";

  position: absolute;

  bottom: 0;
  left: 40px;
  right: 40px;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    #00aaff,
    #00eeff,
    #00aaff,
    transparent
  );

  animation: pulse-line 3s infinite reverse;
}

.about-description {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-description p {
  color: rgba(220, 235, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.9;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;

  margin-top: 1rem;
  padding: 0.9rem 1.5rem;

  text-decoration: none;

  font-family: "Orbitron", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;

  color: #00eaff;

  background: linear-gradient(
    90deg,
    rgba(0, 120, 255, 0.15),
    rgba(0, 255, 255, 0.08)
  );

  border: 1px solid rgba(0, 220, 255, 0.4);

  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);

  transition: all 0.3s ease;

  position: relative;
  overflow: hidden;
}

.cv-btn::before {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.35),
    transparent
  );

  transition: left 0.6s ease;
}

.cv-btn:hover::before {
  left: 120%;
}

.cv-btn:hover {
  color: white;

  border-color: #00ffff;

  transform: translateY(-2px);

  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.6),
    0 0 20px rgba(0, 200, 255, 0.4);
}

.about-info {
  display: grid;
  gap: 1rem;
}

.info-card {
  background: linear-gradient(
    135deg,
    rgba(0, 60, 120, 0.25),
    rgba(0, 20, 50, 0.45)
  );

  border: 1px solid rgba(0, 170, 255, 0.25);

  padding: 1.5rem;

  position: relative;

  overflow: hidden;
}

.info-card:hover {
  border-color: rgba(0, 210, 255, 0.5);
  transform: translateY(-4px);
}

.info-card:hover::before {
  left: 100%;
}

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

  position: absolute;

  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 220, 255, 0.08),
    transparent
  );

  transition: 0.6s;
}

.info-label {
  display: block;
  font-family: "Orbitron", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #00cfff;
  margin-bottom: 0.75rem;
}

.info-value {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

/* =========================
   PROJECTS
========================= */
.projects {
  padding: 8rem 8%;
  position: relative;
}

.projects-grid {
  max-width: 1200px;

  margin: 0 auto;

  display: grid;

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

  gap: 2rem;
}

.project-card {
  position: relative;

  padding: 2rem;

  background: linear-gradient(
    135deg,
    rgba(4, 16, 38, 0.95),
    rgba(2, 10, 28, 0.98)
  );

  border: 1px solid rgba(0, 150, 255, 0.25);

  overflow: hidden;

  transition: 0.3s;

  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
}

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

  border-color: rgba(0, 220, 255, 0.6);

  box-shadow:
    0 0 15px rgba(0, 220, 255, 0.15),
    0 0 30px rgba(0, 220, 255, 0.08);
}

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

  position: absolute;

  top: 0;
  left: 30px;
  right: 30px;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    #00aaff,
    #00eeff,
    #00aaff,
    transparent
  );
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 1rem;

  font-family: Orbitron;
  font-size: 0.7rem;
  letter-spacing: 0.15em;

  color: #60c8ff;
}

.project-card h3 {
  font-family: Orbitron;

  color: white;

  margin-bottom: 1rem;

  font-size: 1.4rem;
}

.project-card p {
  color: rgba(220, 235, 255, 0.8);

  line-height: 1.8;

  margin-bottom: 1.5rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;

  margin-bottom: 1.5rem;
}

.project-stack span {
  padding: 0.45rem 0.8rem;

  background: rgba(0, 100, 200, 0.15);

  border: 1px solid rgba(0, 170, 255, 0.25);

  font-size: 0.8rem;

  color: #8ed8ff;
}

.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================
PROJECT DETAIL
========================= */

.project-page {
  min-height: 100vh;
  background: #030c1a;
  color: white;
}

.project-hero {
  padding: 130px 2rem 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-tag {
  display: inline-block;

  font-family: "Orbitron", monospace;

  font-size: 0.75rem;

  letter-spacing: 0.3em;

  color: rgba(0, 210, 255, 0.7);

  margin-bottom: 1rem;
}

.project-hero h1 {
  font-family: "Orbitron", monospace;

  font-size: 4rem;

  line-height: 1.1;

  margin-bottom: 1.5rem;
}

.project-subtitle {
  max-width: 800px;

  font-size: 1.3rem;

  color: rgba(220, 235, 255, 0.8);

  line-height: 1.8;

  text-align: justify;
}

.project-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.project-section {
  margin-bottom: 4rem;
}

.project-section h2 {
  font-family: "Orbitron", monospace;

  font-size: 2rem;

  margin-bottom: 1.5rem;

  color: white;
}

.project-section p {
  color: rgba(220, 235, 255, 0.8);

  line-height: 1.9;

  font-size: 1.05rem;

  margin-bottom: 1rem;
}

.project-panel {
  position: relative;

  padding: 2rem;

  background: linear-gradient(
    135deg,
    rgba(4, 16, 38, 0.95),
    rgba(2, 10, 28, 0.98)
  );

  border: 1px solid rgba(0, 150, 255, 0.2);

  backdrop-filter: blur(10px);

  overflow: hidden;
}

.project-panel::before {
  content: "";

  position: absolute;

  top: 0;
  left: 30px;
  right: 30px;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    #00aaff,
    #00eeff,
    #00aaff,
    transparent
  );
}

.tech-grid {
  display: flex;

  flex-wrap: wrap;

  gap: 0.75rem;
}

.tech-badge {
  padding: 0.5rem 0.9rem;

  background: rgba(0, 100, 200, 0.15);

  border: 1px solid rgba(0, 170, 255, 0.25);

  color: #8ed8ff;

  font-size: 0.85rem;
}

.project-list {
  display: grid;
  gap: 1rem;
}

.project-list li {
  list-style: none;

  position: relative;

  padding-left: 1.5rem;

  color: rgba(220, 235, 255, 0.8);

  line-height: 1.8;
}

.project-list li::before {
  content: "";

  position: absolute;

  left: 0;
  top: 10px;

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #00eaff;

  box-shadow: 0 0 8px #00eaff;
}

.metrics-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1.5rem;
}

.metric-card {
  padding: 1.5rem;

  text-align: center;

  background: rgba(0, 60, 120, 0.15);

  border: 1px solid rgba(0, 170, 255, 0.15);
}

.metric-card h3 {
  font-family: "Orbitron", monospace;

  font-size: 2rem;

  color: #00eaff;

  margin-bottom: 0.5rem;
}

.metric-card span {
  color: rgba(220, 235, 255, 0.75);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;

  margin-top: 1rem;
  padding: 0.9rem 1.5rem;

  text-decoration: none;

  font-family: "Orbitron", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;

  color: #00eaff;

  background: linear-gradient(
    90deg,
    rgba(0, 120, 255, 0.15),
    rgba(0, 255, 255, 0.08)
  );

  border: 1px solid rgba(0, 220, 255, 0.4);

  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);

  transition: all 0.3s ease;

  position: relative;
  overflow: hidden;

  letter-spacing: 0.15em;
}

.back-btn::before {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.35),
    transparent
  );

  transition: left 0.6s ease;
}

.back-btn:hover::before {
  left: 120%;
}

.back-btn:hover {
  color: white;

  border-color: #00ffff;

  transform: translateY(-2px);

  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.6),
    0 0 20px rgba(0, 200, 255, 0.4);
}

/* =========================
ARQUITECTURA
========================= */

.architecture-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  margin-top: 2rem;
}

.architecture-box {
  width: 100%;
  max-width: 400px;

  padding: 1rem 1.5rem;

  text-align: center;

  font-family: "Orbitron", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;

  color: #e8f4ff;

  background: linear-gradient(
    135deg,
    rgba(0, 60, 120, 0.25),
    rgba(0, 20, 60, 0.45)
  );

  border: 1px solid rgba(0, 170, 255, 0.25);

  position: relative;

  overflow: hidden;
}

.architecture-box::before {
  content: "";

  position: absolute;

  top: 0;
  left: 20px;
  right: 20px;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    #00aaff,
    #00eeff,
    #00aaff,
    transparent
  );
}

.architecture-box:hover {
  border-color: rgba(0, 220, 255, 0.6);

  box-shadow: 0 0 10px rgba(0, 180, 255, 0.25);

  transform: translateY(-2px);

  transition: all 0.3s ease;
}

.architecture-arrow {
  font-size: 1.8rem;

  color: #00d9ff;

  text-shadow: 0 0 8px rgba(0, 220, 255, 0.8);

  animation: architecture-pulse 2s infinite;
}

@keyframes architecture-pulse {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.architecture-workers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;

  max-width: 600px;

  padding: 1rem;

  border: 1px solid rgba(0, 170, 255, 0.15);

  background: rgba(0, 60, 120, 0.12);

  position: relative;
}
.architecture-workers::before {
  content: "PROCESAMIENTO ASÍNCRONO";

  position: absolute;

  top: -10px;
  left: 12px;

  padding: 0 8px;

  background: #030c1a;

  color: #00cfff;

  font-family: "Orbitron", monospace;

  font-size: 0.65rem;

  letter-spacing: 0.15em;
}
/* =========================
   FOOTER
========================= */

.footer {
  position: relative;
  border-top: 1px solid rgba(0, 170, 255, 0.15);
  background: rgba(3, 12, 26, 0.9);
  backdrop-filter: blur(10px);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    #00aaff,
    #00eeff,
    #00aaff,
    transparent
  );
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: "Orbitron", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #00d9ff;
}

.footer-text {
  color: rgba(220, 235, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: #b7d9ff;
  font-family: "Orbitron", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #00eaff;
}

/* ================================
   BOTÓN GAMER — INICIAR MISIÓN
   ================================ */

.portfolio-btn.gamer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
  padding: 6px 18px;
  font-family: "Orbitron", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  color: #00f0ff;
  background: linear-gradient(
    90deg,
    rgba(0, 120, 255, 0.15),
    rgba(0, 255, 255, 0.08)
  );
  border: 1px solid rgba(0, 220, 255, 0.6);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

/* Glow base */
.portfolio-btn.gamer {
  box-shadow: 0 0 6px rgba(0, 200, 255, 0.4);
}

/* Energía animada */
.portfolio-btn.gamer::before {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
}

.portfolio-btn.gamer:hover::before {
  left: 120%;
}

/* Hover poderoso */
.portfolio-btn.gamer:hover {
  color: #ffffff;
  border-color: #00ffff;
  background: linear-gradient(
    90deg,
    rgba(0, 150, 255, 0.35),
    rgba(0, 255, 255, 0.2)
  );
  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.8),
    0 0 18px rgba(0, 200, 255, 0.6);
  transform: translateY(-2px);
}

/* Punto pulsante tipo sistema activo */
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ffcc;
  box-shadow: 0 0 6px #00ffff;
  animation: pulse-mission 1.5s ease-in-out infinite;
}

@keyframes pulse-mission {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

/* ---------- Esquinas decorativas ---------- */
.corner-tl,
.corner-br {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.corner-tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid #00aaff;
  border-left: 2px solid #00aaff;
}

.corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #00aaff;
  border-right: 2px solid #00aaff;
}

/* ---------- Líneas de energía ---------- */
.energy-line-top {
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #00aaff,
    #00eeff,
    #00aaff,
    transparent
  );
  animation: pulse-line 3s ease-in-out infinite;
}

.energy-line-bottom {
  position: absolute;
  bottom: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #00aaff,
    #00eeff,
    #00aaff,
    transparent
  );
  animation: pulse-line 3s ease-in-out infinite 1.5s;
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Línea de escaneo ---------- */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 220, 255, 0.4),
    transparent
  );

  box-shadow:
    0 0 8px rgba(0, 220, 255, 0.6),
    0 0 16px rgba(0, 220, 255, 0.3);

  animation: scan 4s linear infinite;

  pointer-events: none;
}

@keyframes scan {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

/* ============================================
TABLET Y MOBILE
============================================ */
@media (max-width: 768px) {

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

  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .navbar nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar nav a {
    font-size: 0.75rem;
  }

  .logo {
    font-size: 1.1rem;
  }

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

  .hero {
    padding: 140px 1.5rem 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-image {
    order: 1;
  }

  .hero-text {
    order: 2;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text h2 {
    font-size: 1.1rem;
  }

  .hero-text p {
    font-size: 1rem;
    max-width: 100%;
  }

  .sc2-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .portfolio-btn.gamer,
  .hero-secondary-btn,
  .back-btn {
    width: 100%;
    justify-content: center;
  }

  /* =========================
     ABOUT
  ========================= */

  .about {
    padding: 6rem 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .about-description {
    text-align: center;
  }

  .cv-btn {
    margin-inline: auto;
  }

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

  .projects {
    padding: 6rem 1.5rem;
  }

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

  .project-card {
    padding: 1.5rem;
  }

  .project-card-title {
    font-size: 1.3rem;
  }

  /* =========================
     PROJECT DETAIL
  ========================= */

  .project-hero {
    padding: 140px 1.5rem 60px;
  }

  .project-content {
    padding: 0 1.5rem 4rem;
  }

  .project-hero h1 {
    font-size: 2.5rem;
  }

  .project-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .project-section {
    padding: 1.5rem;
  }

  .project-section h2 {
    font-size: 1.6rem;
  }

  .architecture-flow {
    gap: 1rem;
  }

  .architecture-box {
    width: 100%;
  }

  .architecture-workers {
    justify-content: center;
  }

  .tech-grid {
    justify-content: center;
  }

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

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

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ============================================
MOBILE PEQUEÑO
============================================ */
@media (max-width: 480px) {

  .hero {
    padding: 160px 1rem 60px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1rem;
  }

  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }

  .navbar nav {
    gap: 0.75rem;
  }

  .navbar nav a {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  /* ABOUT */

  .section-header h2 {
    font-size: 1.8rem;
  }

  .about-description p {
    font-size: 0.95rem;
  }

  .info-card {
    padding: 1rem;
  }

  /* PROJECTS */

  .project-card {
    padding: 1.25rem;
  }

  .project-card-title {
    font-size: 1.1rem;
  }

  /* PROJECT DETAIL */

  .project-hero {
    padding: 160px 1rem 50px;
  }

  .project-hero h1 {
    font-size: 2rem;
  }

  .project-tag {
    font-size: 0.65rem;
  }

  .project-subtitle {
    font-size: 0.95rem;
  }

  .project-content {
    padding: 0 1rem 3rem;
  }

  .project-section {
    padding: 1.25rem;
  }

  .project-section h2 {
    font-size: 1.4rem;
  }

  .architecture-box {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .tech-badge {
    font-size: 0.65rem;
  }

  .metric-card {
    padding: 1rem;
  }

  .metric-value {
    font-size: 1.8rem;
  }

  /* FOOTER */

  .footer-text {
    font-size: 0.85rem;
  }

  .footer-links a {
    font-size: 0.7rem;
  }
}