:root {
  --bg-dark: #0b0f16;
  --bg-dark-soft: #151922;
  --primary: #ff8a3c;
  --accent: #00c9ff;
  --text-main: #ffffff;
  --text-muted: #c0c4d0;
  --btn-secondary-bg: #232836;
  --border-soft: #272b37;
  --shadow-soft: 0 25px 50px rgba(0, 0, 0, 0.7);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --transition-fast: 0.25s ease;
}

html { scroll-behavior: smooth; }

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1c2433, #05060a);
  color: var(--text-main);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 11, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-weight: 600; letter-spacing: 0.02em; }

.logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.nav-links { display: flex; gap: 20px; font-size: 13px; font-weight: 500; }
.nav-links a { color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.nav-links a:hover { color: var(--text-main); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #ff8a3c, #ff4b3c);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 115, 60, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 15px 40px rgba(255, 115, 60, 0.7); }

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}
.btn-secondary:hover { background: #2b3140; }

.btn-cta { min-width: 260px; }

/* Hero */
.hero { padding: 70px 0 60px; }

.hero-content{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: start;
  grid-template-areas: "left right";
}

.hero-left { grid-area: left; }
.hero-right { grid-area: right; display: flex; justify-content: center; }

.hero-left h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-left h1 span { color: var(--accent); }

.hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.cta-note { font-size: 13px; color: rgba(192,196,208,0.9); margin-top: 10px; }

/* Network (mas grande, y estable) */
.network-card{
  position: relative;
  width: 520px;
  max-width: 100%;
  height: 520px;
  background: radial-gradient(circle at top, #151c28, #05070b);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.network-center{
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(0, 201, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(0, 201, 255, 0.20), transparent 70%);
}

.hero-logo{
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 201, 255, 0.28));
}

.network-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 201, 255, 0.85);
  animation: pulse 2.5s infinite ease-in-out;
}

.node-1 { top: 70px; left: 90px; animation-delay: 0s; }
.node-2 { top: 85px; right: 90px; animation-delay: 0.4s; }
.node-3 { bottom: 90px; left: 105px; animation-delay: 0.8s; }
.node-4 { bottom: 80px; right: 125px; animation-delay: 1.2s; }
.node-5 { top: 210px; right: 255px; animation-delay: 1.6s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 0.35; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Demo (home) */
.demo-form { margin-top: 10px; }

/* Features */
.features { padding: 10px 0 100px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.feature-item {
  background: var(--bg-dark-soft);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all var(--transition-fast);
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 201, 255, 0.65);
  box-shadow: 0 20px 40px rgba(0, 201, 255, 0.12);
}

.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-item p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* Footer */
.footer {
  background: var(--bg-dark-soft);
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--text-main); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Demo page */
.demo-page { padding: 60px 0 80px; }
.demo-wrap { display: flex; justify-content: center; }

.demo-card{
  width: 820px;
  max-width: 100%;
  background: rgba(21, 25, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.demo-title { font-size: 26px; margin-bottom: 8px; }
.demo-subtitle { color: rgba(192,196,208,0.95); margin-bottom: 18px; line-height: 1.5; }

.demo-alert{
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}
.demo-alert.success { border-color: rgba(74,222,128,0.35); color: #bbf7d0; }

.demo-actions { margin-top: 14px; }

.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: rgba(192,196,208,0.95); }

.field input, .field textarea{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,7,11,0.35);
  color: var(--text-main);
  outline: none;
}

.field input:focus, .field textarea:focus{
  border-color: rgba(0,201,255,0.55);
  box-shadow: 0 0 0 2px rgba(0,201,255,0.18);
}

.field-full { grid-column: 1 / -1; }

/* Responsive: panel arriba en móvil */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero { padding: 40px 0 55px; }

  .hero-content{
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    grid-template-areas:
      "right"
      "left";
  }

  .hero-left h1 { font-size: 34px; }

  .network-card{
    width: 100%;
    height: min(520px, 70vh);
  }

  .network-center{
    width: 300px;
    height: 300px;
  }

  .hero-logo{
    width: 210px;
    height: 210px;
  }

  .form-grid { grid-template-columns: 1fr; }
}

/* Centrar todo el bloque de texto del hero */
.hero-left{
  text-align: center;
}

/* Centrar el subtítulo y limitar ancho para que se vea bonito */
.hero-subtitle{
  margin-left: auto;
  margin-right: auto;
  max-width: 520px; /* ajusta si quieres más ancho */
}

/* Centrar el bloque del botón y nota */
.demo-form{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Centrar la nota debajo del botón */
.cta-note{
  text-align: center;
}


/* Info debajo del form en /demo */
.demo-info{
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.info-title{
  font-size: 18px;
  margin-bottom: 10px;
}

.info-text{
  color: rgba(192,196,208,0.95);
  line-height: 1.6;
  margin-bottom: 12px;
}

.info-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,7,11,0.25);
  color: rgba(255,255,255,0.9);
}

.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.fcard{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,7,11,0.22);
  padding: 14px;
}

