/* SERGAMA · landing. Colores tomados de sergama.com.ve: verde #5ca570 y azul marino #1f2b7b; fuentes Teko + Barlow. */
:root {
  --navy: #1f2b7b;
  --navy-deep: #0f1650;
  --navy-ink: #151d5e;
  --green: #5ca570;
  --green-bright: #7cc48f;
  --green-text: #3b7d4f;      /* verde con contraste suficiente sobre blanco */
  --paper: #f6f7fb;
  --paper-2: #eef1f8;
  --white: #ffffff;
  --ink: #161a3a;
  --muted: #59607d;
  --line: #e1e5f0;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 22, 80, .06), 0 12px 32px -12px rgba(15, 22, 80, .22);
  --display: 'Teko', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --nav-h: 76px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--navy); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; border-radius: 6px; }

/* ── Botones ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px -6px rgba(92, 165, 112, .7); }
.btn-green:hover { background: #4f9663; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: 600 16px var(--body); color: inherit; text-decoration: none; cursor: pointer; }
.link-arrow::after { content: '→'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Barra superior y navegación ───────────────────────────────── */
.topbar { background: var(--navy-deep); color: #c9cff0; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topbar-links { display: flex; gap: 20px; }
.topbar a { text-decoration: none; } .topbar a:hover { color: #fff; }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 22, 80, .5); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.brand img { height: 52px; width: auto; }
.menu { display: flex; gap: 28px; margin-right: auto; }
.menu a { position: relative; font-weight: 600; font-size: 15.5px; color: var(--ink); text-decoration: none; padding: 6px 0; }
.menu a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--green); transition: right .2s; }
.menu a:hover::after { right: 0; }
.menu-mobile-only { display: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 0; background:
  radial-gradient(900px 500px at 85% 10%, rgba(92, 165, 112, .28), transparent 60%),
  linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%); border-radius: 0 0 48px 48px; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green-bright); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 0 rgba(124, 196, 143, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(124, 196, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 196, 143, 0); } }
