:root {
  --bg: #070a12;
  --bg-elev: #0e1322;
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --accent: #3ee0b3;
  --accent-2: #6b8cff;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(14, 19, 34, 0.65);
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(62, 224, 179, 0.18), transparent 55%),
    radial-gradient(700px 400px at 95% 10%, rgba(107, 140, 255, 0.22), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(62, 224, 179, 0.08), transparent 55%),
    var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo__text {
  line-height: 1.2;
}

.logo__img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.logo--with-img .logo__text {
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #2cc9e0);
  color: #04120e !important;
  font-weight: 600;
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(14, 19, 34, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }
}

.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  overflow: hidden;
}

.hero-inner {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #33c6ff);
  color: #04120e;
  box-shadow: 0 12px 40px rgba(62, 224, 179, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-block {
  width: 100%;
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.orb-a {
  width: 340px;
  height: 340px;
  right: 8%;
  top: 15%;
  background: var(--accent);
}

.orb-b {
  width: 280px;
  height: 280px;
  right: 22%;
  bottom: 10%;
  background: var(--accent-2);
}

.grid-float {
  position: absolute;
  inset: 10% 5% auto auto;
  width: min(420px, 45vw);
  aspect-ratio: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 70%);
  opacity: 0.35;
}

.hero-logo-ring {
  position: absolute;
  z-index: 1;
  right: clamp(4%, 10vw, 12%);
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 280px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(62, 224, 179, 0.14), transparent 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-logo {
  width: 85%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.55));
  animation: hero-logo-float 8s ease-in-out infinite;
}

@keyframes hero-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
  }
}

@media (max-width: 820px) {
  .hero-logo-ring {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 6%;
    transform: translateX(-50%);
    width: min(58vw, 220px);
    opacity: 0.95;
  }

  .hero {
    padding-bottom: clamp(5rem, 14vw, 7rem);
  }
}

.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 19, 34, 0.35), transparent);
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 780px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.75rem;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 3rem;
}

.card-icon img {
  border-radius: 12px;
  object-fit: contain;
  opacity: 0.95;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 880px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-item {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.portfolio-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background: linear-gradient(145deg, rgba(14, 19, 34, 0.9), rgba(7, 10, 18, 0.95));
}

.portfolio-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 18, 0) 35%,
    rgba(7, 10, 18, 0.55) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-thumb:hover img {
  transform: scale(1.06);
}

.portfolio-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.portfolio-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.portfolio-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.link-arrow::after {
  content: " →";
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 340px;
  }
}

.pitch {
  font-size: 1.05rem;
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.stat-stack {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.section-contact .contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 880px) {
  .section-contact .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-card,
.contact-form {
  padding: 1.75rem;
}

.contact-dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1rem;
}

.contact-dl dd {
  margin: 0.2rem 0 0;
}

.contact-dl div:first-child dt {
  margin-top: 0;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(62, 224, 179, 0.35);
  border-color: rgba(62, 224, 179, 0.45);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.center {
  text-align: center;
  grid-column: 1 / -1;
}

.alert {
  max-width: 720px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
}

.alert.ok {
  background: rgba(62, 224, 179, 0.12);
  color: var(--accent);
}

.alert.err {
  background: rgba(255, 99, 99, 0.12);
  color: #ffb4b4;
}

/* Animaciones entrada */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