.ficon{ font-size: 18px; margin-bottom: 10px; }
.ftitle{ font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.ftext{ font-size: 12.5px; color: rgba(192,196,208,0.92); line-height: 1.5; }

.info-accordion{ margin-top: 14px; }

.info-accordion details{
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,7,11,0.18);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.info-accordion summary{
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.details-body{
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(192,196,208,0.92);
  line-height: 1.55;
}

.doc-link{ margin-top: 10px; }

.link-muted{
  font-size: 12.5px;
  color: rgba(0,201,255,0.9);
  text-decoration: none;
}
.link-muted:hover{ text-decoration: underline; }

@media (max-width: 900px){
  .feature-grid{ grid-template-columns: 1fr; }
}

/* Acciones del formulario centradas */
.form-actions{
  display: flex;
  flex-direction: column;
  align-items: center; /* centra el botón */
  gap: 10px;
  margin-top: 10px;
}

/* Cabecera bonita de la página demo */
.demo-hero{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.demo-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,7,11,0.22);
  padding: 12px;
}

.stat-icon{ font-size: 18px; margin-bottom: 8px; }
.stat-value{ font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.stat-label{ font-size: 12px; color: rgba(192,196,208,0.92); line-height: 1.45; }

.demo-bullets{ margin-top: 14px; display: grid; gap: 8px; }
.bullet{ display: flex; gap: 10px; align-items: flex-start; color: rgba(192,196,208,0.95); line-height: 1.5; font-size: 13px; }
.bicon{ width: 18px; display: inline-flex; justify-content: center; }

/* Orb/ícono a la derecha */
.demo-orb{
  position: relative;
  width: 220px;
  height: 220px;
  margin-left: auto;
  margin-right: auto;
}

.orb-ring{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(0,201,255,0.55);
  box-shadow: 0 0 40px rgba(0,201,255,0.12);
}

.orb-glow{
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(0,201,255,0.18), rgba(0,0,0,0) 65%);
}

.orb-center{
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,7,11,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-logo{ width: 90px; height: 90px; object-fit: contain; display:block; }

.orb-dot{
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(0,201,255,0.95);
  box-shadow: 0 0 12px rgba(0,201,255,0.8);
  animation: orbPulse 2.6s infinite ease-in-out;
}
.d1{ top: 16px; left: 28px; }
.d2{ top: 42px; right: 18px; animation-delay: .4s; }
.d3{ bottom: 22px; left: 44px; animation-delay: .8s; }
.d4{ bottom: 34px; right: 52px; animation-delay: 1.2s; }

@keyframes orbPulse{
  0%,100%{ transform: scale(1); opacity: .9; }
  50%{ transform: scale(1.6); opacity: .35; }
}

/* Steps */
.steps{ margin-top: 18px; }
.steps-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.step{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,7,11,0.22);
  padding: 12px;
  display: flex;
  gap: 10px;
}

.step-num{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,201,255,0.18);
  border: 1px solid rgba(0,201,255,0.40);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
}

