/* EvaliCorp: estilo ejecutivo. Pizarra, zafiro y dorado champagne. */
:root {
  --ink: #0F172A;
  --ink-2: #1E293B;
  --paper: #F8FAFC;
  --white: #FFFFFF;
  --line: #E2E8F0;
  --line-dark: rgba(148, 163, 184, .18);
  --muted: #475569;
  --muted-dark: #94A3B8;
  --sapphire: #1E3A8A;
  --sky: #0284C7;
  --gold: #D97706;
  --gold-soft: #F59E0B;
  --wa: #E7F6EE;
  --radius-lg: 20px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px -24px rgba(15, 23, 42, .28);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--sapphire); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--sapphire); color: var(--white); }
.btn-primary:hover { background: #1B337A; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--muted-dark); }
.btn-outline { background: transparent; color: var(--sapphire); border-color: #C7D2E8; }
.btn-outline:hover { border-color: var(--sapphire); }
.btn-block { width: 100%; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(15, 23, 42, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-dark); color: var(--paper); }
.site-header.is-light { background: rgba(248, 250, 252, .9); color: var(--ink); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav-menu { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-menu a:not(.btn) { color: inherit; opacity: .78; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-menu a:not(.btn):hover { opacity: 1; }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.select { appearance: none; -webkit-appearance: none; font: 500 14px var(--font); color: inherit; background: transparent; border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 32px 8px 14px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394A3B8' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.select option { color: var(--ink); }
.is-light .select, .select-light { border-color: var(--line); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-dark); border-radius: 10px; width: 44px; height: 44px; color: inherit; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }

/* Portada */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 35%; height: 120%; background: radial-gradient(closest-side, rgba(30, 58, 138, .55), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 88px 0 96px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin: 0 0 22px; max-width: 13ch; }
.hero-lead { font-size: 18px; color: #CBD5E1; max-width: 54ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--muted-dark); }

/* Conversación de WhatsApp: el elemento memorable */
.demo { position: relative; justify-self: center; width: min(100%, 400px); }
.phone { background: rgba(30, 41, 59, .72); border: 1px solid var(--line-dark); border-radius: 28px; padding: 14px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; border-bottom: 1px solid var(--line-dark); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sapphire); display: grid; place-items: center; }
.avatar img { width: 22px; height: 22px; }
.phone-top strong { display: block; font-size: 14px; }
.phone-top small { color: var(--gold-soft); font-size: 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 4px 6px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg-bot { background: #F1F5F9; color: var(--ink); border-top-left-radius: 4px; }
.msg-user { background: var(--wa); color: #0B3B24; margin-left: auto; border-top-right-radius: 4px; }
.options { display: grid; gap: 6px; margin-top: 8px; }
.options span { display: block; border: 1px solid #CBD5E1; border-radius: 8px; padding: 6px 10px; font-size: 13px; background: var(--white); }
.options .picked { border-color: var(--gold); background: #FFFBEB; }
.score { position: absolute; right: -28px; bottom: -36px; display: flex; align-items: center; gap: 14px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 14px 18px 14px 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ring { --p: 86; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), #F1E6D2 0); flex: none; }
.ring b { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 17px; font-variant-numeric: tabular-nums; }
.score strong { display: block; font-size: 14px; }
.score small { display: block; color: var(--muted); font-size: 12px; }
.score em { font-style: normal; display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: #92400E; background: #FEF3C7; border-radius: 999px; padding: 2px 9px; }
@media (prefers-reduced-motion: no-preference) {
  .chat .msg { opacity: 0; transform: translateY(6px); animation: in .45s ease forwards; }
  .chat .msg:nth-child(1) { animation-delay: .2s; }
  .chat .msg:nth-child(2) { animation-delay: .9s; }
  .chat .msg:nth-child(3) { animation-delay: 1.6s; }
  .chat .msg:nth-child(4) { animation-delay: 2.5s; }
  .chat .msg:nth-child(5) { animation-delay: 3.1s; }
  .score { opacity: 0; animation: in .5s ease 3.6s forwards; }
  @keyframes in { to { opacity: 1; transform: none; } }
}

/* Secciones */
.section { padding: 104px 0; }
.section-tight { padding-top: 0; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; max-width: 22ch; }
.lead { color: var(--muted); font-size: 17px; max-width: 60ch; margin: 0; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 28px 0 0; counter-increment: step; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #C7D2E8; color: var(--sapphire); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.field { background: var(--white); border-block: 1px solid var(--line); }
.field-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.trades { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.trade { background: var(--white); padding: 26px; }
.trade h3 { margin: 0 0 6px; font-size: 17px; }
.trade p { margin: 0; color: var(--muted); font-size: 14.5px; }
.trade svg { width: 26px; height: 26px; color: var(--sapphire); margin-bottom: 14px; }

.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: #FEF3C7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%23B45309' stroke-width='1.6'/%3E%3C/svg%3E") center no-repeat; }
.doc { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 34px 32px; aspect-ratio: 1 / 1.25; max-width: 420px; justify-self: center; width: 100%; overflow: hidden; }
.doc-mark { position: absolute; inset: 0; display: grid; place-items: center; opacity: .15; pointer-events: none; }
.doc-mark span { font-weight: 800; font-size: 42px; letter-spacing: .04em; color: var(--sapphire); transform: rotate(-24deg); border: 4px solid var(--sapphire); padding: 10px 22px; border-radius: 16px; }
.doc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.doc-head strong { font-size: 15px; }
.doc-head small { color: var(--muted); font-size: 12px; }
.doc-score { display: flex; align-items: baseline; gap: 8px; margin: 22px 0; }
.doc-score b { font-size: 44px; letter-spacing: -.03em; color: var(--sapphire); }
.doc-score span { color: var(--muted); font-size: 14px; }
.bar { margin-bottom: 14px; font-size: 13px; }
.bar div { height: 8px; border-radius: 99px; background: #EEF2F7; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sapphire); border-radius: 99px; }
.doc-lines { margin-top: 22px; display: grid; gap: 8px; }
.doc-lines i { display: block; height: 7px; border-radius: 4px; background: #EEF2F7; }

/* Precios */
.pricing { background: var(--ink); color: var(--paper); }
.pricing .lead { color: #CBD5E1; }
.pricing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.pricing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.period { display: inline-flex; padding: 4px; border: 1px solid var(--line-dark); border-radius: 999px; }
.period button { font: 600 14px var(--font); color: var(--muted-dark); background: none; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.period button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.period small { color: var(--gold-soft); font-weight: 600; margin-left: 4px; }
.period button[aria-pressed="true"] small { color: var(--gold); }
.currency label { font-size: 13px; color: var(--muted-dark); margin-right: 8px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.plan { position: relative; display: flex; flex-direction: column; background: rgba(30, 41, 59, .6); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 30px 28px; }
.plan.is-featured { background: var(--paper); color: var(--ink); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 30px 70px -30px rgba(217, 119, 6, .45); }
.plan h3 { margin: 0; font-size: 19px; }
.plan-desc { margin: 4px 0 22px; font-size: 14px; color: var(--muted-dark); min-height: 2.8em; }
.plan.is-featured .plan-desc { color: var(--muted); }
.badge { position: absolute; top: -12px; left: 28px; background: var(--gold); color: var(--white); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.price b { font-size: 40px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted-dark); font-size: 15px; }
.plan.is-featured .price span { color: var(--muted); }
.feats { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 14.5px; }
.feats li { display: flex; gap: 10px; }
.feats li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M3 8.5l3 3L13 4.5' stroke='%23F59E0B' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat; }
.plan .btn { margin-top: auto; }
.plan:not(.is-featured) .btn-outline { color: var(--paper); border-color: var(--line-dark); }
.plan:not(.is-featured) .btn-outline:hover { border-color: var(--muted-dark); }
.fine { margin: 28px 0 0; font-size: 13.5px; color: var(--muted-dark); max-width: 80ch; }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 120px; font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: start; }
.footer-grid .brand { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Banner de cookies */
.cookie { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(100% - 24px, 720px); display: flex; gap: 18px; align-items: center; background: rgba(15, 23, 42, .94); color: var(--paper); border: 1px solid rgba(245, 158, 11, .35); border-radius: 16px; padding: 18px 20px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 14px; color: #CBD5E1; }
.cookie p a { color: var(--gold-soft); }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Páginas legales y simples */
.page { padding: 72px 0 96px; }
.page-narrow { width: min(100% - 40px, 760px); margin-inline: auto; }
.page h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 10px; }
.page-meta { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-size: 19px; margin: 36px 0 8px; letter-spacing: -.01em; }
.legal p { margin: 0 0 12px; color: var(--ink-2); }
.page-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-top: 28px; }

/* Adaptación a pantallas */
@media (max-width: 980px) {
  .hero-grid, .field-grid, .report-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid { padding: 56px 0 96px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .score { right: 8px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px 20px 20px; margin: 0; }
  .is-light .nav-menu { background: var(--paper); border-bottom-color: var(--line); }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line-dark); }
  .nav-tools .btn { flex: 1; }
  .plan-desc { min-height: 0; }
  .nav-tools { margin-top: 16px; justify-content: space-between; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .trades { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column-reverse; }
  .score { position: relative; right: auto; bottom: auto; margin: -24px 12px 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}
