:root {
  --bg: #0b1117;
  --surface: #0f1722;
  --text: #e6eef8;
  --muted: #b3c0d1;
  --brand-text: #a7ecff;
  --brand-surface: rgba(0, 212, 255, .12);
  --line: #1d2a38;
  --brand: #00d4ff;
  /* cyan */
  --brand-600: #14b8ff;
  /* celeste vivo */
  --brand-700: #0ea5e9;
  --brand-800: #0b8bd1;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Tema claro */
.theme-light {
  --bg: #f7fbff;
  --surface: #ffffff;
  --text: #0f1722;
  --muted: #334155;
  --brand-text: #0369a1;
  --brand-surface: rgba(0, 212, 255, 0.08);
  --line: #dbe6f2;
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(50% 70% at 85% -10%, rgba(0, 212, 255, .12), transparent 60%),
    radial-gradient(35% 45% at -5% 10%, rgba(20, 184, 255, .10), transparent 60%),
    radial-gradient(30% 40% at 50% 130%, rgba(14, 165, 233, .10), transparent 60%),
    var(--bg);
  line-height: 1.6;
  /* Safe areas para notches/dynamic island */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg), transparent 10%), color-mix(in oklab, var(--bg), transparent 30%));
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800
}

.brand .logo {
  color: var(--brand);
  font-weight: 900
}

.brand-name {
  letter-spacing: .5px
}

.menu {
  margin-left: auto;
  display: flex;
  gap: 24px
}

.menu a {
  color: var(--muted)
}

.menu a {
  position: relative
}

.menu a:hover {
  color: var(--text)
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-600), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease
}

.menu a:hover::after {
  transform: scaleX(1)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  transition: filter .2s, box-shadow .2s, transform .05s
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #041018;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(20, 184, 255, .22)
}

.btn.primary:hover {
  filter: brightness(1.07);
  box-shadow: 0 8px 26px rgba(20, 184, 255, .28)
}

.btn:active {
  transform: translateY(1px)
}

.btn.ghost {
  background: transparent
}

.btn.ghost:hover {
  border-color: rgba(20, 184, 255, .35)
}

.btn.small {
  padding: 6px 14px;
  font-size: 12px;
}

.btn.ghost {
  background: transparent
}

.menu-toggle {
  display: none;
  margin-left: 6px;
  font-size: 20px;
  background: transparent;
  border: 0;
  color: var(--text)
}

.drawer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px 20px;
  border-bottom: 1px solid var(--line)
}

/* Respetar el atributo [hidden]: el CSS de autor sobrescribe al del navegador,
   por eso lo forzamos explícitamente */
.drawer[hidden] {
  display: none !important
}

.drawer a {
  padding: 8px 0
}

.drawer .btn {
  width: 100%
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden
}

/* blobs decorativos para diferenciar el look */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  filter: blur(40px);
  opacity: .65;
  pointer-events: none
}

.hero::before {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, .35), rgba(14, 165, 233, .05) 60%, transparent 70%);
  top: -120px;
  left: -120px
}

.hero::after {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 60%, rgba(20, 184, 255, .3), rgba(0, 212, 255, .06) 60%, transparent 70%);
  right: -180px;
  bottom: -120px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-surface);
  color: var(--brand-text);
  border: 1px solid rgba(20, 184, 255, .25);
  font-weight: 600
}

.hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.1;
  margin: 14px 0 12px
}

.accent {
  background: linear-gradient(90deg, var(--brand), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.lead {
  color: var(--muted);
  font-size: 18px
}

.actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 8px
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0
}

.features li {
  list-style: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface), transparent 8%);
  border: 1px solid color-mix(in oklab, var(--text), transparent 88%);
  color: var(--muted);
  font-size: 14px
}

.stats {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface), transparent 8%);
  border: 1px solid color-mix(in oklab, var(--text), transparent 88%)
}

.stat strong {
  font-size: 18px;
  color: var(--brand-text)
}

.device-mockup {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45)
}

.device-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 255, .6), rgba(14, 165, 233, .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude
}

