/* Expansión Digital style */
:root {
  color-scheme: dark;
  --bg: #0f1420;
  --surface: #151d2e;
  --surface-alt: #1e283d;
  --text: #f5f7fb;
  --muted: #a2afc9;
  --accent: #6cffb2;
  --accent-soft: rgba(108, 255, 178, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(108, 255, 178, 0.1), transparent 28%),
    linear-gradient(180deg, #0f1420 0%, #12182a 62%, #111524 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font: inherit;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.header {
  padding: 1.4rem 0 0;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand img {
  display: block;
  height: 30px;
  width: auto;
}
.brand-mark {
  height: 30px;
  width: 30px;
}
.brand-word {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-word .accent {
  color: var(--accent);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}
.nav-links a {
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--text);
}

/* Salto al contenido: visible solo al enfocar con teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #0f1420;
  font-weight: 600;
}

/* Hamburguesa: oculta por defecto y en desktop. Solo aparece con JS activo
   (.js-nav) en viewport chico, para que sin JS el menu siga navegable. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars {
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Estado abierto: la hamburguesa se convierte en X */
.site-nav.is-open .nav-toggle-bars {
  background: transparent;
}
.site-nav.is-open .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}
.site-nav.is-open .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 859px) {
  .js-nav .nav-toggle {
    display: inline-flex;
  }
  .js-nav .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .js-nav .site-nav.is-open .nav-links {
    display: flex;
  }
  .js-nav .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--border);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    transition: none;
  }
}
.hero {
  padding: 2rem 0 3rem;
  display: grid;
  gap: 2rem;
}
.hero-title {
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  max-width: 11ch;
  margin: 0;
  line-height: 0.96;
}
.hero-subtitle {
  max-width: 720px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.cta-primary, .cta-secondary {
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
}
.cta-primary {
  background: linear-gradient(135deg, var(--accent), #00c7ad);
  color: #0f1420;
}
.cta-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
}
.section {
  padding: 3rem 0;
}
.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2.5vw, 2.75rem);
}
.section-copy {
  max-width: 760px;
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 1.5rem;
}
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 1.75rem;
  min-height: 220px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.75rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.badge {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(108, 255, 178, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.highlight {
  color: var(--accent);
}
.footer {
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-cols {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .footer-cols {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}
.footer-col-brand .brand-mark {
  height: 24px;
  width: 24px;
}
.footer-col-brand .brand-word {
  font-size: 1rem;
}
.footer-tagline {
  font-size: 0.9rem;
  margin: 0.9rem 0 0;
  max-width: 34ch;
}
.footer-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  margin: 0 0 0.9rem;
}
.footer-heading-spaced {
  margin-top: 1.8rem;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.footer-list li {
  margin: 0;
}
.footer-list a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-list a:hover {
  color: var(--accent);
}
/* En desktop el listado no necesita tap targets de 44px */
@media (min-width: 860px) {
  .footer-list a {
    min-height: 0;
    padding: 0.28rem 0;
  }
  .footer-list li {
    line-height: 1.5;
  }
}
.footer-list-plain li {
  padding: 0.28rem 0;
}
.footer-group {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.meta-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.meta-list li::before {
  content: "•";
  display: inline-block;
  width: 1rem;
  color: var(--accent);
}
.statement-panel {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(108,255,178,0.05);
}
.form-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.form-field {
  display: grid;
  gap: 0.65rem;
}
.form-field label {
  color: var(--text);
  font-size: 0.95rem;
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 1rem 1.1rem;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
textarea {
  min-height: 180px;
  resize: vertical;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
input[type="submit"] {
  border-radius: 999px;
  padding: 1rem 1.6rem;
  border: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #ff6d8f);
  color: #0f1420;
  cursor: pointer;
}
.form-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}
.screenshot-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.screenshot-card {
  position: relative;
  padding: 1.4rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(108,255,178,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(108,255,178,0.12);
  overflow: hidden;
  min-height: 320px;
}
.screenshot-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 60%);
}
.screenshot-card h3 {
  margin-top: 0.6rem;
}
.screenshot-preview {
  position: relative;
  margin-top: 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  min-height: 170px;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.screenshot-topbar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  margin: 1rem;
}
.screenshot-content {
  display: grid;
  gap: 0.8rem;
  padding: 0 1rem 1rem;
}
.screenshot-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}
.screenshot-line.short {
  width: 60%;
}
.screenshot-line.medium {
  width: 80%;
}
.screenshot-line.long {
  width: 95%;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .hero-copy {
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  .hero {
    padding-top: 1.5rem;
  }
}

.footer-legal {
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-legal-mark {
  height: 16px;
  width: auto;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.4rem 0 0;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.faq {
  display: grid;
  gap: 0.9rem;
}
.faq details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}
.faq details[open] summary::after {
  content: "−";
}
.faq p {
  color: var(--muted);
  margin: 0.85rem 0 0;
}
.cluster-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cluster-links a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.cluster-links a:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: var(--accent);
}
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  background: #25d366;
  color: #05270f;
}
.whatsapp-cta:hover {
  text-decoration: none;
  filter: brightness(1.06);
}
.form-success {
  background: rgba(108, 255, 178, 0.12);
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.form-success[hidden] {
  display: none;
}
select {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 1rem 1.1rem;
  font: inherit;
}
.metric-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.pill-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---- Iconografía SVG (sprite inline) ---- */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 0.9rem;
  flex: none;
}
.icon-lg {
  width: 34px;
  height: 34px;
}

/* ---- Bloques de servicio agrupados ---- */
.group-title {
  margin: 2.75rem 0 0.75rem;
}
.group-title:first-of-type {
  margin-top: 2rem;
}
.cards-feature {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.card-lg {
  background: linear-gradient(180deg, rgba(108, 255, 178, 0.09), rgba(255, 255, 255, 0.03));
  border-color: rgba(108, 255, 178, 0.22);
}

/* En móvil, el título de card es el link principal: tap target de 44px */
@media (max-width: 859px) {
  .card h3 a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ---- Gráfica del hero: la marca conectada a canales y sistemas ----
   Los nodos son HTML posicionado en %, no <text> de SVG: el texto mantiene
   su tamaño real a cualquier ancho. El SVG solo dibuja los conectores. */
.hero-figure {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-graph {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 640 / 540;
}
.hg-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hg-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.2;
  color: var(--text);
  /* Fondo sólido: los conectores pasan por detrás y no deben transparentarse */
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.hg-core {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: 140px;
  padding: 1.1rem 0.75rem;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #00c7ad);
  color: #0f1420;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hg-core-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
}
/* Salto de línea solo en el layout radial */
.hg-break {
  display: block;
}
.hg-mark {
  display: grid;
  grid-template-columns: repeat(2, 11px);
  gap: 4px;
}
.hg-mark i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: #0f1420;
}
.hg-mark i:nth-child(2),
.hg-mark i:nth-child(3) {
  opacity: 0.5;
}
.hg-result {
  color: var(--accent);
  font-weight: 600;
  background: #16241f;
  border-color: rgba(108, 255, 178, 0.45);
}
.hg-result svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.hg-tag {
  color: var(--muted);
  font-size: 0.8rem;
}
/* Flujo sutil hacia el centro: sugiere que los canales alimentan la operación */
@media (prefers-reduced-motion: no-preference) {
  .hg-links path {
    animation: hg-flow 2.4s linear infinite;
  }
}
@keyframes hg-flow {
  to {
    stroke-dashoffset: -22;
  }
}

/* En pantallas chicas el radial no entra legible: los nodos pasan a grilla */
@media (max-width: 899px) {
  .hero-graph {
    aspect-ratio: auto;
    max-width: 460px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    align-content: start;
  }
  .hg-links {
    display: none;
  }
  .hg-node,
  .hg-core {
    position: static;
    transform: none;
    white-space: normal;
  }
  .hg-core {
    grid-column: 1 / -1;
    width: auto;
    padding: 0.9rem 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.2rem;
  }
  .hg-break {
    display: none;
  }
  .hg-result {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .hg-tag {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 0.1rem;
    border: none;
    background: none;
    box-shadow: none;
  }
}

/* ---- Gráficas de apoyo (SVG inline) ---- */
.figure {
  margin: 2rem 0 0;
}
.figure-narrow {
  max-width: 440px;
}
.figure-svg {
  display: block;
  width: 100%;
  height: auto;
}
.figure-caption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ---- Screenshots de proyectos con marco de browser ---- */
.cards-project {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.card-shot {
  display: flex;
  flex-direction: column;
}
.shot {
  position: relative;
  margin: 0 0 1.25rem;
}
.shot-duo {
  margin-bottom: 2.25rem;
}
.shot-browser {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}
.shot-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--border);
}
.shot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.shot-browser img {
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 600;
  object-fit: cover;
  object-position: top center;
}
/* Captura móvil superpuesta, dentro de los límites de la card */
.shot-phone {
  position: absolute;
  right: 12px;
  bottom: -18px;
  width: 62px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}
.shot-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 240 / 480;
  object-fit: cover;
  object-position: top center;
}
.pill-list li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--muted);
}
