/* Emerbot marketing — legible, alto contraste, móvil primero */
:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e8ecf1;
  --muted: #9aa5b5;
  --accent: #3d9cf5;
  --accent-dim: #2563a8;
  --ok: #34c759;
  --danger: #ff5c5c;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --narrow: 560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 899px) {
  body:has(.sticky-cta) {
    padding-bottom: 5.25rem;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, var(--narrow));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

main section[id],
#cta-comprar {
  scroll-margin-top: 5.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.nav-inpage {
  display: none;
  align-items: center;
  gap: 0.35rem 0.65rem;
  flex-wrap: wrap;
  margin-right: auto;
  padding-right: 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .nav-inpage {
    display: flex;
  }
}

.nav-inpage-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav-inpage-link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dim);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--ok);
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

main {
  flex: 1;
}

.hero {
  padding: 2.25rem 0 2.75rem;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(61, 156, 245, 0.18), transparent);
}

.hero-sales .lead {
  margin-bottom: 0.85rem;
}

.hero-proof {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 42ch;
}

.hero-price {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-price strong {
  color: var(--text);
}

.hero-price-currency {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.logo-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-proof::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--ok, #3dd68c);
  vertical-align: 0.1em;
}

.section-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section.section-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 2rem;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

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

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
  max-width: 46ch;
}

.hero-scenarios-intro {
  margin: 0 0 0.6rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-scenarios {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: min(52ch, 100%);
}

.hero-scenario {
  margin: 0;
  padding: 0.75rem 0.85rem 0.8rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent);
}

.hero-scenario-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.hero-scenario-text {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-scenario-text strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: start;
}

.hero-figure {
  margin: 0;
  width: 100%;
  max-width: 420px;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.onpage-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-top: 1.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.onpage-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.onpage-nav a:hover {
  color: var(--accent);
}

.onpage-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-gallery h2 {
  margin-bottom: 0.5rem;
}

.gallery-intro {
  margin-bottom: 1.25rem;
}

.product-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .product-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-gallery-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 52rem;
    margin-inline: auto;
  }
}

.section-cta {
  margin-top: 1.75rem;
  text-align: center;
}

