
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Sora:wght@400;600;700;800&display=swap");

:root {
  --bg: #070b18;
  --surface: #111b39;
  --surface-soft: #0c142b;
  --line: rgba(103, 132, 255, 0.24);
  --text-main: #e9eefc;
  --text-muted: #a7b3d5;
  --brand: #2f7cff;
  --brand-strong: #1f5cdd;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(900px 500px at 78% 3%, rgba(47, 124, 255, 0.2), transparent 65%),
    radial-gradient(700px 350px at 20% 0%, rgba(12, 220, 255, 0.08), transparent 70%),
    var(--bg);
}

h1,
h2,
h3,
h4,
.navbar-brand {
  font-family: "Sora", sans-serif;
}

.nav-glass {
  background: rgba(6, 10, 24, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(112, 130, 255, 0.2);
}

.navbar-brand {
  letter-spacing: 0.4px;
  font-size: 1.75rem;
}

.nav-link {
  color: #d9e2ff;
  font-weight: 500;
  position: relative;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.6rem;
  height: 2px;
  background: var(--brand);
}

.btn-quote {
  border-radius: 0.55rem;
  font-size: 0.83rem;
  box-shadow: 0 8px 20px rgba(47, 124, 255, 0.35);
}

.hero-section {
  min-height: 92vh;
  display: grid;
  align-items: center;
}

.hero-left {
  padding-top: 2rem;
}

.badge-tech {
  background: rgba(23, 196, 107, 0.16);
  color: #7effbd;
  border: 1px solid rgba(23, 196, 107, 0.4);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.35rem, 5.8vw, 4.85rem);
  line-height: 1.02;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.hero-title span {
  display: block;
  color: var(--brand);
}

.hero-copy {
  max-width: 540px;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.62;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cdd8fb;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: #fff;
  border-color: rgba(102, 150, 255, 0.8);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #4b90ff, #2362ea);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tags span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8e2ff;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  min-height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.48);
}

.floating-card {
  position: absolute;
  background: rgba(8, 14, 32, 0.88);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.code-card {
  top: 1rem;
  right: 0.9rem;
  width: 265px;
  padding: 0.9rem;
}

.code-card p {
  margin: 0;
  color: #84a5ff;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}

.stack-card {
  bottom: 4.4rem;
  right: 1rem;
  padding: 0.85rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stack-card span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.55rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.74rem;
  color: #dce6ff;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.stats-grid {
  margin-top: -2.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.7rem;
  max-width: 720px;
  margin-left: auto;
}

.stats-grid article {
  background: rgba(10, 17, 37, 0.9);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem 0.8rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

.stats-grid h3 {
  color: #67a0ff;
  margin-bottom: 0.18rem;
  font-size: 1.95rem;
}

.stats-grid p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.82rem;
}

.section-panel {
  background: linear-gradient(180deg, transparent, rgba(16, 26, 56, 0.64));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  margin-bottom: 1.4rem;
}

.about-copy {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}

.galeria {
  background: linear-gradient(180deg, #0b1228, #0a1020);
  border: 1px solid var(--line);
}

.project-card {
  background: var(--surface-soft);
  border: 1px solid rgba(130, 153, 255, 0.2);
  border-radius: 1rem;
  padding: 0.7rem;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.38);
  border-color: rgba(108, 146, 255, 0.55);
}

.project-card h3 {
  margin: 0.75rem 0 0.2rem;
  font-size: 1.03rem;
  color: #f0f4ff;
}

.proyecto-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.referencias {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.4rem;
  scroll-snap-type: x mandatory;
}

.referencia {
  flex: 0 0 290px;
  background: var(--surface);
  border: 1px solid rgba(126, 146, 240, 0.22);
  border-radius: 1rem;
  padding: 1rem;
  scroll-snap-align: start;
}

.referencia h3 {
  font-size: 1.05rem;
}

.referencia img {
  width: 128px;
  height: 128px;
  border-radius: 0.8rem;
  object-fit: cover;
  margin: 0.5rem 0;
}

.referencia p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contacto-section {
  max-width: 760px;
}

.form-contacto {
  background: var(--surface);
  border: 1px solid rgba(126, 146, 240, 0.25);
}

.form-label {
  color: #d8e2ff;
}

.form-control {
  background: #08122b;
  border: 1px solid rgba(126, 146, 240, 0.25);
  color: #e8eeff;
}

.form-control:focus {
  background: #0a1530;
  color: #f4f7ff;
  border-color: #608cff;
  box-shadow: 0 0 0 0.2rem rgba(96, 140, 255, 0.2);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(2, 6, 19, 0.84);
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal:target {
  display: block;
}

.modal-contenido {
  max-width: 760px;
  margin: 0 auto;
  background: #f6f8ff;
  color: #1c2440;
  border-radius: 1rem;
  padding: 1.4rem;
  position: relative;
}

.modal-contenido h2,
.modal-contenido h3 {
  color: #111937;
}

.cerrar {
  position: absolute;
  right: 0.95rem;
  top: 0.35rem;
  text-decoration: none;
  font-size: 2rem;
  color: #1b2548;
}

pre {
  background: #0f1630;
  color: #d9e5ff;
  padding: 0.9rem;
  border-radius: 0.65rem;
  overflow-x: auto;
}

footer {
  border-top: 1px solid rgba(126, 146, 240, 0.2);
  background: rgba(5, 9, 20, 0.9);
  color: #a6b3dc;
}

a {
  color: #1f5cdd;
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-left {
    padding-top: 0.8rem;
  }

  .stats-grid {
    margin-top: 1.3rem;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: none;
  }

  .hero-visual img {
    min-height: 360px;
  }

  .code-card {
    width: 220px;
  }
}

@media (max-width: 575px) {
  .nav-link.active::after,
  .nav-link:hover::after {
    display: none;
  }

  .proyecto-img {
    height: 190px;
  }

  .floating-card {
    position: static;
    margin-top: 0.8rem;
  }

  .hero-copy {
    font-size: 1.03rem;
  }

  .stats-grid h3 {
    font-size: 1.55rem;
  }

  .stack-card {
    justify-content: center;
    flex-wrap: wrap;
  }
}

