/* Clientia — Ventas inteligentes
   Identidad: fondo azul casi negro, texto blanco, acento amarillo dorado. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
}

:root {
  --bg: #0d1017;
  --bg-2: #10141c;
  --card: #161b24;
  --card-2: #1a1f29;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f5f7;
  --muted: #a9afba;
  --muted-2: #8d93a0;
  --gold: #f6b801;
  --gold-ink: #1a1200;
  --gold-soft: rgba(246, 184, 1, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --gutter: 20px;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

/* Accesibilidad */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Fondo: cuadrícula tenue + brillo dorado arriba a la derecha, como el afiche */
.page-bg { position: relative; isolation: isolate; }
.page-bg::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 980px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 520px at 100% 0%, rgba(246, 184, 1, 0.12), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* Etiquetas */
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.5;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow span { white-space: nowrap; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 16, 23, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
          backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.045em;
  font-size: 1.65rem; color: var(--text); line-height: 1;
}
.wordmark span, .accent { color: var(--gold); }
.tagline {
  margin-top: 6px; font-size: 0.58rem; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
}

.nav { display: none; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500;
  padding: 8px 4px; transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }
.place-pill {
  display: none; padding: 9px 18px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 22px; border-radius: 14px;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.35;
  text-decoration: none; text-align: center; border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: #ffc61f; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.03); }
.btn--sm { min-height: 40px; padding: 9px 14px; font-size: 0.9rem; border-radius: 12px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.55rem, 10.5vw, 5.9rem);
  line-height: 0.98; letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero .lead {
  max-width: 40em; margin: 0 0 32px;
  font-size: clamp(1.08rem, 2.6vw, 1.45rem); line-height: 1.5; color: var(--muted);
}
.lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-note { margin: 22px 0 0; font-size: 0.9rem; color: var(--muted-2); }

/* Secciones */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section h2 {
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 3.4rem); line-height: 1.3; letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-head p:not(.eyebrow) { margin: 0; font-size: 1.08rem; color: var(--muted); }
.section-head .eyebrow { margin-bottom: 14px; }

/* Tarjetas */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.card h3 {
  margin: 0 0 4px; font-family: var(--body); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em;
}
.card .sub { margin: 0 0 18px; color: var(--muted); font-size: 0.98rem; }

/* Servicios */
.services { display: grid; gap: 18px; }
.card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.card-title h3 { margin: 0; }
.service-icon { flex: none; display: inline-flex; color: var(--gold); }
.service-icon svg { width: 26px; height: 26px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: #dfe2e8; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23F6B801' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.figures { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; padding: 0; list-style: none; }
.figures li {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 0.92rem; color: var(--text);
}
.figures strong { font-family: var(--display); font-weight: 800; color: var(--gold); margin-right: 4px; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: paso; }
.step { display: flex; align-items: center; gap: 18px; }
.step-num {
  flex: none; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold);
  display: grid; place-items: center; color: var(--gold);
  font-family: var(--body); font-weight: 700; font-size: 1.25rem;
}
.step p { margin: 0; font-size: 1.08rem; line-height: 1.5; color: #dfe2e8; }
.step-arrow { display: none; color: var(--muted-2); }
.step-arrow svg { width: 22px; height: 22px; }

/* Planes */
.plans { display: grid; gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan .price {
  display: flex; align-items: flex-start; gap: 3px; margin: 2px 0 18px;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
}
.price .cur { font-size: 1.5rem; margin-top: 4px; letter-spacing: 0; }
.price .amt { font-size: 4rem; }
.price .per {
  align-self: flex-end; margin-left: 8px; margin-bottom: 6px;
  font-family: var(--body); font-weight: 500; font-size: 0.95rem; letter-spacing: 0; color: var(--muted);
}
.plan .desc { margin: 0 0 22px; color: #dfe2e8; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured {
  border: 2px solid var(--gold);
  background: linear-gradient(160deg, #1d1810 0%, #15130f 60%, #13120f 100%);
  box-shadow: 0 24px 60px -30px rgba(246, 184, 1, 0.35);
}
.plan--featured .price { color: var(--gold); }
.pill {
  display: inline-block; align-self: flex-start; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4;
}
.plan-notes { margin: 28px 0 0; color: var(--muted); font-size: 0.95rem; }
.plan-notes p { margin: 0 0 6px; }

/* Preguntas */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 600; font-size: 1.05rem; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' fill='none' stroke='%23F6B801' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Llamado final */
.cta-band { padding: 72px 0; border-top: 1px solid var(--line); }
.cta-row { display: flex; flex-direction: column; gap: 24px; }
.cta-row h2 {
  margin: 0 0 6px; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 5.6vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.3;
  text-wrap: balance;
}
.cta-row p { margin: 0; color: var(--muted); }
.btn--phone {
  min-height: 64px; padding: 14px 26px; border-radius: 16px;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em;
}
.btn--phone svg { width: 28px; height: 28px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h2 {
  margin: 0 0 12px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.footer-list a { text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-about { margin: 14px 0 0; color: var(--muted); max-width: 30em; }
.legal-line {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  color: var(--muted-2); font-size: 0.88rem;
}
.legal-line a { text-decoration: none; }
.legal-line a:hover { color: var(--text); text-decoration: underline; }
.legal-line nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Páginas legales */
.legal { padding: 48px 0 72px; }
.legal-head { max-width: 780px; margin-bottom: 36px; }
.legal-head h1 {
  margin: 0 0 12px; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.3; letter-spacing: -0.045em;
}
.legal-head .updated { margin: 0; color: var(--muted-2); font-size: 0.95rem; }
.prose { max-width: 780px; color: #d6dae1; font-size: 1.02rem; line-height: 1.7; }
.prose h2 {
  margin: 44px 0 12px; font-family: var(--display); font-weight: 800; color: var(--text);
  font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.3;
  scroll-margin-top: 90px;
}
.prose h3 { margin: 26px 0 8px; font-size: 1.08rem; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--text); }
.prose .box {
  margin: 0 0 1.2em; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--card);
}
.prose .box p:last-child { margin-bottom: 0; }
.prose .box--gold { border-color: rgba(246, 184, 1, 0.55); background: #17150f; }
.toc { margin: 0 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--text); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }

/* ≥ 600px */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .card { padding: 32px 30px; }
  .cta-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 2; column-gap: 32px; }
}

/* ≥ 900px */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .header-row { min-height: 84px; }
  .wordmark { font-size: 2rem; }
  .tagline { font-size: 0.64rem; }
  .nav { display: flex; align-items: center; gap: 26px; }
  .place-pill { display: inline-block; }
  .hero { padding: 88px 0 104px; }
  .hero .eyebrow { font-size: 0.9rem; letter-spacing: 0.26em; margin-bottom: 26px; }
  .section, .cta-band { padding: 104px 0; }
  .services { grid-template-columns: 1fr 1fr; gap: 22px; }
  .steps { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; }
  .step-arrow { display: block; }
  .plans { grid-template-columns: 1fr 1.1fr 1fr; gap: 22px; }
  .plan--featured { transform: translateY(-8px); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .nav { gap: 18px; }
  .place-pill { display: none; }
}
