/* ===========================================================
   LIVPRO — Sitio corporativo
   Paleta de marca: azul profundo + acento naranjo
   =========================================================== */

:root {
  --navy-900: #06122b;
  --navy-800: #0b1a3a;
  --navy-700: #0f2350;
  --blue-600: #1746d4;
  --blue-500: #2456e6;
  --blue-400: #3b82f6;
  --orange:   #ff7a18;
  --orange-600: #ef6a06;

  --ink:      #0f1b35;
  --body:     #3c4863;
  --muted:    #6b7690;
  --line:     #e4e8f1;
  --soft:     #f5f7fc;
  --white:    #ffffff;

  --radius:   16px;
  --radius-sm: 10px;
  --shadow:   0 18px 50px rgba(11, 26, 58, 0.10);
  --shadow-sm: 0 6px 20px rgba(11, 26, 58, 0.08);
  --maxw:     1160px;

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; zoom: 0.9; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 700; }

/* ====== Brand logo (imagen) ====== */
.brand-img { height: 48px; width: auto; display: block; }
.footer-logo { height: 42px; margin-bottom: 4px; }
@media (max-width: 560px) { .brand-img { height: 38px; } }

/* ====== Brand wordmark (respaldo CSS, no usado si carga la imagen) ====== */
.brand-mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.62rem;
  letter-spacing: -0.5px;
  color: var(--blue-600);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
/* La "o" final se dibuja como anillo (no como letra) para integrar el cuadrado naranjo */
.brand-o {
  position: relative;
  display: inline-block;
  width: 0.60em;
  height: 0.60em;
  margin-left: 0.05em;
  border: 0.155em solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  align-self: flex-end;   /* apoya el anillo en la línea base */
}
.brand-sq {
  position: absolute;
  top: -0.07em; right: -0.07em;
  width: 0.30em; height: 0.30em;
  background: var(--orange);
  border-radius: 0.06em;
  box-shadow: 0 0 0 0.05em #fff;  /* pequeño respiro entre el cuadrado y el anillo */
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(23,70,212,.28); }
.btn-primary:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23,70,212,.34); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255,122,24,.32); }
.btn-orange:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.7); }
.btn-block { width: 100%; }

