/* Agencia Geek — hoja de estilos estática (sin frameworks, sin build) */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #16203a;
  --muted: #5c6784;
  --border: rgba(22, 32, 58, 0.12);
  --brand: #0e97b0;
  --brand-alt: #6d3fd4;
  --gradient-brand: linear-gradient(135deg, var(--brand), var(--brand-alt));
  --shadow: 0 20px 50px -30px rgba(22, 32, 58, 0.35);
  --shadow-glow: 0 22px 55px -26px rgba(14, 151, 176, 0.45);
  --radius: 16px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.8rem;
}
.center {
  text-align: center;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
}
/* ESPACIO PARA LOGO: reemplaza .brand-mark por <img src="assets/logo.svg" alt="Agencia Geek"> */
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
.main-nav {
  display: none;
  gap: 26px;
}
.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
}
.main-nav a:hover {
  color: var(--text);
}
.menu-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 20px 20px;
}
.mobile-nav[data-open="true"] {
  display: flex;
}
.header-cta {
  display: none;
}
@media (min-width: 860px) {
  .main-nav,
  .header-cta {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--surface-2);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}
.btn-block {
  width: 100%;
}

/* Secciones */
main {
  padding-top: 66px;
}
section {
  padding: 74px 0;
}
.section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-head {
  max-width: 640px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-top: 12px;
}
.section-head p {
  color: var(--muted);
  margin-top: 14px;
}
.grid {
  display: grid;
  gap: 22px;
  margin-top: 44px;
}
@media (min-width: 760px) {
  .cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.15rem;
  margin-top: 18px;
}
.card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 8px;
}
.card ul {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}
.card ul li::before {
  content: "▹";
  color: var(--brand);
  margin-right: 8px;
}
.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.15rem;
}
.tilt {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
  transform-style: preserve-3d;
}
.tilt:hover {
  transform: translateY(-6px) rotateX(5deg) rotateY(-5deg);
  box-shadow: var(--shadow-glow);
}
.pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 80px;
}
.grid-floor {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(14, 151, 176, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 151, 176, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: drift 7s linear infinite;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
@keyframes drift {
  to {
    background-position: 56px 56px;
  }
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 46px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  margin-top: 18px;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 20px;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
  max-width: 420px;
}
.stats dt {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--brand);
}
.stats dd {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Escena 3D ligera (solo CSS) */
.scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1;
  perspective: 1100px;
  pointer-events: none;
}
.scene .halo {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.22;
  filter: blur(60px);
}
.cube {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cube-inner {
  position: relative;
  width: 168px;
  height: 168px;
  transform-style: preserve-3d;
  animation: spin 26s linear infinite;
}
.cube-inner span {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(14, 151, 176, 0.12));
  box-shadow: var(--shadow);
}
.cube-inner span:nth-child(1) {
  transform: rotateY(0deg) translateZ(84px);
}
.cube-inner span:nth-child(2) {
  transform: rotateY(90deg) translateZ(84px);
}
.cube-inner span:nth-child(3) {
  transform: rotateY(180deg) translateZ(84px);
}
.cube-inner span:nth-child(4) {
  transform: rotateY(270deg) translateZ(84px);
}
.cube-inner span:nth-child(5) {
  transform: rotateX(90deg) translateZ(84px);
}
.cube-inner span:nth-child(6) {
  transform: rotateX(-90deg) translateZ(84px);
}
@keyframes spin {
  from {
    transform: rotateX(-18deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 600;
  animation: float 7s ease-in-out infinite;
}
.chip i {
  color: var(--brand);
  font-style: normal;
}
.chip.a {
  left: 0;
  top: 8%;
}
.chip.b {
  right: 0;
  top: 30%;
  animation-delay: 1.2s;
}
.chip.c {
  left: 2%;
  bottom: 20%;
  animation-delay: 2.1s;
}
.chip.d {
  right: 6%;
  bottom: 4%;
  animation-delay: 0.6s;
}
@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

/* Proyectos */
.thumb {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(rgba(14, 151, 176, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 151, 176, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
}
.project {
  padding: 0;
  overflow: hidden;
}
.project .body {
  padding: 22px;
}
.metric {
  margin-top: 16px;
  font-weight: 700;
  color: var(--brand);
  font-size: 0.92rem;
}

/* Testimonios */
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.stars {
  color: #e8a838;
  letter-spacing: 2px;
}
.quote blockquote {
  margin: 14px 0 0;
  flex: 1;
  font-size: 0.95rem;
}
.quote figcaption {
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
}
.quote figcaption span {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

/* FAQ */
.faq {
  max-width: 760px;
  margin-top: 34px;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 700;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.94rem;
}

/* Formulario */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid .full {
    grid-column: 1 / -1;
  }
}
.field {
  display: grid;
  gap: 6px;
}
label {
  font-size: 0.84rem;
  font-weight: 600;
}
input,
select,
textarea {
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
  width: 100%;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 151, 176, 0.18);
}
.form-note {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--muted);
}
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.88rem;
  display: none;
}
.form-status[data-state="ok"] {
  display: block;
  background: rgba(14, 151, 176, 0.12);
  color: #0b6f83;
}
.form-status[data-state="error"] {
  display: block;
  background: rgba(200, 40, 40, 0.1);
  color: #a52020;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.footer-grid {
  display: grid;
  gap: 34px;
  padding: 52px 0;
}
@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.site-footer h3 {
  font-size: 0.9rem;
}
.site-footer ul {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.copyright {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

/* CTA móvil persistente */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  padding: 12px;
  background: rgba(246, 248, 252, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.sticky-spacer {
  height: 78px;
}
@media (min-width: 860px) {
  .sticky-cta,
  .sticky-spacer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
