/* Sitio comercial público — WabaFlow */
:root {
  /* marketing_identity.md */
  --bg-deep: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.96);
  --text: #0f172a;
  --muted: #64748b;
  --gray-ui: #e5e7eb;
  --brand-start: #6d5ef5;
  --brand-end: #2563eb;
  --accent: #25d366;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --radius-md: 16px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --gradient-brand: linear-gradient(135deg, #6d5ef5 0%, #2563eb 100%);
  --gradient-accent: linear-gradient(135deg, #25d366 0%, #2563eb 100%);
  font-family: 'Inter', sans-serif, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  min-height: 100vh;
  color: var(--text);
  background-color: #e8eef9;
  /* Capas: gradientes encima • imagen /background.png cubriendo el viewport */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(109, 94, 245, 0.35) 0%, transparent 55%),
    radial-gradient(900px 500px at 10% 0%, rgba(37, 99, 235, 0.25) 0%, transparent 50%),
    linear-gradient(165deg, rgba(232, 238, 249, 0.82) 0%, rgba(241, 245, 249, 0.85) 45%, rgba(238, 242, 255, 0.82) 100%),
    url('/background.png');
  background-position: center;
  background-size: auto, auto, auto, cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.55;
}

a {
  color: var(--brand-end);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 40px;
  width: auto;
  max-width: min(200px, 46vw);
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.brand-slogan {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.25;
}
@media (max-width: 560px) {
  .brand-slogan { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav-links a:hover { color: var(--brand-end); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-end);
  border: 1px solid rgba(37, 99, 235, 0.35);
}
.btn-ghost:hover {
  background: rgba(37, 99, 235, 0.06);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--brand-end) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 64px;
}

.hero {
  padding: 48px 0 28px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 40px;
    padding: 56px 0 32px;
  }
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.35;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hero-ctas--below {
  margin-top: 0;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.hero-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 600;
}
.hero-card ul {
  list-style: none;
}
.hero-card li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1e293b;
}
.hero-card li i {
  color: var(--accent);
  margin-top: 3px;
}

.section {
  margin-top: 40px;
}

.section-head {
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 42rem;
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(109, 94, 245, 0.15) 0%, rgba(37, 99, 235, 0.12) 100%);
  display: grid;
  place-items: center;
  color: var(--brand-end);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-banner {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-start) 0%, var(--brand-end) 100%);
  color: #fff;
  text-align: center;
}
.cta-banner h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cta-banner p {
  opacity: 0.92;
  margin-bottom: 18px;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-end);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cta-banner .btn-primary:hover {
  background: #f8fafc;
}

.site-footer {
  margin-top: 64px;
  padding: 36px 22px 48px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer-inner {
    grid-template-columns: 1.2fr 1fr;
  }
}
.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-logo {
  height: 40px;
  width: auto;
  max-width: min(200px, 46vw);
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.footer-slogan {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  line-height: 1.3;
}
.footer-brand-line {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  max-width: 22rem;
}
.footer-note {
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-contact {
  font-size: 0.92rem;
  color: #334155;
}
.footer-contact a {
  word-break: break-word;
}
.footer-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.9rem;
}

.page-title {
  padding: 40px 0 8px;
}
.page-title--split {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .page-title--split {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: 36px;
  }
}
.page-title-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 768px) {
  .page-title-media {
    justify-content: flex-end;
  }
}
.page-brand-lockup {
  width: 100%;
  max-width: min(360px, 100%);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.1));
}
.page-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-end);
  margin: 0 0 10px 0;
}
.page-title h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
}
.page-title p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 40rem;
}

.prose {
  margin-top: 28px;
  max-width: 42rem;
}
.prose h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
}
.prose p {
  color: #334155;
  margin-bottom: 12px;
}
.prose ul {
  margin: 12px 0 12px 1.2rem;
  color: #334155;
}

.contact-grid {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.contact-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
}
.contact-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.plans-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media (min-width: 720px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.plan-card.featured {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}
.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent), var(--brand-end));
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}
.plan-name {
  font-size: 1.15rem;
  font-weight: 800;
}
.plan-code {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.plan-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-end);
  line-height: 1.2;
}
.plan-price span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}
.plan-price-old {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
}
.plan-desc {
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}
.plan-meta {
  font-size: 0.88rem;
  color: #475569;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.plan-actions {
  margin-top: 8px;
}
.plan-actions .btn { width: 100%; }

.plans-loading,
.plans-error {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.plans-error { color: #b91c1c; }
