/* ==========================================================
   Axiotech - Landing B2B
   Estilos aislados: no depende de styles.css del panel.
   ========================================================== */

:root {
  --bg: #0f172a;
  --bg-alt: #0b1222;
  --surface: #131c33;
  --surface-2: #17213b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --radius: 20px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section { scroll-margin-top: 80px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #04120c;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.28);
}

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

.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
  border-radius: 10px;
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
  }
  .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
  }
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.7);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 32px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -80px 0 auto 0;
  height: 520px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(16, 185, 129, 0.18), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; }

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: clamp(2.1rem, 6vw, 3.9rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  max-width: 660px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Demo móvil ---------- */
.demo {
  padding: 40px 0 72px;
}

.phone {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1e293b, #0b1222);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 90px rgba(16, 185, 129, 0.12);
}

.phone-screen {
  overflow: hidden;
  border-radius: 34px;
  background: #0b141a;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #1f2c34;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #04120c;
  font-weight: 800;
  font-size: 0.95rem;
}

.chat-name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.chat-status { color: var(--accent-hover); font-size: 0.75rem; }

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px 22px;
  min-height: 360px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.03), transparent 40%),
    #0b141a;
}

.msg {
  max-width: 82%;
  padding: 8px 12px 6px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #e9edef;
}

.msg time {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 0.66rem;
  color: rgba(233, 237, 239, 0.55);
}

.msg-in {
  align-self: flex-start;
  background: #1f2c34;
  border-top-left-radius: 4px;
}

.msg-out {
  align-self: flex-end;
  background: #005c4b;
  border-top-right-radius: 4px;
}

.msg strong { color: #fff; }

.demo-caption {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg { width: 24px; height: 24px; }

.card-sync {
  grid-column: span 4;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(16, 185, 129, 0.16), transparent 60%),
    var(--surface);
}
.card-noshow { grid-column: span 2; }
.card-rgpd { grid-column: span 2; }
.card-panel {
  grid-column: span 4;
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(16, 185, 129, 0.12), transparent 60%),
    var(--surface);
}

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

.tag {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
}

@media (hover: hover) {
  .card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
  }
}

/* ---------- Precios ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  align-items: center;
}

.plan {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan-featured {
  padding: 40px 30px;
  border: 2px solid var(--accent);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(16, 185, 129, 0.16), transparent 70%),
    var(--surface-2);
  box-shadow: 0 24px 60px rgba(16, 185, 129, 0.16);
  transform: scale(1.04);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #04120c;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-name {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 4px;
}

.plan-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-unit { color: var(--muted); font-size: 1rem; }
.plan-iva { color: var(--muted); font-size: 0.85rem; margin-bottom: 22px; }

.plan ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.plan li {
  position: relative;
  padding-left: 28px;
  font-size: 0.97rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

.plan .btn { width: 100%; }

/* ---------- Agencia ---------- */
.agency {
  background:
    radial-gradient(60% 100% at 80% 0%, rgba(16, 185, 129, 0.1), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.agency-box {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.agency-box h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.agency-box p {
  margin: 18px auto 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-sync,
  .card-panel { grid-column: span 2; }
  .card-noshow,
  .card-rgpd { grid-column: span 1; }
}

@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .section { padding: 56px 0; }

  .bento { grid-template-columns: 1fr; }
  .card-sync,
  .card-noshow,
  .card-rgpd,
  .card-panel { grid-column: auto; }

  .pricing {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* En móvil el destacado va primero y sin escalar para no desbordar */
  .plan-featured { order: -1; transform: none; }

  .cta-row .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
