/* ===========================
   STYLE - Option A (PRO) + section blur B-style
   =========================== */
:root {
  --bg-900: #07080a;
  --bg-800: #0b0d0f;
  --panel: rgba(255, 255, 255, 0.03);
  --glass: rgba(255, 255, 255, 0.02);
  --cyan: #00F0FF;
  --muted: #98a0a6;
  --maxw: 1200px;
  --radius: 14px;
}

/* Base */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  background: linear-gradient(180deg, rgba(6, 8, 10, 1) 0%, rgba(11, 13, 15, 1) 40%, rgba(6, 8, 10, 1) 100%);
  color: #e6eef0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
  /* custom */
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px
}

/* NAV */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 18px;
  padding: 6px 0;
  z-index: 1200;
  pointer-events: auto
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.06));
  padding: 10px 18px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(4px)
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em
}

.accent {
  color: var(--cyan)
}

.nav-links a {
  margin-left: 18px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px
}

.cta {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 8px
}

/* HERO */
.section-hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: center
}

.hero-inner {
  text-align: center
}


.hero-title {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 56px;
  line-height: 1;
  margin: 0;
  color: #fff
}

.text-gradient {
  background: linear-gradient(90deg, var(--cyan), #5bc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.hero-lead {
  max-width: 760px;
  margin: 18px auto;
  color: var(--muted);
  font-size: 16px
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700
}

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

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff
}

/* SECTION baseline */
.section {
  padding: 64px 0
}

.section-block {
  position: relative;
  padding: 100px 0;
  transition: filter .45s ease, opacity .45s ease, transform .45s ease;
  will-change: filter, opacity, transform;
  scroll-snap-align: center
}

.section-block.not-active {
  filter: blur(6px);
  opacity: 0.35;
  transform: scale(0.96);
  pointer-events: none
}

.section-block.active {
  filter: blur(0px);
  opacity: 1;
  transform: scale(1);
  pointer-events: auto
}

.section-block+.section-block {
  margin-top: 160px
}

/* small overlay shadows to separate sections */
.section-block::before,
.section-block::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none
}

.section-block::before {
  top: -120px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent)
}

.section-block::after {
  bottom: -120px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent)
}

/* layout helpers */
.cols {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap
}

.col {
  flex: 1 1 320px;
  min-width: 280px
}

.center {
  text-align: center
}

/* glass panel - use sparingly */
.card-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.025));
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6)
}

/* stats */
.stats-row {
  display: flex;
  gap: 12px;
  margin-top: 18px
}

.stat {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  text-align: center
}

.stat .big {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fff
}

.stat small {
  display: block;
  color: var(--muted);
  margin-top: 6px
}
/* TECH GRID */
.grid-tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, 160px); /* ancho fijo */
  gap: 18px;
  margin-top: 22px;
  justify-content: center; /* centrado de la fila */
}

/* Targetes tecnològiques */
.tech-tile {
  background: var(--glass);
  padding: 22px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);

  height: 140px; /* Igual altura */
}

.tech-tile img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(1.05) saturate(1.1);
}

.tech-tile span {
  font-weight: 600;
  color: #e6eef0;
  font-size: 14px;
}
/* PROJECT GRID */
.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 28px
}

.card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(0, 0, 0, 0.02));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform .22s ease;
  will-change: transform
}

.card:hover {
  transform: translateY(-8px)
}

.media {
  height: 220px;
  background-position: center;
  background-size: cover;
  background-color: #0e1113
}

.card-body {
  padding: 18px
}

.card-body h3 {
  margin: 0;
  color: #fff
}

.card-body p {
  margin-top: 10px;
  color: var(--muted)
}

/* CONTACT */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.02)
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 6, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 1500
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible
}

.modal-inner {
  width: min(920px, 96%);
  background: var(--bg-800);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6)
}

.modal-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #111
}

.modal-content {
  padding: 18px
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 30px
}

/* cursor */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0);
  z-index: 99999;
  transition: width .15s, height .15s, background .15s
}

#cursor.hovered {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--cyan)
}

/* responsive */
@media (max-width:900px) {
  .hero-title {
    font-size: 36px
  }

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

  body {
    cursor: auto
  }

  .nav-inner {
    padding: 8px
  }

  .nav-links {
    display: none
  }
}