.site-footer-compact {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 0;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-bar .footer-brand {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-bar .footer-brand strong {
  color: var(--text);
}

.footer-links-inline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links-inline a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links-inline a:hover {
  text-decoration: underline;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-cta {
  margin: 1.25rem 0 0;
}

.gallery-cta a {
  color: var(--accent);
  text-decoration: none;
}

.gallery-cta a:hover {
  text-decoration: underline;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.section-lead {
  margin: -0.5rem 0 1.4rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}

.grid-3 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (hover: hover) {
  .card-lift {
    transition: border-color 0.2s ease, box-shadow 0.22s ease, transform 0.22s ease;
  }

  .card-lift:hover {
    border-color: rgba(61, 156, 245, 0.28);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-lift {
    transition: none;
  }

  .card-lift:hover {
    transform: none;
  }
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 42rem;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq {
  max-width: 40rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--surface);
}

.faq-item summary {
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pedido-price {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.pedido-price .muted {
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 0.35rem;
}

.pedido-back {
  margin-top: 1.5rem;
  text-align: center;
}

.pedido-back a {
  color: var(--muted);
  text-decoration: none;
}

.pedido-back a:hover {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 2rem;
}

.contact-form .field {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 500px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.35);
  color: #ffb4b4;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner p {
  margin: 0.35rem 0;
}

.thanks {
  padding: 4rem 0;
}

.thanks h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Marketing fuerte: citas, comparación, CTA */
.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.hero .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pullquote-section {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, rgba(61, 156, 245, 0.12) 0%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pullquote {
  margin: 0;
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.pullquote > p:first-child {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.pullquote-sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 400;
}

.grid-tight .card {
  margin-bottom: 0;
}

.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.compare-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.compare-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.compare-list li {
  margin-bottom: 0.5rem;
}

.compare-bad {
  border-color: rgba(255, 92, 92, 0.2);
}

.compare-good {
  border-color: rgba(52, 199, 89, 0.25);
}

.cta-banner {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(61, 156, 245, 0.2) 0%, rgba(26, 35, 50, 0.95) 50%, rgba(15, 20, 25, 1) 100%);
  border-top: 1px solid rgba(61, 156, 245, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.cta-kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.cta-title {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  line-height: 1.3;
}

.cta-text {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Navegación: dos CTAs con peso similar */
.btn-nav-equal {
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-nav-equal:hover {
  background: rgba(61, 156, 245, 0.12);
  color: #7eb8f7;
}

.btn-nav-equal-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-nav-equal-primary:hover {
  background: var(--accent-dim);
  color: #fff;
}

/* CTAs header: superusuario + WhatsApp */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-nav-equal-registry {
  border-color: rgba(255, 200, 120, 0.45);
  color: #f0c27a;
  background: rgba(255, 200, 120, 0.08);
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
}

.btn-nav-equal-registry:hover {
  background: rgba(255, 200, 120, 0.16);
  color: #ffd49a;
  border-color: rgba(255, 200, 120, 0.65);
}

/* Mensajes Django (formularios staff) */
.site-messages {
  padding: 0.75rem 0 0;
}

.site-message {
  margin: 0 0 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.site-message--success {
  background: rgba(72, 180, 120, 0.18);
  border: 1px solid rgba(72, 180, 120, 0.45);
  color: #a8e6c5;
}

.site-message--error {
  background: rgba(220, 90, 90, 0.15);
  border: 1px solid rgba(220, 90, 90, 0.45);
  color: #f5b5b5;
}

/* Registro superusuario */
.page-registry .registry-page {
  padding: 2rem 0 3rem;
  max-width: 42rem;
}

.page-registry .registry-page--hub {
  max-width: 56rem;
}

.registry-header {
  margin-bottom: 1.75rem;
}

.registry-title {
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.registry-lead {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.registry-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .registry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.registry-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
}

.registry-card-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.registry-form .registry-field {
  margin-bottom: 1.1rem;
}

.registry-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.registry-form input[type="text"],
.registry-form input[type="email"],
.registry-form input[type="url"],
.registry-form input[type="number"],
.registry-form input[type="datetime-local"],
.registry-form input[type="date"],
.registry-form select,
.registry-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 14, 18, 0.85);
  color: var(--text);
  font-size: 0.95rem;
}

.registry-form input:focus,
.registry-form select:focus,
.registry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.registry-field-errors {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: #f5b5b5;
  font-size: 0.85rem;
}

.registry-errors {
  color: #f5b5b5;
  margin-bottom: 1rem;
}

.registry-actions {
  margin-top: 1.5rem;
}

.hero-actions-dual {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-more {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.hero-more a {
  color: var(--muted);
}

.hero-more a:hover {
  color: var(--accent);
}

.narrow-story {
  max-width: 38rem;
  margin-inline: auto;
}

.section-story h2 {
  margin-top: 0;
}

.story-text {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.story-sign {
  margin-top: 1.25rem;
  font-style: italic;
}

.label-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88em;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-errors-live {
  margin-bottom: 1rem;
}

.contact-form {
  position: relative;
}

/* Footer ampliado */
.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0 1rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  }
}

.footer-col .footer-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.footer-tagline {
  margin: 0 0 0.5rem;
}

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

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0 2rem;
}

.footer-bottom p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Barra fija móvil */
.sticky-cta {
  display: none;
}

@media (max-width: 899px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    justify-content: center;
    align-items: center;
    background: rgba(15, 20, 25, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
  }

  .sticky-cta-btn {
    flex: 1 1 0;
    max-width: 12rem;
    min-height: 2.75rem;
    font-size: 0.9rem;
  }

  .sticky-cta-single .sticky-cta-btn {
    max-width: none;
    flex: 1 1 auto;
  }
}

/* Página legal */
.legal-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.legal-inner h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
}

.legal-inner p,
.legal-inner li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-inner h1 {
  margin-bottom: 0.5rem;
}

/* Solo lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Simulador Emerbot → Telegram */
.demo-section h2 {
  margin-bottom: 0.5rem;
}

.demo-sim {
  margin-top: 1.5rem;
}

.demo-sim-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 800px) {
  .demo-sim-grid {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 2rem;
  }
}

.demo-panel-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.demo-board {
  position: relative;
  min-height: 228px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #243044 0%, #1a2332 45%, #151c28 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.demo-board-inner {
  position: absolute;
  inset: 0;
  padding: 1rem 1.25rem;
  pointer-events: none;
}

/* LEDs: verde = listo (siempre visible encendido en reposo); rojo = alarma al pulsar */
.demo-led-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.demo-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s, box-shadow 0.2s, background 0.2s;
}

.demo-led--green {
  background: #2d6a3e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 10px rgba(52, 199, 89, 0.75);
}

.demo-led--red {
  background: rgba(55, 20, 20, 0.5);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6);
  opacity: 0.4;
}

.demo-board--active .demo-led--green {
  opacity: 0.95;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 9px rgba(52, 199, 89, 0.55);
}

.demo-board--active .demo-led--red {
  opacity: 1;
  background: #e12d2d;
  box-shadow: 0 0 14px rgba(225, 45, 45, 0.95);
}

.demo-board-lines {
  display: block;
  margin-top: 0.75rem;
  height: 4px;
  width: 55%;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}

/* Botón físico tipo Emerbot: cúpula roja con bisel (solo visual; la etiqueta va en aria-label) */
.demo-panic {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: 112px;
  height: 112px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  z-index: 2;
}

.demo-panic:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.demo-panic-cap {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 100% 88% at 50% 26%,
    #ff9a8e 0%,
    #e12d2d 42%,
    #9a0f0f 78%,
    #4a0505 100%
  );
  box-shadow:
    0 7px 0 rgba(0, 0, 0, 0.42),
    0 0 0 5px rgba(28, 32, 38, 0.95),
    0 0 0 7px rgba(255, 255, 255, 0.1),
    inset 0 -10px 18px rgba(0, 0, 0, 0.4),
    inset 0 12px 22px rgba(255, 255, 255, 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.demo-panic-shine {
  position: absolute;
  left: 16%;
  top: 11%;
  width: 44%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 40% 35%,
    rgba(255, 255, 255, 0.62),
    rgba(255, 255, 255, 0.08) 55%,
    transparent 72%
  );
  pointer-events: none;
  transform: rotate(-18deg);
}

.demo-panic:hover .demo-panic-cap {
  transform: scale(1.045);
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.4),
    0 0 0 5px rgba(28, 32, 38, 0.95),
    0 0 0 8px rgba(61, 156, 245, 0.35),
    inset 0 -10px 18px rgba(0, 0, 0, 0.38),
    inset 0 12px 22px rgba(255, 255, 255, 0.32);
}

.demo-panic:active .demo-panic-cap {
  transform: scale(0.97) translateY(5px);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.45),
    0 0 0 5px rgba(28, 32, 38, 0.95),
    0 0 0 7px rgba(255, 255, 255, 0.1),
    inset 0 -6px 14px rgba(0, 0, 0, 0.45),
    inset 0 10px 18px rgba(255, 255, 255, 0.22);
}

.demo-board--active .demo-panic-cap {
  animation: demo-panic-glow 0.85s ease-in-out infinite alternate;
}

@keyframes demo-panic-glow {
  from {
    box-shadow:
      0 7px 0 rgba(0, 0, 0, 0.42),
      0 0 0 5px rgba(28, 32, 38, 0.95),
      0 0 0 7px rgba(255, 80, 80, 0.35),
      inset 0 -10px 18px rgba(0, 0, 0, 0.4),
      inset 0 12px 22px rgba(255, 255, 255, 0.28);
  }
  to {
    box-shadow:
      0 7px 0 rgba(0, 0, 0, 0.42),
      0 0 0 5px rgba(28, 32, 38, 0.95),
      0 0 26px rgba(255, 60, 60, 0.65),
      inset 0 -10px 18px rgba(0, 0, 0, 0.35),
      inset 0 12px 22px rgba(255, 255, 255, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-board--active .demo-panic-cap {
    animation: none;
  }
}

.demo-phones {
  display: block;
}

.demo-total-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.demo-total-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.demo-total-value {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.demo-total-value .muted {
  font-size: 0.85rem;
  font-weight: 500;
}

.demo-total-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1rem;
}

.demo-total-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .demo-total-fill {
    transition: none;
  }
}

.demo-phones-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 520px) {
  .demo-phones-split {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.35rem;
    align-items: start;
  }
}

.demo-phones-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.demo-chat {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.5rem;
}

.demo-chat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(52px, 72px) 2.35rem;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

@media (max-width: 420px) {
  .demo-chat-row {
    grid-template-columns: 1fr 2.35rem;
    grid-template-rows: auto auto;
  }

  .demo-chat-track {
    grid-column: 1 / -1;
  }
}

.demo-chat-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  min-width: 0;
}

.demo-chat-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.demo-chat-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #1e7bb8, #2aabee);
  transition: width 0.32s ease;
}

@media (prefers-reduced-motion: reduce) {
  .demo-chat-fill {
    transition: none;
  }
}

.demo-chat-count {
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-align: right;
}

.demo-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}