/* ====== Header ====== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,26,58,.08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--ink); position: relative; transition: color .15s ease;
}
.nav a:not(.nav-cta):hover { color: var(--blue-600); }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--orange); transition: width .2s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--blue-600); color: #fff !important;
  padding: 9px 20px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(23,70,212,.25);
}
.nav-cta:hover { background: var(--blue-500); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ====== Hero ====== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 88% 28%, rgba(255,122,24,.20), transparent 58%),
    radial-gradient(1000px 760px at 26% 42%, rgba(59,130,246,.42), transparent 62%),
    radial-gradient(700px 520px at 50% 6%, rgba(120,170,255,.18), transparent 60%),
    linear-gradient(135deg, #0a1838 0%, #0a1024 48%, #0b1a40 100%);
}
/* Destellos diagonales (líneas de luz) como en el logo original */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(118deg,
      rgba(255,255,255,0) 0px, rgba(255,255,255,0) 64px,
      rgba(175,205,255,.055) 65px, rgba(175,205,255,.055) 66px,
      rgba(255,255,255,0) 67px),
    repeating-linear-gradient(118deg,
      rgba(255,255,255,0) 0px, rgba(255,255,255,0) 150px,
      rgba(190,215,255,.06) 152px, rgba(190,215,255,.06) 155px,
      rgba(255,255,255,0) 158px);
  mask-image: radial-gradient(1300px 760px at 60% 35%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(1300px 760px at 60% 35%, #000 35%, transparent 92%);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 24px 120px; }
.hero-content { max-width: 720px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: 1.5px; text-transform: uppercase; color: #ffcaa0;
  background: rgba(255,122,24,.12); border: 1px solid rgba(255,122,24,.3);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); color: #fff; font-weight: 800; letter-spacing: -1px; }
.hero h1 .accent { color: #fff; }
.hero h1 .accent { background: linear-gradient(100deg, #ffb27a, var(--orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #c6d2ea; margin: 22px 0 34px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  list-style: none; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 50px;
  max-width: 430px;
}
.hero-trust .stat { flex: 1 1 calc(50% - 7px); }
.hero-trust .stat {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; padding: 16px 22px; min-width: 138px;
  backdrop-filter: blur(6px);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.hero-trust .stat:hover {
  transform: translateY(-5px); border-color: rgba(255,122,24,.6);
  background: rgba(255,122,24,.10); box-shadow: 0 14px 30px rgba(255,122,24,.16);
}
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 2.05rem; line-height: 1; letter-spacing: -1px;
  background: linear-gradient(100deg, #ffd9b8, var(--orange));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-lbl { display: block; margin-top: 8px; font-size: .88rem; color: #aab8d6; }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 90px; background: linear-gradient(transparent, var(--white)); z-index: 1; }

/* ====== Sectors marquee (cinta corriendo) ====== */
.sectors { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: mq-scroll 30s linear infinite; will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .6px; color: var(--navy-800);
  white-space: nowrap;
}
.mq-item::after {
  content: "◆"; color: var(--orange); font-size: .62rem;
  margin: 0 26px; vertical-align: middle; display: inline-block; opacity: .85;
}
@keyframes mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ====== Section base ====== */
.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #c6d2ea; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }
.kicker-light { color: #ffb27a; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 12px 0 14px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head h2 { color: #fff; }

/* ====== Services grid ====== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c9d6f5; }
.service-ico {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem;
  border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(150deg, #eaf0ff, #f4f7ff); border: 1px solid #dce6ff;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { font-size: .96rem; color: var(--muted); }

/* ====== About ====== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 12px 0 18px; }
.about-text p { color: #c6d2ea; margin-bottom: 16px; font-size: 1.05rem; }
.about-text .btn { margin-top: 12px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: 20px 20px; backdrop-filter: blur(4px);
}
.value:first-child { grid-column: 1 / -1; border-color: rgba(255,122,24,.35); background: rgba(255,122,24,.08); }
.value h4 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.value p { color: #aab8d6; font-size: .92rem; }

/* ====== Capacidades ====== */
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.cap-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cap-num { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--blue-400); opacity: .55; min-width: 42px; }
.cap-item h4 { font-size: 1.12rem; margin-bottom: 5px; }
.cap-item p { font-size: .96rem; color: var(--muted); }

/* ====== Casos ====== */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9edf5; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-photo img { transform: scale(1.06); }
.case-body { padding: 24px 26px 28px; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .76rem;
  letter-spacing: .5px; text-transform: uppercase; color: var(--blue-600);
  background: #eaf0ff; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.case-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.case-card p { font-size: .97rem; color: var(--body); margin-bottom: 10px; }
.case-result { color: var(--muted); font-size: .94rem; }
.case-result strong { color: var(--ink); }

/* ====== Clientes ====== */
.clients-strip {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.clients-strip li {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  width: 186px; height: 108px; display: flex; align-items: center; justify-content: center;
  padding: 18px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.clients-strip li img {
  max-width: 100%; max-height: 64px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .7; transition: filter .25s ease, opacity .25s ease;
}
.clients-strip li:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #c9d6f5; }
.clients-strip li:hover img { filter: none; opacity: 1; }

/* ====== CTA band ====== */
.cta-band {
  background:
    radial-gradient(700px 400px at 85% 120%, rgba(255,122,24,.30), transparent 60%),
    linear-gradient(140deg, var(--blue-600), var(--navy-700));
  color: #fff; text-align: center; padding: 76px 0;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.cta-inner p { color: #dbe5ff; font-size: 1.12rem; margin: 14px 0 28px; }

/* ====== Contacto ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .section-sub { text-align: left; margin-bottom: 28px; }
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 12px 0 14px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.ci-ico { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.3rem; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.ci-label { display: block; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.contact-list a { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--blue-600); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfcff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(36,86,230,.12);
}
.field textarea { resize: vertical; }
.contact-form .btn { margin-top: 8px; }
.form-note { margin-top: 14px; font-size: .92rem; color: var(--blue-600); font-weight: 600; text-align: center; }

/* ====== Footer ====== */
.site-footer { background: var(--navy-900); color: #9fb0d0; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-o { color: #fff; }
.footer-brand .brand-sq { box-shadow: 0 0 0 0.05em var(--navy-900); }
.footer-brand p { margin-top: 12px; color: #8294b6; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h5 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-cols ul { list-style: none; display: grid; gap: 9px; }
.footer-cols a { color: #9fb0d0; font-size: .94rem; transition: color .15s ease; }
.footer-cols a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.footer-bottom .copyright { font-size: .88rem; color: #708099; }
.footer-bottom .credit { font-size: .9rem; color: #9fb0d0; }
.footer-bottom .credit a { color: #fff; font-weight: 600; }
.footer-bottom .credit a:hover { color: var(--orange); }

/* ====== WhatsApp FAB ====== */
.wa-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 95; }
.wa-fab {
  position: relative; z-index: 2;
  width: 74px; height: 74px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(37,211,102,.5);
  transition: transform .2s ease;
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-fab:hover { transform: scale(1.08); animation: none; }
@keyframes wa-pulse {
  0% { box-shadow: 0 12px 32px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 12px 32px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 32px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* Globo de mensaje del WhatsApp */
.wa-bubble {
  position: absolute; right: 80px; bottom: 8px; width: 220px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px; padding: 13px 16px;
  font-size: .88rem; line-height: 1.45; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right;
  pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.wa-bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble strong { color: var(--blue-600); font-family: var(--font-head); }
.wa-bubble::after {
  content: ""; position: absolute; right: -7px; bottom: 14px;
  width: 14px; height: 14px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(-45deg);
}
.wa-bubble-x {
  position: absolute; top: 6px; right: 8px; background: none; border: none;
  color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px;
}
.wa-bubble-x:hover { color: var(--ink); }

/* ====== Lanzador del asistente ====== */
.bot-launch {
  position: fixed; right: 24px; bottom: 128px; z-index: 95;
  width: 74px; height: 74px; border-radius: 50%; cursor: pointer;
  background: var(--blue-600); color: #fff; border: none; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(23,70,212,.42); transition: transform .2s ease, background .2s ease;
}
.bot-launch:hover { transform: scale(1.08); background: var(--blue-500); }

/* Globo de etiqueta (hover) para bot y WhatsApp */
.bot-label, .wa-label {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
  font-family: var(--font-head); font-weight: 600; font-size: .86rem;
  box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.bot-label::after, .wa-label::after {
  content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line); border-top: 1px solid var(--line);
}
.bot-launch:hover .bot-label, .bot-label.show,
.wa-fab:hover .wa-label { opacity: 1; transform: translateY(-50%); }
/* al pasar el cursor por WhatsApp, ocultar el globo automático para que no choquen */
.wa-wrap:hover .wa-bubble { opacity: 0; pointer-events: none; transform: translateY(8px) scale(.96); }
.bot-launch-dot {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--orange); color: #fff; border-radius: 999px; border: 2px solid #fff;
  font-family: var(--font-head); font-size: .68rem; font-weight: 800;
  display: grid; place-items: center;
}
body.bot-open .bot-launch, body.bot-open .wa-wrap { opacity: 0; pointer-events: none; transition: opacity .2s ease; }

/* ====== Ventana del asistente ====== */
.bot-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  width: 350px; max-width: calc(100vw - 32px); height: 500px; max-height: calc(100vh - 48px);
  background: #fff; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(6,18,43,.34); border: 1px solid var(--line);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.bot-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.bot-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: #fff;
}
.bot-head-info { display: flex; align-items: center; gap: 11px; }
.bot-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 1.2rem; }
.bot-head-info strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.bot-status { font-size: .76rem; color: #c9d9ff; display: flex; align-items: center; gap: 5px; }
.bot-status i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.bot-close { background: none; border: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: .85; }
.bot-close:hover { opacity: 1; }

.bot-msgs { flex: 1; overflow-y: auto; padding: 18px 16px 6px; background: #f4f6fb; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 10px 14px; font-size: .9rem; line-height: 1.5; border-radius: 14px; }
.msg.bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--blue-600); font-weight: 600; text-decoration: underline; }
.msg.user a { color: #fff; }
.msg.typing { display: inline-flex; gap: 4px; align-items: center; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b6c0d6; animation: bd 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bd { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.bot-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 14px; background: #f4f6fb; }
.bot-chip {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--blue-600);
  background: #eaf0ff; border: 1px solid #d6e1ff; border-radius: 999px; padding: 7px 13px; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.bot-chip:hover { background: #dbe6ff; transform: translateY(-1px); }

.bot-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.bot-input input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font-family: var(--font-body); font-size: .9rem; outline: none; transition: border-color .15s ease; }
.bot-input input:focus { border-color: var(--blue-500); }
.bot-input button { width: 42px; height: 42px; flex-shrink: 0; border: none; border-radius: 50%; background: var(--blue-600); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s ease; }
.bot-input button:hover { background: var(--blue-500); }

/* ====== Reveal animation ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: 0 18px 30px rgba(11,26,58,.12);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cap-list { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 72px 24px 96px; }
  .hero-trust { gap: 24px; }
  .clients-strip li { width: 132px; height: 84px; padding: 14px 18px; }
  .clients-strip li img { max-height: 48px; }
}

/* ====== Filtros interactivos (servicios y casos) ====== */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -18px 0 40px; }
.filter-btn {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--body);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 20px; cursor: pointer; transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.filter-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; box-shadow: 0 8px 18px rgba(23,70,212,.22); }

/* estados de filtrado */
.service-card, .case-card { transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease; }
.service-card.is-hidden, .case-card.is-hidden { display: none; }
.filter-empty { text-align: center; color: var(--muted); font-size: 1rem; padding: 20px 0; }

/* ====== Galería ====== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal-item {
  position: relative; border: none; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: 14px; aspect-ratio: 4 / 3; background: #e9edf5; box-shadow: var(--shadow-sm);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.gal-item:hover img { transform: scale(1.08); }
.gal-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,18,43,.62), transparent 55%);
  opacity: 0; transition: opacity .25s ease;
}
.gal-item:hover::after { opacity: 1; }
.gal-cap {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.gal-item:hover .gal-cap { opacity: 1; transform: none; }

/* ====== Lightbox ====== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 40px;
  background: rgba(6,12,28,.92); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  transition: background .18s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 22px; right: 26px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 32px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* ====== Volver arriba ====== */
.to-top {
  position: fixed; left: 22px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
  background: var(--navy-800); color: #fff; border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--blue-600); }

/* ====== Nav activo (scrollspy) ====== */
.nav a.active:not(.nav-cta) { color: var(--blue-600); }
.nav a.active:not(.nav-cta)::after { width: 100%; }

/* ====== CTA con foto real ====== */
.cta-band {
  position: relative; overflow: hidden;
  background:
    linear-gradient(140deg, rgba(11,26,58,.92), rgba(15,35,80,.82)),
    url("assets/fotos/gal-canal-2.jpg") center/cover no-repeat;
}
.cta-band .cta-inner { position: relative; z-index: 2; }

@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 560px) {
  .filter-bar { margin: -6px 0 30px; gap: 8px; }
  .filter-btn { font-size: .85rem; padding: 8px 16px; }
  .lb-nav { width: 42px; height: 42px; }
}

/* ====== Líneas de negocio ====== */
.lines-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.line-card {
  flex: 1 1 210px; max-width: 264px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
/* Beneficios (microcopys estilo Atlo) */
.benefits-row {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
}
.benefits-row li {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.benefit-ico { font-size: 1.2rem; }
.line-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c9d6f5; }
.line-ico {
  font-size: 1.9rem; width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 16px; margin-bottom: 16px;
  background: linear-gradient(150deg, #eaf0ff, #f4f7ff); border: 1px solid #dce6ff;
}
.line-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.line-card p { font-size: .95rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.line-link { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue-600); }
.line-link:hover { color: var(--orange); }

/* ====== Packaging (sección clara) ====== */
.pack-section { background: var(--soft); }
.pack-section .section-sub strong { color: var(--blue-600); }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pack-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.pack-card:hover { transform: translateY(-5px); border-color: #c9d6f5; box-shadow: var(--shadow); }
.pack-img {
  aspect-ratio: 16 / 10; background: #fff; display: grid; place-items: center; padding: 20px;
  border-bottom: 1px solid var(--line);
}
.pack-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pack-card h3 { color: var(--ink); font-size: 1.1rem; margin: 16px 20px 6px; }
.pack-card p { font-size: .92rem; color: var(--muted); margin: 0 20px 20px; }
.pack-cta {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line);
}
.pack-cta span { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }

@media (max-width: 1024px) {
  .lines-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lines-grid { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REVISIÓN INSTITUCIONAL — sobriedad + componentes del deck
   ============================================================ */

/* --- Tokens más sobrios (naranjo institucional del deck) --- */
:root{ --orange:#f26a1b; --orange-600:#d9560d; --navy-900:#0a1730; --navy-800:#0b1c3f; }

/* --- Hero más plano / institucional --- */
.hero-bg{
  background:
    radial-gradient(900px 520px at 82% 12%, rgba(242,106,27,.14), transparent 60%),
    linear-gradient(140deg, #0b1c3f 0%, #0a1730 55%, #0b1f47 100%);
}
.hero-bg::after{ opacity:.5; }
.hero h1 .accent{ -webkit-text-fill-color:initial; background:none; color:var(--orange); }
.stat-num{ -webkit-text-fill-color:initial; background:none; color:var(--orange); }

/* --- Íconos SVG genéricos --- */
svg use{ pointer-events:none; }

/* --- Servicios principales (4 categorías con bullets) --- */
.cat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.cat-card{
  background:#fff; border:1px solid var(--line); border-radius:16px; padding:26px 26px 22px;
  box-shadow:var(--shadow-sm); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); border-color:#cdd7ea; }
.cat-head{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.cat-ico{ flex:0 0 auto; width:52px; height:52px; border-radius:13px; background:#eef2f8; display:grid; place-items:center; }
.cat-ico svg{ width:26px; height:26px; color:var(--navy-800); }
.cat-card h3{ font-size:1.12rem; color:var(--navy-800); line-height:1.2; }
.cat-n{ color:var(--orange); font-weight:800; }
.cat-list{ list-style:none; margin:0; }
.cat-list li{ position:relative; padding-left:18px; font-size:.94rem; color:var(--body); line-height:1.5; margin:7px 0; }
.cat-list li::before{ content:""; position:absolute; left:0; top:9px; width:6px; height:6px; border-radius:50%; background:var(--orange); }
.cat-link{ display:inline-block; margin-top:14px; font-family:var(--font-head); font-weight:600; font-size:.9rem; color:var(--blue-600); }
.cat-link:hover{ color:var(--orange); }

/* --- Nosotros: compromisos con ícono --- */
.about-values{ display:flex; flex-direction:column; gap:14px; }
.commit-head{ font-family:var(--font-head); font-weight:700; font-size:.82rem; letter-spacing:1px; text-transform:uppercase; color:#ffb27a; margin-bottom:2px; }
.value{ display:flex; align-items:flex-start; gap:14px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:14px 16px; }
.value-ico{ flex:0 0 auto; width:40px; height:40px; border-radius:10px; background:rgba(255,255,255,.08); display:grid; place-items:center; }
.value-ico svg{ width:21px; height:21px; color:#ffb27a; }
.value p{ color:#c6d2ea; font-size:.94rem; line-height:1.45; padding-top:3px; }

/* --- Enfoque de proveedor integral --- */
.enfoque-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.enf-item{ display:flex; align-items:flex-start; gap:14px; background:var(--soft); border:1px solid var(--line); border-radius:12px; padding:18px 20px; }
.enf-ico{ flex:0 0 auto; width:38px; height:38px; }
.enf-ico svg{ width:38px; height:38px; color:var(--orange); }
.enf-item p{ font-size:1rem; color:var(--ink); line-height:1.45; padding-top:6px; font-weight:500; }
.enfoque-note{ margin-top:22px; text-align:center; max-width:820px; margin-left:auto; margin-right:auto; color:var(--muted); font-size:1rem; line-height:1.6; }

/* --- Cartera comercial (clientes, texto) --- */
.clients-list{ list-style:none; display:grid; grid-template-columns:repeat(3,1fr); gap:14px 26px; max-width:900px; margin:0 auto; }
.clients-list li{ display:flex; align-items:center; gap:11px; font-family:var(--font-head); font-weight:600; font-size:1.05rem; color:var(--navy-800); padding:12px 16px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-sm); }
.cl-ico{ flex:0 0 auto; width:22px; height:22px; color:var(--orange); }

/* --- Contacto: íconos SVG --- */
.ci-ico{ display:grid; place-items:center; }
.ci-ico svg{ width:22px; height:22px; color:var(--blue-600); }

/* --- Sobriedad: menos zoom/animación --- */
.gal-item:hover img{ transform:scale(1.035); }
.pack-card:hover{ transform:translateY(-3px); }
.wa-fab{ animation:none; }
.reveal{ transform:translateY(14px); }

/* --- Bot: avatar sobrio --- */
.bot-avatar{ display:grid; place-items:center; }
.bot-avatar svg{ color:#fff; }

/* --- Responsive de los nuevos bloques --- */
@media (max-width:900px){
  .cat-grid{ grid-template-columns:1fr; }
  .enfoque-grid{ grid-template-columns:1fr; }
  .clients-list{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .clients-list{ grid-template-columns:1fr; }
}
