/* ==========================================================================
   Petech GSM — Landing de lanzamiento
   Estilos base, tema oscuro tech/SaaS
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  /* Superficies */
  --bg:            #05070d;
  --bg-elev:       #0a0f1a;
  --panel:         #0e1524;
  --border:        rgba(120, 170, 255, 0.14);
  --border-soft:   rgba(120, 170, 255, 0.08);

  /* Texto */
  --text:          #e8eefc;
  --text-dim:      #93a3c4;
  --text-faint:    #5c6b8a;

  /* Acento */
  --accent:        #2e6bff;
  --accent-hi:     #4d8bff;
  --accent-soft:   rgba(46, 107, 255, 0.16);
  --neon:          #22e6c8;

  /* Tipografía */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Layout */
  --wrap:          1120px;
  --radius:        14px;
  --radius-sm:     10px;

  /* Sombras */
  --shadow-glow:   0 0 0 1px rgba(46, 107, 255, 0.25),
                   0 18px 50px -12px rgba(46, 107, 255, 0.45);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;

  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- Utilidades ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.hide-sm {
  display: none;
}

/* ==========================================================================
   Fondo decorativo
   ========================================================================== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(120, 170, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;

  /* Se desvanece hacia abajo para no competir con el texto */
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.5;
}

.bg-glow--1 {
  width: 620px;
  height: 620px;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(46, 107, 255, 0.55), transparent 68%);
}

.bg-glow--2 {
  width: 480px;
  height: 480px;
  bottom: -240px;
  right: -140px;
  background: radial-gradient(circle, rgba(34, 230, 200, 0.28), transparent 70%);
  opacity: 0.38;
}

/* ==========================================================================
   Barra superior
   ========================================================================== */
.topbar {
  position: relative;
  z-index: 2;
  padding-block: 22px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--accent-hi);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.brand__mark svg {
  width: 18px;
  height: 18px;
}

.brand__accent {
  color: var(--accent-hi);
}

/* Insignia de estado */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 13px;
  border-radius: 999px;

  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);

  background: rgba(14, 21, 36, 0.7);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(34, 230, 200, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 230, 200, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 230, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 230, 200, 0); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 56px 72px;
}

.hero__inner {
  text-align: center;
  max-width: 860px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 22px;

  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}

.hero__title {
  font-size: clamp(2rem, 6.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(100deg, var(--accent-hi) 10%, var(--neon) 90%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.hero__lead {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* ---------- Acciones ---------- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-sm);

  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;

  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease,
              background-color 0.22s ease, border-color 0.22s ease;
}

.btn__icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(77, 139, 255, 0.4),
              0 24px 60px -14px rgba(46, 107, 255, 0.62);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  color: var(--text-dim);
  background: rgba(14, 21, 36, 0.6);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  color: var(--text);
  background: rgba(20, 30, 52, 0.8);
  border-color: rgba(120, 170, 255, 0.3);
}

/* Foco accesible */
.btn:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* ---------- Franja de estado ---------- */
.status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;

  margin-top: 60px;
  border-radius: var(--radius);
  overflow: hidden;

  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}

.status__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  background: rgba(10, 15, 26, 0.72);
  backdrop-filter: blur(10px);
}

.status__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.status__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.status__value--hi {
  color: var(--neon);
}

/* ==========================================================================
   Pie de página
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  padding-block: 26px;
  border-top: 1px solid var(--border-soft);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer__copy,
.footer__meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

/* Tabletas */
@media (min-width: 640px) {
  .hide-sm {
    display: inline;
  }

  .hero {
    padding-block: 72px 96px;
  }
}

/* Móviles */
@media (max-width: 639px) {
  .wrap {
    padding-inline: 20px;
  }

  .topbar {
    padding-block: 18px;
  }

  .hero {
    padding-block: 40px 56px;
  }

  .hero__lead {
    margin-top: 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 30px;
  }

  .btn {
    width: 100%;
    min-height: 54px; /* táctil cómodo */
  }

  .status {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .status__item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Pantallas muy estrechas */
@media (max-width: 360px) {
  .brand__text {
    font-size: 0.9375rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

/* ==========================================================================
   Accesibilidad
   ========================================================================== */

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Impresión
   ========================================================================== */
@media print {
  .bg-grid,
  .bg-glow,
  .badge__dot {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
