/* =========================================================
   Soluciones para empresas y autónomos en Álava
   Diseño alineado con improoove.com (mismos tokens y look)
   ========================================================= */

:root {
  /* Paleta improoove */
  --ink: #111; --ink-soft: #333; --muted: #777; --faint: #bbb;
  --line: #e8e8e8; --bg: #FAFAF8; --white: #fff;
  --accent: #5B2EFF; --accent-soft: #ede8ff; --accent-mid: #8B6DFF;

  /* Alias usados por el ERP y el configurador (mismos valores) */
  --c-bg: var(--bg); --c-surface: var(--white);
  --c-ink: var(--ink); --c-ink-soft: var(--ink-soft); --c-muted: var(--muted);
  --c-line: var(--line);
  --c-primary: var(--accent); --c-primary-d: #4a1fd6; --c-primary-l: var(--accent-soft);
  --c-accent: var(--accent-mid); --c-accent-d: #6f4ff0;
  --c-ok: #1f9d6b; --c-ok-bg: #e7f6ef;
  --c-danger: #d6453d; --c-danger-bg: #fdecea;

  --radius: 20px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(17,17,17,.05);
  --shadow-md: 0 16px 40px rgba(17,17,17,.07);
  --shadow-lg: 0 24px 60px rgba(17,17,17,.12);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink-soft); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; letter-spacing: -.5px; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .container { padding: 0 24px; } }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}