.step-title{ font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.step-text{ font-size: 12.5px; color: rgba(192,196,208,0.92); line-height: 1.5; }

/* Responsive */
@media (max-width: 900px){
  .demo-hero{ grid-template-columns: 1fr; text-align: center; }
  .demo-stats{ grid-template-columns: 1fr; }
  .steps-grid{ grid-template-columns: 1fr; }
}

.form-actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.demo-info{
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.icon-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.icard{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,7,11,0.22);
  padding: 14px;
  min-height: 130px;
}

.icard.accent{
  border-color: rgba(255,138,60,0.18);
  box-shadow: 0 18px 40px rgba(255,138,60,0.08);
}

.svg-ico{
  width: 34px;
  height: 34px;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 14px rgba(0,201,255,0.14));
}

.ititle{ font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.itext{ font-size: 12.5px; color: rgba(192,196,208,0.92); line-height: 1.5; }

.mini-panels{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.panel{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,7,11,0.18);
  padding: 14px;
}

.ptitle{ font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.ptext{ font-size: 12.5px; color: rgba(192,196,208,0.92); line-height: 1.55; }

@media (max-width: 900px){
  .icon-grid{ grid-template-columns: 1fr; }
  .mini-panels{ grid-template-columns: 1fr; }
}

.cards-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.wcard{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,7,11,0.22);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: default;
}

.wcard::before{
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 30% 20%, rgba(0,201,255,0.18), transparent 55%);
  opacity: 0;
  transition: opacity .22s ease;
}

.wcard:hover{
  transform: translateY(-6px);
  border-color: rgba(0,201,255,0.35);
  box-shadow: 0 22px 45px rgba(0, 201, 255, 0.10), 0 18px 55px rgba(0,0,0,0.55);
}

.wcard:hover::before{
  opacity: 1;
}

.wcard-accent:hover{
  border-color: rgba(255,138,60,0.40);
  box-shadow: 0 22px 45px rgba(255, 138, 60, 0.10), 0 18px 55px rgba(0,0,0,0.55);
}

.wico{
  width: 34px;
  height: 34px;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 14px rgba(0,201,255,0.14));
}

.wtitle{
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.wtext{
  font-size: 12.5px;
  color: rgba(192,196,208,0.92);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Da profundidad 3D a los cuadros */
.cards-grid{
  perspective: 900px;
}

/* Preparar la tarjeta para transform 3D */
.wcard{
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

/* Hover con tilt (3D) */
.wcard:hover{
  transform: translateY(-6px) rotateX(6deg) rotateY(-6deg);
  border-color: rgba(0,201,255,0.35);
  box-shadow: 0 22px 45px rgba(0, 201, 255, 0.10), 0 18px 55px rgba(0,0,0,0.55);
}

/* Hover para el cuadro acento (naranja) */
.wcard.wcard-accent:hover{
  transform: translateY(-6px) rotateX(6deg) rotateY(6deg);
  border-color: rgba(255,138,60,0.40);
  box-shadow: 0 22px 45px rgba(255, 138, 60, 0.10), 0 18px 55px rgba(0,0,0,0.55);
}

.cards-grid{ perspective: 900px; }

.wcard{
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .12s ease, box-shadow .22s ease, border-color .22s ease;
}

.wcard:hover{
  border-color: rgba(0,201,255,0.35);
  box-shadow: 0 22px 45px rgba(0, 201, 255, 0.10), 0 18px 55px rgba(0,0,0,0.55);
}

.wcard.wcard-accent:hover{
  border-color: rgba(255,138,60,0.40);
  box-shadow: 0 22px 45px rgba(255, 138, 60, 0.10), 0 18px 55px rgba(0,0,0,0.55);
}

/* Centra verticalmente el bloque de texto del hero */
.hero-left{
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centra en vertical */
  align-items: center;      /* centra en horizontal (dentro de la columna) */
  min-height: 520px;        /* iguala aprox la altura de la tarjeta derecha */
  text-align: center;
}

/* Para que el párrafo quede centrado y no demasiado ancho */
.hero-subtitle{
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}

/* Quita los puntos/nodos azules */
.network-node{
  display: none;
}

/* Íconos SVG en features */
.feature-ico{
  width: 42px;
  height: 42px;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 14px rgba(0,201,255,0.14));
}

/* Asegura que las tarjetas de features usen el look/hover 3D */
.features-grid{
  perspective: 900px; /* necesario para el tilt */
}

.feature-item.wcard{
  text-align: center;
  cursor: default;
}

/* si tu .wcard ya tiene estilos, esto solo refina */
.feature-item.wcard h3{
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-item.wcard p{
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Canvas de partículas como fondo global */
#bg-net{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none; /* no bloquea clicks */
  opacity: 0.55;        /* baja/sube la intensidad */
}

/* Asegura que tu contenido quede por encima */
.navbar, .hero, .features, .footer, .demo-page{
  position: relative;
  z-index: 1;
}

.page{ padding: 70px 0 90px; }

.page-head{
  text-align: center;
  margin-bottom: 18px;
}

.page-title{
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-subtitle{
  color: rgba(192,196,208,0.95);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-cta{ margin-top: 16px; }
.faq-block{ max-width: 880px; margin: 0 auto; }
.faq-item{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,7,11,0.18);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq-item summary{ cursor: pointer; font-weight: 700; }
.details-body{ color: rgba(192,196,208,0.92); line-height: 1.6; margin-top: 10px; }

.pricing-grid .wtitle{ font-size: 16px; }
.pricing-grid .wtext b{ color: rgba(255,255,255,0.95); }

/* NAV: animación sutil y estado activo */
.nav-links a{
  position: relative;
  display: inline-block;
  padding: 10px 10px;
  border-radius: 10px;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.nav-links a::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,201,255,0.95), rgba(255,138,60,0.70));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  opacity: .9;
}

.nav-links a:hover,
.nav-links a:focus{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.04);
}

.nav-links a:hover::after,
.nav-links a:focus::after{
  transform: scaleX(1);
}

.nav-links a.active{
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.05);
}

.nav-links a.active::after{
  transform: scaleX(1);
}

/* Entrada general (ya tenías reveal, esto lo mejora) */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}

