/* =====================================================================
   OCM Software — hoja de estilos principal (v2, 2026)
   Sin frameworks. Variables en :root, layout con grid/flex.
   ===================================================================== */

/* ---------- Fuentes locales (woff2 en /font, subconjunto latin) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/font/inter-v20-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/font/inter-v20-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/font/inter-v20-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/font/inter-v20-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/font/manrope-v20-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/font/manrope-v20-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/font/manrope-v20-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("/font/manrope-v20-latin-800.woff2") format("woff2"); }

:root {
  --navy: #0f1630;
  --navy-2: #171f3d;
  --ink: #1b2140;
  --text: #2b3150;
  --muted: #5d6480;
  --line: #e4e7f1;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --blue: #00a3d5;
  --blue-dark: #0784ac;
  --violet: #7b3fe0;
  --violet-dark: #5f2bb8;
  --grad: linear-gradient(120deg, #00a3d5 0%, #7b3fe0 100%);
  --grad-soft: linear-gradient(120deg, rgba(0,163,213,.12), rgba(123,63,224,.12));
  --ok: #17a673;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 22, 48, .08);
  --shadow-lg: 0 24px 60px rgba(15, 22, 48, .16);
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #cfd5ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px;
}
.section-dark .eyebrow { background: none; color: #6fd3f3; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section-dark .lead { color: #aeb6d6; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem; font-family: var(--font-head);
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important; line-height: 1.2;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(123,63,224,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(123,63,224,.36); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.section-dark .btn-outline, .hero .btn-outline { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: #fff; }
.section-dark .btn-outline:hover, .hero .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(15,22,48,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08); transition: background .2s;
}
.header.is-light { background: rgba(255,255,255,.9); border-bottom-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #e6e9f6; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.header.is-light .nav a { color: var(--ink); }
.header.is-light .nav a:hover { background: var(--bg-soft); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.header.is-light .nav-toggle span { background: var(--ink); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy); padding: 12px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .header.is-light .nav { background: #fff; }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 10px; }
  .nav .btn { margin: 10px 0 0; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; background: var(--navy); color: #fff;
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 72px); padding-bottom: 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,48,.55) 0%, rgba(15,22,48,.75) 60%, var(--navy) 100%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { color: #c9d0ea; font-size: 1.2rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #aeb6d6; font-size: .9rem; }
.hero-badges span::before { content: "✓"; color: #5fe0b5; font-weight: 800; margin-right: 8px; }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } .hero { padding-bottom: 64px; } }

/* Mock de panel de agente (CSS) */
.mock {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); color: var(--text); overflow: hidden;
  font-size: .82rem; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease;
}
.mock:hover { transform: none; }
.mock-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--navy-2); color: #fff; }
.mock-top b { font-family: var(--font-head); }
.mock-status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: #bfe9d6; }
.mock-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fe0b5; box-shadow: 0 0 0 4px rgba(95,224,181,.25); }
.mock-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; padding: 16px; background: #f7f8fc; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mock-card h4, .mock-card .mock-h { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #4a5070; }
.mock-call { display: flex; align-items: center; gap: 12px; }
.mock-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.mock-call small { color: var(--muted); }
.mock-timer { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; color: #0f7a54; }
.mock-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mock-chips span { padding: 4px 9px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .72rem; }
.mock-chips .wa { background: #e7f9ef; border-color: #b9ecd0; color: #1a7f4b; }
.mock-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpi div { background: var(--bg-soft); border-radius: 8px; padding: 8px; text-align: center; }
.mock-kpi b { display: block; font-size: 1rem; white-space: nowrap; color: var(--ink); font-family: var(--font-head); }
.mock-kpi small { color: var(--muted); font-size: .68rem; }
.mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: 10px; }
.mock-bars i { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; opacity: .85; animation: barGrow 1.4s ease both; }
@keyframes barGrow { from { transform: scaleY(.2); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.mock-queue { list-style: none; margin: 0; padding: 0; }
.mock-queue li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mock-queue li:last-child { border-bottom: 0; }
.mock-queue em { font-style: normal; color: var(--muted); }
.mock-script { background: var(--grad-soft); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: .78rem; line-height: 1.45; }
.mock-script b { color: var(--violet-dark); }
@media (max-width: 560px) { .mock-body { grid-template-columns: 1fr; } .mock { transform: none; } }

/* Franja de confianza */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding-block: 22px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust b { color: var(--ink); font-family: var(--font-head); font-size: 1.25rem; margin-right: 6px; }

/* Grids de tarjetas */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card img.icon { width: 56px; height: 56px; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .card p { color: #aeb6d6; }

/* Canales */
.channel { display: flex; gap: 16px; align-items: flex-start; }
.channel-ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--violet-dark); }
.channel-ico svg { width: 24px; height: 24px; }
.section-dark .channel-ico { background: rgba(255,255,255,.08); color: #8fe0ff; }
.channel h3 { font-size: 1.08rem; margin-bottom: 4px; }
.channel p { margin: 0; font-size: .94rem; }

/* Split (texto + imagen) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }

/* Tabs de roles */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-family: var(--font-head); cursor: pointer; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabpanel { display: none; }
.tabpanel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; animation: fadeUp .35s ease; }
@media (max-width: 900px) { .tabpanel.is-active { grid-template-columns: 1fr; } }
.tabpanel .role-logo { height: 54px; width: auto; margin-bottom: 18px; }
.role-shot { background: var(--navy); border-radius: var(--radius); padding: 22px; color: #dfe4f7; box-shadow: var(--shadow-lg); font-size: .85rem; }
.role-shot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.role-shot li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); padding: 10px 12px; border-radius: 8px; display: flex; justify-content: space-between; gap: 10px; }
.role-shot li b { color: #fff; }
.role-shot .pill { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(95,224,181,.16); color: #8ff0cf; }
.role-shot .pill.warn { background: rgba(255,196,0,.16); color: #ffd866; }
.role-shot .pill.off { background: rgba(255,255,255,.1); color: #bfc6e4; }

/* Planes */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.is-featured { border: 2px solid transparent; background: linear-gradient(#fff,#fff) padding-box, var(--grad) border-box; }
.plan .tag { position: absolute; top: -12px; right: 20px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; }
.plan h3 { font-size: 1.4rem; }
.plan .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: .94rem; flex: 1; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: "•"; position: absolute; left: 6px; color: var(--violet); font-weight: 800; }

/* Tecnologías */
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tech span { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #dfe4f7; font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.04); }

/* Pasos */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px; font-family: var(--font-head); font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; padding: 20px; text-align: center; }
.post-card .thumb.t2 { background: linear-gradient(120deg, #0f1630, #3b2a8a); }
.post-card .thumb.t3 { background: linear-gradient(120deg, #17a673, #00a3d5); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card time { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card p { font-size: .92rem; }
.post-card .more { margin-top: auto; font-weight: 700; color: var(--violet-dark); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 700; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--violet); transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dl { display: grid; gap: 18px; margin: 28px 0; }
.contact-info dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-info dd { margin: 2px 0 0; font-size: 1.02rem; }
.contact-info dd a { color: var(--ink); font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 260px; border: 0; display: block; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfbfe; color: var(--text); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,163,213,.15); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.field-check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .92rem; }
.form-msg.ok { display: block; background: #e7f9ef; color: #146c42; border: 1px solid #b9ecd0; }
.form-msg.err { display: block; background: #fdecec; color: #9b2222; border: 1px solid #f5c2c2; }
.recaptcha { margin-bottom: 16px; }

/* CTA final */
.cta-band { background: var(--grad); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 48px; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band .btn-outline { background: #fff; border-color: #fff; color: var(--violet-dark); }
.cta-band .btn-outline:hover { background: #fff; color: var(--violet-dark); }

/* Footer */
.footer { background: var(--navy); color: #aeb6d6; padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h3, .footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #cfd5ea; }
.footer a:hover { color: #fff; }
.footer .brand img { height: 52px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.social a:hover { background: var(--grad); }
.social svg { width: 16px; height: 16px; fill: #fff; }

/* Widget de contacto flotante */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; box-shadow: 0 12px 30px rgba(123,63,224,.4); display: grid; place-items: center; transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab .ico-close { display: none; }
body.chat-open .chat-fab .ico-chat { display: none; }
body.chat-open .chat-fab .ico-close { display: block; }
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 60; width: min(360px, calc(100vw - 44px));
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line);
  transform: translateY(12px) scale(.98); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s;
}
body.chat-open .chat-panel { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { background: var(--navy); color: #fff; padding: 18px 20px; }
.chat-head b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.chat-head small { color: #aeb6d6; }
.chat-head .online { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #8ff0cf; margin-top: 6px; }
.chat-head .online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fe0b5; }
.chat-body { padding: 14px; display: grid; gap: 8px; background: var(--bg-soft); }
.chat-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.chat-opt:hover { border-color: var(--blue); transform: translateX(2px); }
.chat-opt .ci { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 38px; }
.chat-opt .ci svg { width: 20px; height: 20px; }
.chat-opt small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.ci-wa { background: #e7f9ef; color: #1a7f4b; }
.ci-tel { background: #e8f4fd; color: #0784ac; }
.ci-mail { background: #f0e9ff; color: #5f2bb8; }
.ci-form { background: #fff4e5; color: #b4610b; }
.chat-foot { padding: 10px 14px; font-size: .75rem; color: var(--muted); text-align: center; background: #fff; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .chat-fab { right: 14px; bottom: 14px; } .chat-panel { right: 14px; bottom: 86px; width: calc(100vw - 28px); } }

/* Páginas interiores */
.page-hero { background: var(--navy); color: #fff; padding: calc(var(--header-h) + 56px) 0 56px; margin-top: calc(var(--header-h) * -1); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(123,63,224,.35), transparent); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero .lead { color: #c9d0ea; }
.page-hero .container { position: relative; }
.crumbs { font-size: .85rem; color: #aeb6d6; margin-bottom: 18px; }
.crumbs a { color: #cfd5ea; }
.article { max-width: 780px; margin-inline: auto; font-size: 1.06rem; }
.article h2 { font-size: 1.6rem; margin-top: 2em; }
.article h3 { font-size: 1.2rem; margin-top: 1.6em; }
.article p, .article li { color: var(--text); }
.article blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--violet); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-style: italic; }
.article figure { margin: 2em 0; }
.article figure img { border-radius: var(--radius); }
.article figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .88rem; margin-bottom: 32px; }
.article .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.article .tags span { font-size: .78rem; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); }
.article-cta { margin-top: 48px; padding: 28px; border-radius: var(--radius); background: var(--grad-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.article-cta h3 { margin: 0; }
.legal { max-width: 860px; margin-inline: auto; font-size: .97rem; }
.legal h2, .legal strong u { font-size: 1.25rem; text-decoration: none; display: block; margin-top: 1.8em; color: var(--ink); font-family: var(--font-head); }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin-bottom: .6em; }

/* Animaciones de aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .mock-bars i { animation: none; } .mock { transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Mientras el banner de cookies está visible, el widget sube para no quedar tapado */
body.cookie-banner-open .chat-fab { bottom: calc(22px + var(--cookie-h, 140px)); }
body.cookie-banner-open .chat-panel { bottom: calc(96px + var(--cookie-h, 140px)); }

/* Empresas colaboradoras */
.partner { display: flex; flex-direction: column; text-decoration: none !important; color: var(--text); }
.partner-logo { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 18px; }
.partner-logo img { max-height: 56px; max-width: 220px; width: auto; }
.partner-logo img + .partner-name { display: none; } /* si hay logo, se oculta el texto */
.partner-logo img[style*="none"] + .partner-name { display: inline; }
.partner-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.partner-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.partner h3 { margin-bottom: 8px; }
.partner p { flex: 1; }
.partner-link { margin-top: 16px; font-weight: 700; color: var(--violet-dark); }

/* Selector de idioma */
.lang-switch { position: relative; margin-left: 4px; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid rgba(255,255,255,.25); color: #e6e9f6; font: inherit; font-weight: 700; font-size: .82rem; padding: 6px 10px; border-radius: 8px; cursor: pointer; letter-spacing: .04em; }
.header.is-light .lang-btn { border-color: var(--line); color: var(--ink); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 150px; display: none; z-index: 60; }
.lang-switch.is-open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink) !important; font-weight: 600; font-size: .9rem; }
.lang-menu a:hover { background: var(--bg-soft); text-decoration: none; }
.lang-menu a[aria-current="true"] { background: var(--grad-soft); color: var(--violet-dark) !important; }
.footer-langs { display: flex; gap: 14px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-btn:hover { color: #fff; text-decoration: underline; }
.footer-langs a[aria-current="true"] { color: #fff; font-weight: 700; }
.notice { background: var(--grad-soft); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .92rem; color: var(--ink); margin-bottom: 28px; }
@media (max-width: 960px) {
  .lang-switch { margin: 6px 0 0; }
  .lang-menu { position: static; box-shadow: none; border: 0; background: transparent; padding: 4px 0 0 8px; display: flex; gap: 4px; flex-wrap: wrap; }
  .lang-menu a { color: #e6e9f6 !important; }
  .header.is-light .lang-menu a { color: var(--ink) !important; }
  .lang-btn { display: none; }
}