.hero h1 { margin: 14px 0 18px; font: 500 clamp(44px, 5.5vw, 80px)/.9 var(--display); letter-spacing: .005em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--green-bright); white-space: nowrap; background: linear-gradient(var(--green), var(--green)) 0 78% / 100% .07em no-repeat; animation: underline 1s .5s both cubic-bezier(.2, .8, .2, 1); }
@keyframes underline { from { background-size: 0 .07em; } }
.lead { max-width: 34em; font-size: 19px; color: #d5daf5; }
.track { margin: 26px 0 18px; padding: 16px; max-width: 540px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.track-label { display: block; margin-bottom: 8px; font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #c9cff0; }
.track-row { display: flex; gap: 8px; }
.track input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 0; font: 500 16px var(--mono); color: var(--ink); background: #fff; text-transform: uppercase; }
.track input::placeholder { font-family: var(--body); text-transform: none; color: #8a90ab; }
.track .btn { min-height: 48px; }
.track small { display: block; margin-top: 8px; color: #a9b0d8; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 40px; color: #fff; }

.hero-visual { position: relative; margin: 0; }
.route-map { width: 100%; height: auto; overflow: visible; }
.route { stroke: url(#gRoute); stroke-width: 3; stroke-dasharray: 2 10; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.hub { fill: var(--green-bright); stroke: #fff; stroke-width: 4; }
.node { fill: var(--navy-deep); stroke: var(--green-bright); stroke-width: 3; }
.labels text { font: 500 11px var(--mono); fill: #b9c0e6; letter-spacing: .08em; }
.labels .lbl-hub { fill: #fff; font-size: 11.5px; }
.waybill { position: absolute; right: -8px; top: -44px; width: min(260px, 66%); padding: 16px 18px 12px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); transform: rotate(-2deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-2deg) translateY(-8px); } }
.wb-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pill { padding: 3px 10px; border-radius: 999px; font: 600 12px var(--body); }
.pill-green { background: #e3f3e7; color: var(--green-text); }
.wb-route { display: flex; align-items: center; gap: 8px; margin: 12px 0; font: 500 24px/1 var(--display); color: var(--navy); }
.wb-route i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 10px); }
.wb-steps { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.wb-steps li { position: relative; padding: 3px 0 3px 22px; color: #8a90ab; }
.wb-steps li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #c8cde0; background: #fff; }
.wb-steps li.done { color: var(--ink); } .wb-steps li.done::before { background: var(--green); border-color: var(--green); }
.wb-steps li.now { color: var(--navy); font-weight: 600; } .wb-steps li.now::before { border-color: var(--green); box-shadow: 0 0 0 4px #e3f3e7; }
.wb-note { margin: 8px 0 0; font-size: 11px; color: #a0a6bf; text-align: right; }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.stat { padding: 26px 20px 34px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 500 54px/.9 var(--display); color: var(--green-bright); }
.stat span { color: #c9cff0; font-size: 15px; }

/* ── Encabezados de sección ────────────────────────────────────── */
section { padding: 104px 0; }
.sec-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 { font: 500 clamp(38px, 4.6vw, 60px)/.95 var(--display); color: var(--navy); text-wrap: balance; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.sec-head-split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; text-align: left; }
.eyebrow { margin-bottom: 10px !important; font: 700 13px var(--body) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--green-text) !important; }
.eyebrow-light { color: var(--green-bright) !important; }

/* ── Accesos ───────────────────────────────────────────────────── */
.access { background: var(--paper); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.acard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 30px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.acard:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15, 22, 80, .06), 0 24px 48px -16px rgba(15, 22, 80, .3); }
.acard h3 { font: 500 34px/1 var(--display); color: var(--navy); }
.acard p { color: var(--muted); flex: 1; }
.acard .btn { align-self: flex-start; }
.acard-feature { background: linear-gradient(170deg, #fff 0%, #f0f8f2 100%); border-color: #cfe7d6; }
.ribbon { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: 999px; background: var(--green); color: #fff; font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.acard-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--paper-2); }
.acard-ico svg { width: 38px; height: 38px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.acard-ico .accent { stroke: var(--green); } .acard-ico .fill { fill: var(--green); stroke: none; }
.ico-bot { background: #dff0e4; }

/* ── Servicios ─────────────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { position: relative; padding: 36px 32px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .2s; overflow: hidden; }
.svc::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--green); transition: width .35s; }
.svc:hover { background: var(--paper); } .svc:hover::before { width: 100%; }
.svc-n { position: absolute; top: 28px; right: 28px; font-size: 13px; color: #a6acc6; }
.svc-ico { width: 52px; height: 52px; margin-bottom: 22px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-ico .accent { stroke: var(--green); }
.svc h3 { font: 500 30px/1 var(--display); color: var(--navy); margin-bottom: 10px; }
.svc p { color: var(--muted); margin: 0; }

/* ── Cómo trabajamos ───────────────────────────────────────────── */
.flow { background: var(--navy-deep); color: #fff; border-radius: 48px; margin: 0 16px; }
.flow .sec-head h2 { color: #fff; } .flow .sec-head p { color: #c3c9ec; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 25px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--green-bright) 0 8px, transparent 8px 16px); opacity: .7; }
.timeline li { position: relative; padding: 0 14px; text-align: center; }
.tl-n { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy-deep); border: 2px solid var(--green-bright); font: 500 28px/1 var(--display); color: var(--green-bright); padding-top: 4px; }
.timeline li:last-child .tl-n { background: var(--green); color: #fff; border-color: var(--green); }
.timeline h3 { font: 500 26px/1 var(--display); margin-bottom: 8px; }
.timeline p { color: #c3c9ec; font-size: 15.5px; margin: 0; }

/* ── Empresa ───────────────────────────────────────────────────── */
.company-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.company-year { display: flex; flex-direction: column; font: 500 clamp(140px, 19vw, 260px)/.78 var(--display); color: var(--navy); letter-spacing: -.01em; }
.company-year span:last-child { color: transparent; -webkit-text-stroke: 3px var(--green); }
.company-copy h2 { font: 500 clamp(36px, 4vw, 54px)/.95 var(--display); color: var(--navy); margin-bottom: 18px; text-wrap: balance; }
.company-copy p { color: var(--muted); }
blockquote { margin: 26px 0 0; padding: 18px 22px; border-left: 4px solid var(--green); background: var(--paper); border-radius: 0 14px 14px 0; font: 600 italic 19px var(--body); color: var(--navy); }

/* ── Contacto ──────────────────────────────────────────────────── */
.contact { background: var(--paper); padding-top: 104px; }
.contact .sec-head-split p { margin: 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ccard { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.ccard h3 { font: 700 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green-text); margin-bottom: 8px; }
.ccard a { font: 500 26px/1.15 var(--display); color: var(--navy); text-decoration: none; }
.ccard a:hover { color: var(--green-text); }
.ccard a.wa { margin-top: auto; padding-top: 10px; font: 600 15px var(--body); color: var(--green-text); }
.ccard-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.ccard-dark h3 { color: var(--green-bright); }
.ccard-dark a { color: #fff; font: 600 15px var(--body); margin-top: auto; padding-top: 10px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 15px; }
.hours dt { color: #c3c9ec; } .hours dd { margin: 0; font-weight: 600; text-align: right; }

/* ── Pie ───────────────────────────────────────────────────────── */
.footer { background: var(--navy-deep); color: #c3c9ec; padding: 72px 0 0; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.f-brand img { width: 80px; height: auto; margin-bottom: 14px; }
.f-brand p { max-width: 26em; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col h4 { font: 700 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.f-col a { text-decoration: none; } .f-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.social a:hover { background: var(--green); border-color: var(--green); }
.social svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social .fill { fill: #fff; stroke: none; }
.f-legal { display: flex; justify-content: space-between; gap: 16px; padding: 22px 190px 30px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: #8f97c7; }

/* ── Aparición al desplazarse ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Asistente ─────────────────────────────────────────────────── */
.bot-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: 700 16px var(--body); cursor: pointer; box-shadow: 0 14px 30px -10px rgba(31, 43, 123, .55), 0 0 0 6px rgba(92, 165, 112, .18); transition: transform .2s, opacity .2s; }
.bot-fab:hover { transform: translateY(-2px); }
.bot-fab svg { width: 24px; height: 24px; fill: #fff; }
.bot-fab.hide { opacity: 0; pointer-events: none; transform: scale(.8); }
.bot-teaser { position: fixed; right: 22px; bottom: 94px; z-index: 59; width: 270px; padding: 14px 34px 14px 16px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); cursor: pointer; animation: botIn .35s cubic-bezier(.2, .8, .2, 1); }
.bot-teaser[hidden] { display: none; }
.bot-teaser strong { display: block; font: 500 22px/1 var(--display); color: var(--navy); margin-bottom: 4px; padding-top: 2px; }
.bot-teaser span { font-size: 14px; color: var(--muted); }
.teaser-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.teaser-x:hover { background: var(--paper-2); }
.bot { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 400px; height: min(700px, calc(100vh - 44px)); height: min(700px, calc(100dvh - 44px)); display: flex; flex-direction: column; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(15, 22, 80, .55), 0 0 0 1px rgba(15, 22, 80, .08); transform-origin: bottom right; animation: botIn .25s cubic-bezier(.2, .8, .2, 1); }
.bot[hidden] { display: none; }
@keyframes botIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.bot-mark { width: 42px; height: 42px; padding: 7px 5px; border-radius: 12px; background: #fff; }
.bot-title { flex: 1; min-width: 0; }
.bot-title strong { display: block; font: 500 24px/1 var(--display); letter-spacing: .02em; padding-top: 3px; }
.bot-title small { display: block; font-size: 12.5px; color: #c3c9ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); cursor: pointer; }
.bot-icon:hover { background: rgba(255, 255, 255, .24); }
.bot-icon[hidden] { display: none; }
.bot-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bot-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--paper); }
.bot-login { padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.bot-login[hidden] { display: none; }
.bot-hello h3 { font: 500 30px/1 var(--display); color: var(--navy); margin-bottom: 6px; }
.bot-hello p { color: var(--muted); font-size: 15px; margin: 0; }
.bot-login label { display: flex; flex-direction: column; gap: 5px; font: 600 13px var(--body); color: var(--ink); }
.bot-login input, .bot-field { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #cfd4e4; background: #fff; font: 500 15px var(--body); color: var(--ink); width: 100%; }
.bot-login input:focus, .bot-field:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(92, 165, 112, .22); }
.pwd { position: relative; display: block; }
.pwd input { padding-right: 46px; }
.pwd-eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.pwd-eye svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.pwd-eye.on svg { stroke: var(--green-text); }
.bot-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #a12a2a; font-size: 14px; }
.bot-error[hidden] { display: none; }
.bot-fine { font-size: 13px; color: var(--muted); margin: 0; }
.bot-fine a { color: var(--green-text); font-weight: 600; }
.bot-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bot-chat[hidden] { display: none; }
.bot-feed { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.msg.me { align-items: flex-end; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.bubble p { margin: 0; min-height: 1em; }
.msg.me .bubble { border-radius: 16px 16px 4px 16px; background: var(--navy); color: #fff; border-color: var(--navy); }
.bubble.ok { border-color: #bfe0c8; background: #eef8f1; }
.bubble.warn { border-color: #f2d49b; background: #fff8e8; }
.bubble.err { border-color: #f1c0c0; background: #fdf1f1; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.opts button { padding: 8px 13px; border: 1.5px solid var(--green); border-radius: 18px; background: #fff; color: var(--green-text); font: 600 13.5px var(--body); cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.opts button:hover, .opts button:focus-visible { background: var(--green); color: #fff; }
.opts button.primary { background: var(--green); color: #fff; }
.opts button.primary:hover { background: #4f9663; }
.opts button.quiet { border-color: #cfd4e4; color: var(--muted); }
.opts button.quiet:hover { background: var(--paper-2); color: var(--ink); }
.opts button.addr { display: block; width: 100%; border-radius: 12px; }
.opts button.addr small { display: block; font-weight: 500; color: inherit; opacity: .8; }
.opts.used button { opacity: .45; pointer-events: none; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.links a, .links button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--green-text); font: 600 12.5px var(--body); text-decoration: none; cursor: pointer; }
.summary { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.summary li { padding: 6px 0; border-top: 1px dashed var(--line); }
.summary b { color: var(--navy); }
.typing { display: flex; gap: 4px; padding: 13px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa0bd; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.bot-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.bot-input input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid #cfd4e4; font: 500 15px var(--body); color: var(--ink); }
.bot-input input:focus { outline: none; border-color: var(--green); }
.bot-input button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--green); display: grid; place-items: center; cursor: pointer; }
.bot-input button svg { width: 20px; height: 20px; fill: #fff; }
.bot-input input:disabled, .bot-input button:disabled { opacity: .5; }
.inline-form { display: flex; gap: 6px; width: 100%; }
.inline-form .bot-field { flex: 1; min-width: 0; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10, 14, 50, .8); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 26px; cursor: pointer; }

/* ── Adaptable ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .menu { gap: 18px; }
  .nav-cta .btn-ghost { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin-inline: auto; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .topbar { display: none; }
  .brand img { height: 42px; }
  .burger { display: block; }
  .menu { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15, 22, 80, .4); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a::after { display: none; }
  .menu-mobile-only { display: block; }
  .nav.open .menu { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .burger span:nth-child(2) { opacity: 0; }
  .nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-in { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn-green { min-height: 40px; padding: 0 14px; font-size: 14px; }
  section { padding: 72px 0; }
  .hero { padding-top: 44px; border-radius: 0 0 28px 28px; }
  .waybill { position: relative; right: auto; bottom: auto; margin: -30px auto 0; transform: rotate(-1.5deg); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 14px 24px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .stat b { font-size: 44px; }
  .sec-head-split { grid-template-columns: 1fr; gap: 12px; }
  .cards3, .svc-grid { grid-template-columns: 1fr; }
  .flow { margin: 0; border-radius: 28px; }
  .timeline { grid-template-columns: 1fr; text-align: left; }
  .timeline li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; text-align: left; padding: 0; }
  .timeline .tl-n { grid-row: span 2; margin: 0; }
  .company-in { grid-template-columns: 1fr; gap: 24px; }
  .company-year { flex-direction: row; gap: 4px; font-size: 120px; }
  .contact-grid, .footer-in { grid-template-columns: 1fr; }
  .f-legal { flex-direction: column; padding: 22px 0 96px; }
  .bot { inset: 0; width: auto; height: auto; border-radius: 0; }
  .bot-fab { right: 16px; bottom: 16px; }
}
@media (max-width: 420px) {
  .nav-cta .btn-green { display: none; }
  .track-row { flex-direction: column; }
  .track input { flex: none; }
  .hero-actions { gap: 16px; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.f-logo img { margin: 0; }
.f-logo span { font: 500 34px/1 var(--display); letter-spacing: .08em; color: #fff; padding-top: 4px; }

/* ── Cinta «Rediseñado» ────────────────────────────────────────── */
.ribbon-navy { background: var(--navy); }

/* ── Hero: capturas del portal rotando sobre el mapa animado ───── */
.hero-visual { padding: 28px 0 56px 28px; }
.route-map-bg { position: absolute; inset: -4% -6% 0 -10%; width: 116%; height: auto; opacity: .7; pointer-events: none; }
.shots { position: relative; z-index: 2; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.shots-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef1f8; border-bottom: 1px solid var(--line); }
.shots-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9cee0; }
.shots-bar i:first-child { background: #f08a80; } .shots-bar i:nth-child(2) { background: #f3c969; } .shots-bar i:nth-child(3) { background: var(--green-bright); }
.shots-bar span { margin-left: 10px; flex: 1; min-width: 0; padding: 3px 10px; border-radius: 6px; background: #fff; font: 500 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shots-stage { position: relative; aspect-ratio: 16 / 10; background: #f6f7fb; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 4.5s ease; }
.shot.is-on { opacity: 1; transform: scale(1); }
.shots-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(15, 22, 80, .55); backdrop-filter: blur(6px); }
.shots-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .25s, background .25s; }
.shots-dots button[aria-current="true"] { width: 22px; background: var(--green-bright); }
.hero-visual .waybill { top: auto; right: auto; left: -6px; bottom: 0; z-index: 3; width: min(250px, 58%); }

@media (max-width: 1080px) {
  .hero-visual { padding: 12px 0 64px; max-width: 680px; }
  .shots { transform: none; }
}
@media (max-width: 860px) {
  .hero-visual { padding: 8px 0 0; }
  .route-map-bg { inset: -6% -10% auto -10%; width: 120%; }
  .hero-visual .waybill { position: relative; left: auto; bottom: auto; margin: -24px auto 0; width: min(290px, 86%); }
}
@media (prefers-reduced-motion: reduce) {
  .shot { transition: none; transform: none; }
}
/* Mapa visible alrededor del marco: el marco va a la derecha y la guía en su esquina inferior derecha */
@media (min-width: 1081px) {
  .hero-visual { padding: 34px 0 86px; }
  .route-map-bg { inset: -2% auto auto -12%; width: 112%; opacity: .8; }
  .shots { width: 76%; margin-left: auto; }
  .hero-visual .waybill { left: auto; right: -14px; bottom: 0; width: 220px; }
  .hero-visual .waybill .wb-route { font-size: 21px; margin: 8px 0; }
  .hero-visual .waybill .wb-steps { font-size: 12.5px; }
}
.hero-copy, .hero-visual { min-width: 0; }
.hero-visual { width: 100%; }
@media (max-width: 860px) {
  .shots { width: 92%; margin-left: auto; }
}

/* ── Alternancia: mapa animado completo ↔ capturas del portal ──── */
.hero-visual { position: relative; }
.route-map-bg { transition: opacity .9s ease, transform .9s ease; }
.shots { transition: opacity .7s ease, transform .7s ease, visibility 0s linear 0s; }
.hero-visual.is-map .route-map-bg { opacity: 1; transform: translateX(10%) scale(1.04); }
.hero-visual.is-map .shots { opacity: 0; visibility: hidden; pointer-events: none; transform: perspective(1400px) rotateY(-6deg) translateY(18px) scale(.95); transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s; }
.hero-visual:not(.is-map) .route-map-bg { opacity: .55; }
/* puntos fuera del marco, para que también se vean sobre el mapa */
.shots-dots { position: absolute; z-index: 4; left: 0; bottom: 18px; transform: none; }
.shots-dots .dot-map { width: 14px; background: transparent; box-shadow: inset 0 0 0 2px var(--green-bright); }
.shots-dots .dot-map[aria-current="true"] { width: 26px; background: var(--green-bright); box-shadow: none; }
@media (max-width: 1080px) {
  .hero-visual.is-map .route-map-bg { transform: none; }
}
@media (max-width: 860px) {
  .shots-dots { position: relative; left: auto; bottom: auto; width: max-content; margin: 14px auto 0; }
  .hero-visual.is-map .route-map-bg { inset: 0 -6% auto -6%; width: 112%; }
}
@media (prefers-reduced-motion: reduce) {
  .route-map-bg, .shots { transition: none; }
}
@media (max-width: 860px) {
  .hero-visual .waybill { margin-top: 14px; }
}

/* ── Asistente: respuestas con formato (tablas y ficha) ────────── */
.bubble.wide { max-width: 100%; width: 100%; padding: 10px; }
.rt-intro { font-weight: 700; color: var(--navy); margin-bottom: 6px !important; }
.rt-prompt { margin-top: 10px !important; color: var(--muted); }
.rt-box { margin-top: 4px; }
.rt-wrap { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; overscroll-behavior: contain; }
.rt { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.3; }
.rt th { position: sticky; top: 0; z-index: 1; padding: 7px 8px; background: var(--paper-2); color: var(--muted); font: 700 11px var(--body); letter-spacing: .04em; text-transform: uppercase; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.rt td { padding: 7px 8px; border-bottom: 1px solid #eef0f6; vertical-align: top; white-space: nowrap; }
.rt td.wrap { white-space: normal; min-width: 110px; max-width: 170px; }
.rt td.mono { font: 500 11.5px var(--mono); color: var(--navy); }
.rt .num { text-align: right; }
.rt tbody tr:last-child td { border-bottom: 0; }
.rt tr.open { cursor: pointer; transition: background .12s; }
.rt tr.open:hover, .rt tr.open:focus-visible { background: #eef8f1; outline: none; }
.rt tr.open:hover td.mono { color: var(--green-text); text-decoration: underline; }
.rt-hint { margin: 6px 2px 0 !important; font-size: 12px; color: var(--muted); }
.rt-badge { display: inline-block; padding: 2px 8px; border: 1px solid #cfd4e4; border-radius: 999px; font: 600 11px var(--body); white-space: nowrap; color: var(--muted); background: var(--paper); }
.rd { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; }
.rd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rd-head strong { font-size: 13px; color: var(--navy); }
.rd-fields { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; font-size: 13px; }
.rd-fields dt { color: var(--muted); }
.rd-fields dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rd-note { margin: 10px 0 0 !important; padding: 8px 10px; border-radius: 8px; background: #eef8f1; color: var(--green-text); font-weight: 600; font-size: 13px; }
.rd-sub { margin: 12px 0 6px !important; font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rd-time { list-style: none; margin: 0; padding: 0 0 0 4px; max-height: 190px; overflow: auto; }
.rd-time li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 4px 0 4px 18px; font-size: 12.5px; border-left: 2px solid var(--line); margin-left: 4px; }
.rd-time li::before { content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #c8cde0; }
.rd-time li.now::before { background: var(--green); box-shadow: 0 0 0 3px #dff0e4; }
.rd-time li.now span { font-weight: 700; color: var(--navy); }
.rd-time time { color: var(--muted); white-space: nowrap; font-size: 12px; }