.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para grids: cada card entra con delay */
.cards-grid .reveal:nth-child(1),
.features-grid .reveal:nth-child(1){ transition-delay: .02s; }
.cards-grid .reveal:nth-child(2),
.features-grid .reveal:nth-child(2){ transition-delay: .08s; }
.cards-grid .reveal:nth-child(3),
.features-grid .reveal:nth-child(3){ transition-delay: .14s; }
.cards-grid .reveal:nth-child(4),
.features-grid .reveal:nth-child(4){ transition-delay: .20s; }
.cards-grid .reveal:nth-child(5),
.features-grid .reveal:nth-child(5){ transition-delay: .26s; }
.cards-grid .reveal:nth-child(6),
.features-grid .reveal:nth-child(6){ transition-delay: .32s; }

/* Respeto a usuarios con menos animación */
@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; transform: none; opacity: 1; }
}

/* ===== Fondo canvas global ===== */
#bg-net{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.navbar, .hero, .features, .footer, .demo-page, .page{
  position: relative;
  z-index: 1;
}

/* ===== Animación de entrada (reveal) ===== */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}

.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

/* Stagger (cascada) en grids */
.cards-grid .reveal:nth-child(1),
.features-grid .reveal:nth-child(1){ transition-delay: .02s; }

.cards-grid .reveal:nth-child(2),
.features-grid .reveal:nth-child(2){ transition-delay: .10s; }

.cards-grid .reveal:nth-child(3),
.features-grid .reveal:nth-child(3){ transition-delay: .18s; }

.cards-grid .reveal:nth-child(4),
.features-grid .reveal:nth-child(4){ transition-delay: .26s; }

.cards-grid .reveal:nth-child(5),
.features-grid .reveal:nth-child(5){ transition-delay: .34s; }

.cards-grid .reveal:nth-child(6),
.features-grid .reveal:nth-child(6){ transition-delay: .42s; }

/* Respetar reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; transform: none; opacity: 1; }
}

/* ===== WCARD: soporte para tilt ===== */
.cards-grid{ perspective: 900px; }

.wcard{
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .12s ease, box-shadow .22s ease, border-color .22s ease;
}

.wcard:hover{
  border-color: rgba(0,201,255,0.35);
  box-shadow: 0 22px 45px rgba(0, 201, 255, 0.10), 0 18px 55px rgba(0,0,0,0.55);
}

.wcard.wcard-accent:hover{
  border-color: rgba(255,138,60,0.40);
  box-shadow: 0 22px 45px rgba(255, 138, 60, 0.10), 0 18px 55px rgba(0,0,0,0.55);
}