.device-mockup img {
  transform: rotate(-2deg) scale(1.02);
}

/* Sections */
.section {
  padding: 64px 0
}

.section.alt {
  background: linear-gradient(180deg, rgba(11, 17, 23, .2), rgba(11, 17, 23, .35))
}

.theme-light .section.alt {
  background: linear-gradient(180deg, #ffffff, #f7fbff)
}

.section h2 {
  font-size: 36px;
  margin: 0 0 10px
}

.section h2,
h1,
h3,
h4 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .2px
}

.section-lead {
  color: var(--muted);
  margin: 0 0 24px
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

.cards .card {
  position: relative;
  background: color-mix(in oklab, var(--surface), transparent 92%);
  border: 1px solid color-mix(in oklab, var(--text), transparent 94%);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(8px)
}

.cards .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 212, 255, .12), transparent);
  opacity: .4
}

.card .icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-surface);
  color: var(--brand-text);
  border: 1px solid rgba(20, 184, 255, .2);
  margin-bottom: 8px
}

.card h3 {
  margin: 6px 0
}

.card p {
  color: var(--muted)
}

.card.interactive:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.tech-card {
  background: color-mix(in oklab, var(--surface), transparent 92%);
  border: 1px solid color-mix(in oklab, var(--text), transparent 94%);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(8px)
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-surface);
  color: var(--brand-text);
  border: 1px solid rgba(20, 184, 255, .25);
  font-size: 13px
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px
}

.badges {
  display: flex;
  gap: 12px;
  margin-top: 16px
}

.badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface), transparent 4%), color-mix(in oklab, var(--surface), transparent 10%));
  border: 1px solid var(--line)
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid rgba(20, 184, 255, .25);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.timeline .dot {
  width: 10px;
  height: 10px;
  background: var(--brand-600);
  border-radius: 50%;
  display: inline-block;
  margin-left: -22px;
  border: 2px solid var(--surface)
}

.timeline li {
  color: var(--muted)
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px
}

.form {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface), transparent 4%), color-mix(in oklab, var(--surface), transparent 10%));
  padding: 18px
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #1b2a3a;
  background: #0b1320;
  color: var(--text)
}

.theme-light input,
.theme-light textarea {
  border-color: #dbe6f2;
  background: #ffffff
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--muted)
}

.info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface), transparent 4%), color-mix(in oklab, var(--surface), transparent 10%))
}

.fine {
  color: #8fa5bb;
  font-size: 12px
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 17, 23, .35), rgba(11, 17, 23, .6))
}

.theme-light .site-footer {
  background: linear-gradient(180deg, #ffffff, #f7fbff)
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .6fr .6fr;
  gap: 24px;
  padding: 28px 0
}

.footer-grid p {
  color: var(--muted)
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 8px
}

.legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  color: var(--muted)
}

/* Botón flotante WhatsApp */
#float-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #001;
  box-shadow: 0 12px 30px rgba(18, 140, 126, .35), inset 0 0 0 1px rgba(255, 255, 255, .2);
  z-index: 60
}

#float-wa svg {
  width: 28px;
  height: 28px;
  fill: #012d1f
}

#float-wa:hover {
  filter: brightness(1.05)
}

/* Responsive */
@media (max-width: 960px) {
  .menu {
    display: none
  }

  .menu-toggle {
    display: inline-block
  }

  .hero-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr
  }

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

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

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

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  .grid-3,
  .tech-grid {
    grid-template-columns: 1fr
  }

  .cards .card,
  .tech-card,
  .form {
    padding: 14px
  }

  .btn {
    padding: 12px 16px
  }

  .actions {
    flex-wrap: wrap
  }

  .hero h1 {
    font-size: 32px
  }

  .pill {
    font-size: 12px
  }

  input,
  textarea {
    font-size: 16px
  }

  /* evita zoom en iOS */
}

/* Ajustes extra pequeños (iphone SE/mini) */
@media (max-width: 360px) {
  .brand-name {
    display: none
  }

  /* ahorrar espacio */
  .stats {
    gap: 8px
  }

  .stat {
    padding: 6px 10px
  }
}