/* Sitio de Unicornio CRM · booleAr S.A. · paleta del CRM (tokens.css), WCAG 2.2 AA */
:root {
  --text: #1E1726; --muted: #6B6178; --bg: #FFFFFF; --surface: #EFE6F7; --page: #F6F4F9; --line: #E3DDEB;
  --primary: #6A2C9E; --primary-hover: #4E1F78; --heading: #24133F; --band: #1E1A4D; --accent: #FFE27A; --ok: #17602F;
  --radius: 14px; --shadow: 0 1px 2px rgb(36 19 63 / .06), 0 8px 28px rgb(36 19 63 / .08);
  --font: Rubik, "IBM Plex Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.oscuro :focus-visible { outline-color: var(--accent); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--band); padding: .75rem 1rem; z-index: 10; font-weight: 700; }
.saltar:focus { left: 1rem; top: 1rem; }

/* Encabezado */
.encabezado { background: var(--band); color: #fff; }
.encabezado .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem; }
.marca { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.marca img { width: 40px; height: 40px; border-radius: 9px; }
.marca:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.nav a { color: #F4EEFB; text-decoration: none; padding: .5rem .25rem; min-height: 24px; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.boton-principal { background: var(--accent); color: var(--band); }
.boton-principal:hover { background: #fff; color: var(--band); }
.boton-claro { border-color: #fff; color: #fff; }
.boton-claro:hover { background: #fff; color: var(--band); }
.boton-violeta { background: var(--primary); color: #fff; }
.boton-violeta:hover { background: var(--primary-hover); color: #fff; }
.nav .boton { padding: .45rem 1.1rem; min-height: 44px; }

/* Portada */
.portada { background: linear-gradient(135deg, #24133F 0%, #5A2590 100%); color: #fff; padding: 3.5rem 0 4rem; }
.portada .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.portada h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.01em; }
.portada h1 span { color: var(--accent); display: block; }
.portada p.bajada { font-size: 1.2rem; color: #F4EEFB; max-width: 36rem; margin: 0 0 1.75rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; }
.portada .nota { margin-top: 1.25rem; font-size: .95rem; color: #E6DAF5; }
.video { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgb(0 0 0 / .35); background: #24133F; }
.video video { width: 100%; }
.video figcaption { font-size: .9rem; color: #E6DAF5; padding: .6rem .9rem; }

/* Secciones */
section { padding: 4rem 0; }
.alterna { background: var(--page); }
h2 { color: var(--heading); font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; margin: 0 0 .75rem; }
.intro { color: var(--muted); font-size: 1.15rem; max-width: 44rem; margin: 0 0 2.25rem; }
.grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.tarjeta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.tarjeta h3 { color: var(--heading); margin: 0 0 .4rem; font-size: 1.15rem; }
.tarjeta p { margin: 0; color: var(--text); }
.icono { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--primary); display: grid; place-items: center; margin-bottom: .8rem; }
.icono svg { width: 24px; height: 24px; }

.pantallas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pantallas figure { margin: 0; }
.pantallas img { border-radius: 22px; border: 8px solid #14111C; box-shadow: var(--shadow); width: 100%; }
.pantallas figcaption { text-align: center; margin-top: .75rem; font-weight: 600; color: var(--heading); }

.publico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lista-check { list-style: none; padding: 0; margin: 0; }
.lista-check li { padding-left: 1.9rem; position: relative; margin: .55rem 0; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* Planes */
.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.plan h3 { margin: 0; color: var(--heading); font-size: 1.35rem; }
.plan .para { color: var(--muted); margin: 0 0 .5rem; }
.plan.destacado { border: 3px solid var(--primary); position: relative; }
.plan .etiqueta { align-self: flex-start; background: var(--primary); color: #fff; border-radius: 999px; font-size: .85rem; font-weight: 700; padding: .2rem .7rem; }
.plan ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.plan li { margin: .3rem 0; }
.aclaracion { color: var(--muted); font-size: .95rem; margin-top: 1.25rem; }

/* Cierre */
.cierre { background: var(--band); color: #fff; text-align: center; }
.cierre h2 { color: #fff; }
.cierre p { color: #E6DAF5; font-size: 1.15rem; margin: 0 auto 1.75rem; max-width: 40rem; }
.cierre .acciones { justify-content: center; }

/* Pie */
.pie { background: #14111C; color: #D9D0E6; padding: 2.5rem 0; font-size: .95rem; }
.pie .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.pie a { color: #F4EEFB; }
.powered { display: inline-flex; align-items: center; gap: .6rem; background: #fff; color: var(--muted); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; text-decoration: none; }
.powered img { height: 26px; width: auto; }
.pie nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Páginas legales */
.legal main { background: #fff; padding: 2rem 0 3.5rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { color: var(--heading); font-size: 2rem; line-height: 1.25; margin: .5rem 0 .25rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.legal li { margin: .35rem 0; }

@media (max-width: 900px) {
  .portada .wrap { grid-template-columns: 1fr; }
  .planes { grid-template-columns: repeat(2, 1fr); }
  .publico { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pantallas { grid-template-columns: 1fr; max-width: 22rem; margin: 0 auto; }
  .planes { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.pie a.powered, .pie a.powered:hover { color: var(--muted); }
