@import url('/vendor/manrope/index.css');

/* Mismos colores y tipografía que la aplicación, con tema oscuro y claro */
:root {
  color-scheme: dark;
  --bg: #0e0c12;
  --bg-alt: #13101a;
  --panel: #1a1621;
  --panel-2: #221d2a;
  --line: rgba(255, 255, 255, .08);
  --text: #f4f1f6;
  --muted: #a9a3b1;
  --accent: #ff8a5c;
  --grad: linear-gradient(120deg, #ffb35c, #ff5e62);
  --on-accent: #17121c;
  --device: #2a2533;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --glow-a: rgba(255, 110, 80, .28);
  --glow-b: rgba(120, 70, 220, .26);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2ee;
  --bg-alt: #efe9e4;
  --panel: #fbf9f7;
  --panel-2: #f1ece8;
  --line: rgba(40, 28, 44, .1);
  --text: #1c1722;
  --muted: #5d5666;
  --accent: #bd4611;
  --device: #2a2533;
  --shadow: 0 30px 70px rgba(40, 28, 44, .22);
  --glow-a: rgba(255, 140, 90, .3);
  --glow-b: rgba(150, 110, 230, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.landing {
  margin: 0; background: var(--bg); color: var(--text); font-family: 'Manrope Variable', system-ui, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.08; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Sobre fondo claro el degradado de marca no se lee: se oscurece para mantener el contraste */
:root[data-theme="light"] .grad-text { background-image: linear-gradient(120deg, #c9480f, #c0283a); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s, transform .15s;
}
.l-btn.big { height: 52px; padding: 0 28px; font-size: 16.5px; }
.l-btn.full { width: 100%; }
.l-btn.primary { background: var(--grad); color: var(--on-accent); }
.l-btn.primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.l-btn.ghost { background: var(--panel-2); color: var(--text); }
.l-btn.ghost:hover:not(:disabled) { background: var(--line); }
.l-btn:disabled { opacity: .55; cursor: default; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 30; backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.site-nav { display: flex; gap: 26px; margin-left: 18px; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }

/* Portada */
.hero { position: relative; padding: 72px 0 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-weight: 700; font-size: 14px; }
.hero-points li::before { content: '✓'; color: var(--accent); margin-right: 7px; }
.hero-visual { position: relative; padding-bottom: 40px; }
.glow {
  position: absolute; inset: -12% -20% -5% -10%; z-index: 0; filter: blur(40px);
  background: radial-gradient(closest-side at 35% 40%, var(--glow-a), transparent), radial-gradient(closest-side at 75% 70%, var(--glow-b), transparent);
}

/* Marcos de dispositivo para las capturas */
.device { position: relative; z-index: 1; margin: 0; background: var(--device); box-shadow: var(--shadow); }
.device img { width: 100%; }
.laptop { border-radius: 14px; padding: 0 8px 8px; }
.laptop-bar { display: flex; gap: 6px; padding: 10px 6px; }
.laptop-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.laptop img { border-radius: 6px; }
.phone { border-radius: 34px; padding: 9px; }
.phone img { border-radius: 26px; }
.hero-phone { position: absolute; width: 27%; right: -3%; bottom: -2%; }
.hero-visual .laptop { width: 94%; }

.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 0; color: var(--muted); font-size: 15px; }
.strip-row b { color: var(--text); }

/* Secciones */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-alt); }
.section-intro { max-width: 760px; margin-bottom: 52px; }
.section h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin-bottom: 16px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.feature h3 { font-size: 19px; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.f-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.showcase { margin-top: 64px; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li b { color: var(--text); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad);
}
.checks li::after { content: '✓'; position: absolute; left: 5px; top: 0; font-size: 13px; font-weight: 900; color: var(--on-accent); }

.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; align-items: start; }
.phones .phone.raised { margin-top: 48px; }
.phones figcaption { text-align: center; color: var(--muted); font-weight: 700; font-size: 14px; position: absolute; left: 0; right: 0; bottom: -34px; }
.phones .phone { margin-bottom: 40px; }

.principles { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principles li { counter-increment: p; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; color: var(--muted); }
.principles li::before { content: counter(p); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.principles b { color: var(--text); }
.principles a { color: var(--accent); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; }
.plan.featured { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.plan.soon { opacity: .78; }
.plan h3 { font-size: 22px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan.soon .price { font-size: 24px; color: var(--muted); }
.plan .price small { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.plan .space { font-weight: 800; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 22px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.plan ul li::before { content: '✓'; color: var(--accent); margin-right: 8px; font-weight: 900; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: var(--on-accent); }
.muted-badge { background: var(--panel-2); color: var(--muted); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding: 0 0 18px; }

.final-cta { text-align: center; padding: 110px 0; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, var(--glow-a), transparent 70%), var(--bg); }
.final-cta h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; margin-bottom: 14px; }
.final-cta .lead { margin: 0 auto 30px; }

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin-top: 12px; max-width: 360px; font-size: 14.5px; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; font-size: 14.5px; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid nav a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; font-size: 13px; }

/* Páginas legales */
.legal { padding: 56px 0 90px; }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; }
.legal-nav { position: sticky; top: 92px; align-self: start; display: grid; gap: 4px; }
.legal-nav a { text-decoration: none; color: var(--muted); font-weight: 700; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; }
.legal-nav a.active, .legal-nav a:hover { background: var(--panel); color: var(--text); }
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.doc h2 { font-size: 21px; margin: 34px 0 12px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--muted); margin-bottom: 12px; }
.doc p b, .doc li b, .doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc a { color: var(--accent); }
.doc mark { background: rgba(255, 179, 92, .2); color: var(--text); padding: 1px 6px; border-radius: 4px; }
.doc .callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 18px 20px; margin: 22px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.doc th { color: var(--text); }
.report-form { display: grid; gap: 14px; margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.report-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.report-form input, .report-form select, .report-form textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 16px;
}
.report-form textarea { min-height: 120px; resize: vertical; }
.report-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.report-form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #ff8a5c; }
.form-error { background: rgba(255, 94, 98, .14); color: #ff8a8d; border-radius: 10px; padding: 10px 14px; }
:root[data-theme="light"] .form-error { color: #b3202a; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Adaptable */
@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; }
  .site-nav { display: none; }
  .legal-grid { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .hero { padding: 40px 0 24px; }
  .lead { font-size: 16.5px; }
  .section { padding: 72px 0; }
  .features, .principles, .plans { grid-template-columns: 1fr; }
  .phones { gap: 16px; }
  .phones .phone.raised { margin-top: 28px; }
  .phone { border-radius: 24px; padding: 6px; }
  .phone img { border-radius: 19px; }
  .strip-row { justify-content: flex-start; gap: 10px 22px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
  .hide-xs { display: none; }
  .header-row { gap: 12px; }
  .l-btn.big { width: 100%; }
  .report-form { padding: 18px; }
}