/* ========= ENTRADA PRO GLOBAL (por página) ========= */

/* Estado inicial (antes de que JS active is-ready) */
body:not(.is-ready) .page-enter{
  opacity: 0;
  transform: translateY(10px);
  filter: blur(10px);
}

/* Cuando está listo, animación suave */
body.is-ready .page-enter{
  animation: pageIn .75s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes pageIn{
  from{
    opacity: 0;
    transform: translateY(10px);
    filter: blur(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ========= ENTRADA PARA BLOQUES (WCARD) ========= */
.reveal{
  opacity: 0;
  transform: translateY(14px) scale(.985);
  filter: blur(8px);
  transition:
    opacity .60s cubic-bezier(.2,.9,.2,1),
    transform .60s cubic-bezier(.2,.9,.2,1),
    filter .60s cubic-bezier(.2,.9,.2,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform, filter;
}

/* Se activan cuando el body está listo */
body.is-ready .reveal{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce){
  .page-enter{ animation: none !important; }
  .reveal{
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Contacto - Canales */
.contact-list{
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.contact-row{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.contact-label{
  font-size: 13px;
  color: rgba(192,196,208,0.85);
}

.contact-link,
.contact-text{
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  word-break: break-word;
}

.contact-link{
  text-decoration: none;
  position: relative;
  transition: color .18s ease, transform .18s ease;
}

.contact-link:hover{
  color: rgba(0,201,255,0.95);
  transform: translateY(-1px);
}

/* Subrayado animado sutil */
.contact-link::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,201,255,0.75), rgba(255,138,60,0.55));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  opacity: .85;
}
.contact-link:hover::after{
  transform: scaleX(1);
}

.section{ padding: 40px 0 10px; }
.section-head{ text-align:center; margin: 14px 0 14px; }
.section-title{ font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.section-subtitle{ color: rgba(192,196,208,0.92); max-width: 820px; margin: 0 auto; line-height: 1.6; }

.trust-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.trust-item{
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}

@media (max-width: 900px){
  .trust-strip{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.codeblock{
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
}

/* ===== Grids responsivos (FIX del problema) ===== */
.features-grid,
.cards-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

/* ===== Sección general ===== */
.section{ padding: 40px 0 10px; }

.section-head{
  text-align: center;
  margin: 14px 0 14px;
}

.section-title{
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-subtitle{
  color: rgba(192,196,208,0.92);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Trust strip ===== */
.trust-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.trust-item{
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}

@media (max-width: 900px){
  .trust-strip{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* FIX: grids responsivos y sin estirado raro */
.features-grid,
.cards-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: start; /* evita que se estiren de alto */
}

/* Sección general */
.section{ padding: 40px 0 10px; }

.section-head{
  text-align: center;
  margin: 14px 0 14px;
}

.section-title{
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-subtitle{
  color: rgba(192,196,208,0.92);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Trust strip */
.trust-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.trust-item{
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}

@media (max-width: 900px){
  .trust-strip{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Footer: layout correcto */
.footer{
  padding: 26px 0;
}

.footer-content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap; /* si no cabe, baja a la siguiente línea */
}

/* Marca */
.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Links: que se acomoden en varias líneas sin romper el layout */
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  flex: 1 1 520px;          /* ocupa el centro y puede bajar */
  min-width: 280px;
}

.footer-links a{
  text-decoration: none;
  color: rgba(192,196,208,0.92);
  font-size: 13px;
  transition: color .18s ease, transform .18s ease;
}

.footer-links a:hover{
  color: rgba(0,201,255,0.95);
  transform: translateY(-1px);
}

/* Copyright: evita que se haga una columna ultra estrecha */
.footer-bottom{
  flex: 0 0 auto;
  min-width: 240px;
  text-align: right;
  color: rgba(192,196,208,0.85);
  font-size: 12px;
  line-height: 1.4;
}

/* En pantallas pequeñas: todo centrado y en columna */
@media (max-width: 900px){
  .footer-content{
    justify-content: center;
    text-align: center;
  }
  .footer-bottom{
    text-align: center;
  }
}