/* ---------- Botones (estilo improoove) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 11px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: all .25s cubic-bezier(.4,0,.2,1); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(91,46,255,.25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-mid); border-color: var(--accent-mid); transform: translateY(-1px); }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand, .logo {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  color: var(--ink); letter-spacing: -.5px; text-decoration: none; display: inline-block;
}
.brand:hover, .logo:hover { text-decoration: none; }
.logo .ooo, .brand .ooo { color: var(--accent); }
.logo-suffix { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: .5ch; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(620px 320px at 85% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
  padding: clamp(56px, 9vw, 110px) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 38ch; line-height: 1.7; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-trust { margin-top: 1.8rem; display: flex; gap: 1.6rem; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-trust b { color: var(--ink); font-weight: 600; }

/* Mock window */
.window { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: .4em; padding: .7em .9em; border-bottom: 1px solid var(--line); background: #fbfbfa; }
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #e0e0dd; }
.window-bar .dot.r { background: #f0c0bc; } .window-bar .dot.y { background: #f0e0b0; } .window-bar .dot.g { background: #c8e6cf; }
.window-bar .url { margin-left: .6em; font-size: 12px; color: var(--muted); background: #f0f0ee; border-radius: 6px; padding: .25em .7em; }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 56ch; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { font-size: 17px; color: var(--muted); line-height: 1.7; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-3.bleed { background: var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 880px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 32px; transition: all .5s cubic-bezier(.4,0,.2,1);
}
.grid-3.bleed .card { border: 0; border-radius: 0; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.grid-3.bleed .card.hover:hover { transform: translateY(-4px); background: var(--accent-soft); box-shadow: none; }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; font-size: 1.4rem;
}

/* Demo cards */
.demo-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.demo-thumb { aspect-ratio: 16/9; background: var(--ink); position: relative; color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; }
.demo-thumb::before { content:''; position:absolute; inset:0; background: radial-gradient(420px 200px at 80% 0%, rgba(91,46,255,.5), transparent 70%); }
.demo-thumb.alt::before { background: radial-gradient(420px 200px at 20% 100%, rgba(139,109,255,.5), transparent 70%); }
.demo-thumb > * { position: relative; }
.demo-thumb .tag { position: absolute; top: 18px; left: 18px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.14); padding: .4em .8em; border-radius: 999px; letter-spacing: .04em; }
.demo-thumb h3 { color: #fff; margin: 0; }
.demo-thumb .fakeurl { font-size: 13px; opacity: .7; font-family: var(--font-head); }
.demo-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.demo-body ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.demo-body .demo-actions { margin-top: auto; display: flex; gap: .6rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; overflow: hidden; }
.price-card::after { content:''; position:absolute; bottom:0; left:0; width:0; height:3px; background:linear-gradient(90deg,var(--accent),var(--accent-mid)); transition: width .5s cubic-bezier(.4,0,.2,1); }
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.price-card:hover::after { width: 100%; }
.price-card.featured { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.6); }
.price-card.featured h3 { color: #fff; }
.price-card.featured .price-amt { color: #fff; }
.price-card.featured .price-list li { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.1); }
.price-card.featured .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.price-card.featured .btn-primary:hover { background: var(--accent-soft); color: var(--accent); }
.price-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; letter-spacing: 1px; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.price-card.featured .price-badge { background: var(--accent); color: #fff; }
.price-amt { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -2px; line-height: 1; }
.price-amt small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-list { list-style: none; margin: 18px 0; padding: 0; }
.price-list li { padding: .5em 0 .5em 1.8em; position: relative; color: var(--ink-soft); font-size: 14px; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Marquee ---------- */
.marquee { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 40px; animation: marquee 26s linear infinite; }
.marquee-item { font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.marquee-item::before { content:''; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Security band ---------- */
.sec-band { background: var(--ink); color: rgba(255,255,255,.65); border-radius: var(--radius); padding: clamp(32px,5vw,56px); }
.sec-band h2 { color: #fff; }
.sec-band .section-lead { color: rgba(255,255,255,.5); }
.sec-item { display: flex; gap: 14px; align-items: flex-start; }
.sec-item .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(139,109,255,.15); color: var(--accent-mid); flex: 0 0 auto; font-size: 1.3rem; }
.sec-item h4 { color: #fff; margin: 4px 0 4px; font-size: 16px; }
.sec-item p { color: rgba(255,255,255,.5); font-size: 14px; margin: 0; }

/* ---------- Footer (idéntico a improoove.com) ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.5); padding: 80px 0 32px; margin-top: 80px; position: relative; overflow: hidden; }
.site-footer::before { content:''; position:absolute; top:-2px; left:0; right:0; height:4px; background: linear-gradient(90deg, var(--accent), var(--accent-mid), var(--accent)); background-size: 200% 100%; animation: gradSlide 4s ease-in-out infinite; }
@keyframes gradSlide { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.footer-top { display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:60px; margin-bottom:60px; }
@media (max-width: 760px){ .footer-top { grid-template-columns:1fr; gap:34px; } }
.footer-brand .logo { color:#fff; }
.footer-brand .logo .ooo { color: var(--accent-mid); }
.footer-brand > p { font-size:14px; color:rgba(255,255,255,0.4); max-width:260px; line-height:1.7; margin-top:16px; }
.footer-email-link { display:inline-flex; align-items:center; gap:8px; margin-top:20px; font-size:14px; font-weight:500; color:var(--accent-mid); text-decoration:none; transition:all .3s; padding:8px 16px; border:1px solid rgba(139,93,255,0.2); border-radius:8px; }
.footer-email-link:hover { background:rgba(139,93,255,0.1); color:#fff; border-color:var(--accent-mid); }
.footer-col h5 { font-size:12px; font-weight:600; color:rgba(255,255,255,0.6); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:16px; }
.footer-col a { display:block; color:rgba(255,255,255,0.35); text-decoration:none; font-size:14px; padding:5px 0; transition:all .3s; }
.footer-col a:hover { color:#fff; transform:translateX(6px); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-size:12px; color:rgba(255,255,255,0.25); padding-top:24px; border-top:1px solid rgba(255,255,255,0.08); }
.footer-legal { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.footer-legal a { color:rgba(255,255,255,0.35); text-decoration:none; transition:color .3s; }
.footer-legal a:hover { color:#fff; }
.footer-made { display:flex; align-items:center; gap:6px; }
.footer-made .heart { color:var(--accent-mid); }

/* ---------- Utils ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.badge-local { display: inline-flex; align-items: center; gap: .45em; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: .45em .9em; border-radius: 999px; }
.divider { height: 1px; background: var(--line); border: 0; }
.note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 16px 18px; border-radius: 10px; font-size: 14px; color: #3a1f9e; }
.tag-pill { font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 6px; background: rgba(0,0,0,.04); color: var(--ink-soft); }

/* ---------- Seguridad responsive (móvil) ---------- */
@media (max-width: 760px) {
  .cfg-teaser { grid-template-columns: 1fr !important; padding: 28px 24px !important; text-align: left; }
  .cfg-teaser .price-amt, .cfg-teaser [style*="3.4rem"] { font-size: 2.6rem !important; }
}
/* Nada debe forzar scroll horizontal */
html, body { max-width: 100%; }
img, svg, table, pre { max-width: 100%; }
