/* ==========================================================
   Seguridad vial y telemática | ADAS · DMS · BSD · GPS
   Diseño moderno - v3
   ========================================================== */

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

:root {
    --ink: #0a1628;
    --ink-2: #111f36;
    --ink-3: #1a2b47;
    --primary: #2f80ff;
    --primary-2: #1d6bf0;
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --red: #ef4444;
    --green: #10b981;
    --text: #0f172a;
    --muted: #5b6b82;
    --muted-2: #94a3b8;
    --line: #e5eaf2;
    --bg-soft: #f6f8fc;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, .18);
    --shadow-lg: 0 30px 60px -20px rgba(10, 22, 40, .35);
    --grad: linear-gradient(135deg, #2f80ff 0%, #22d3ee 100%);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 12px; z-index: 1000;
    background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ---------------- Header ---------------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled,
.site-header.solid {
    background: rgba(10, 22, 40, .88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 38px; height: 38px; }
.brand-text { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--white); }
@media (max-width: 480px) { .brand-text { font-size: 1rem; } }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    display: block; padding: 10px 16px; border-radius: 999px;
    color: rgba(255, 255, 255, .82); font-weight: 500; font-size: .94rem;
    transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .12); }
.main-nav .btn { margin-left: 8px; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15);
    color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
    font: 600 .95rem/1 var(--font); cursor: pointer; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 24px -8px rgba(47, 128, 255, .7); }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    color: var(--white); overflow: hidden; isolation: isolate;
    padding: calc(var(--header-h) + 60px) 0 140px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 22, 40, .96) 0%, rgba(10, 22, 40, .82) 42%, rgba(10, 22, 40, .25) 100%),
        linear-gradient(0deg, rgba(10, 22, 40, .9) 0%, transparent 35%);
}
.hero-content { max-width: 680px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: #dbe7ff;
    backdrop-filter: blur(8px); margin-bottom: 26px;
}
.eyebrow .dot {
    background: var(--grad); color: var(--ink); font-weight: 800; font-size: .7rem;
    padding: 3px 9px; border-radius: 999px; letter-spacing: .06em;
}
.eyebrow.light { background: rgba(47, 128, 255, .08); border-color: rgba(47, 128, 255, .18); color: var(--primary-2); }

.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
    line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin-bottom: 24px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c4d1e6; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    font-size: .85rem; color: #dbe4f3;
}
.chip .icon { width: 16px; height: 16px; color: var(--cyan); }

/* Tarjeta flotante de alerta (hero) */
.alert-float {
    position: absolute; right: max(24px, calc((100vw - 1200px) / 2)); bottom: 150px;
    width: 300px; padding: 18px; border-radius: 18px;
    background: rgba(15, 28, 50, .72); border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg); color: var(--white);
}
.alert-float .af-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: .78rem; color: var(--muted-2); }
.live { display: inline-flex; align-items: center; gap: 6px; color: #fca5a5; font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.af-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.af-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.af-ico .icon { width: 18px; height: 18px; }
.af-ico.amber { background: rgba(245, 158, 11, .18); color: var(--amber); }
.af-ico.red { background: rgba(239, 68, 68, .18); color: #f87171; }
.af-ico.blue { background: rgba(47, 128, 255, .2); color: #7fb0ff; }
.af-row b { display: block; font-size: .88rem; font-weight: 600; }
.af-row span { font-size: .76rem; color: var(--muted-2); }

/* Barra de métricas bajo el hero */
.metrics { position: relative; z-index: 2; margin-top: -80px; }
.metrics-card {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid var(--line); overflow: hidden;
}
.metric { padding: 30px 28px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric span { color: var(--muted); font-size: .92rem; }

/* ---------------- Secciones ---------------- */
.section { padding: 120px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.section-dark .kicker { color: var(--cyan); }
.section-head h2, .split-text h2 {
    font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin-bottom: 18px;
}
.section-head p, .split-text > p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p, .section-dark .split-text > p { color: #a9b8cf; }

/* Tarjetas de tecnología con foto */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tech-card {
    position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease; display: flex; flex-direction: column;
}
.tech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tech-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tech-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tech-card:hover .tech-media img { transform: scale(1.06); }
.tech-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 22, 40, .55)); }
.tech-badge {
    position: absolute; left: 18px; bottom: 16px; z-index: 1;
    padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--white);
}
.tech-badge.blue { background: var(--primary); }
.tech-badge.amber { background: var(--amber); color: var(--ink); }
.tech-badge.red { background: var(--red); }
.tech-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tech-body h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.tech-body p { color: var(--muted); font-size: .97rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--primary); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Split con imagen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; }
.split-media .photo.tall { aspect-ratio: 4 / 5; }
.split-media .photo img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
    position: absolute; padding: 16px 18px; border-radius: 16px; background: var(--white);
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; color: var(--text);
    border: 1px solid var(--line); max-width: 280px;
}
.float-card.bl { left: -28px; bottom: 36px; }
.float-card.tr { right: -28px; top: 36px; }
.float-card b { display: block; font-size: .95rem; }
.float-card span { font-size: .8rem; color: var(--muted); }
.fc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.fc-ico.blue { background: rgba(47, 128, 255, .12); color: var(--primary); }
.fc-ico.amber { background: rgba(245, 158, 11, .14); color: #d97706; }
.fc-ico.red { background: rgba(239, 68, 68, .12); color: var(--red); }
.fc-ico.green { background: rgba(16, 185, 129, .12); color: var(--green); }

.feature-list { display: grid; gap: 18px; margin-top: 32px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.fl-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 128, 255, .1); color: var(--primary); flex-shrink: 0; }
.section-dark .fl-ico { background: rgba(34, 211, 238, .12); color: var(--cyan); }
.feature-list b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: .95rem; }
.section-dark .feature-list span { color: #a9b8cf; }

.check-list { display: grid; gap: 12px; margin-top: 26px; }
.check-list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.check-list .icon { width: 22px; height: 22px; color: var(--green); }

/* Grid de servicios */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
    padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.service:hover { border-color: rgba(47, 128, 255, .35); box-shadow: var(--shadow); transform: translateY(-4px); }
.service .s-ico {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
    background: var(--grad); color: var(--white); box-shadow: 0 10px 20px -8px rgba(47, 128, 255, .6);
}
.service h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -.01em; }
.service p { color: var(--muted); font-size: .95rem; }

/* Industrias */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry {
    position: relative; min-height: 460px; border-radius: var(--radius); overflow: hidden; color: var(--white);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; isolation: isolate;
}
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.industry:hover img { transform: scale(1.06); }
.industry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 22, 40, .1) 0%, rgba(10, 22, 40, .92) 70%); }
.industry h3 { font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 14px; }
.industry li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: #d3deef; margin-bottom: 8px; }
.industry li .icon { width: 18px; height: 18px; color: var(--cyan); margin-top: 3px; }

/* Banda de beneficios con foto */
.band { position: relative; color: var(--white); padding: 120px 0; isolation: isolate; overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10, 22, 40, .95), rgba(17, 31, 54, .8)); }
.band .section-head p { color: #b8c6dc; }
.band-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.band-stat { padding: 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); text-align: center; }
.band-stat strong { display: block; font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.band-stat span { color: #b8c6dc; }
.fine { margin-top: 28px; text-align: center; font-size: .8rem; color: #8193ad; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); }
.step::before {
    counter-increment: s; content: "0" counter(s);
    display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: #a9b8cf; font-size: .95rem; }

/* Alertas (ADAS/DMS) */
.alert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.alert-card {
    padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.alert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.alert-card .a-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.alert-card .a-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.alert-card .code { font-size: .72rem; font-weight: 800; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; }
.alert-card.adas .a-ico { background: rgba(47, 128, 255, .1); color: var(--primary); }
.alert-card.adas .code { background: rgba(47, 128, 255, .1); color: var(--primary-2); }
.alert-card.dms .a-ico { background: rgba(245, 158, 11, .12); color: #d97706; }
.alert-card.dms .code { background: rgba(245, 158, 11, .14); color: #b45309; }
.alert-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.alert-card p { color: var(--muted); font-size: .94rem; }

/* Hardware */
.brand-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.brand-strip li {
    padding: 14px 24px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
    font-weight: 700; color: #334155; letter-spacing: -.01em; box-shadow: var(--shadow-sm);
}

/* Page hero (interna) */
.page-hero {
    position: relative; color: var(--white); padding: calc(var(--header-h) + 110px) 0 120px; isolation: isolate; overflow: hidden;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 22, 40, .95) 0%, rgba(10, 22, 40, .75) 55%, rgba(10, 22, 40, .45) 100%); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin-bottom: 20px; max-width: 760px; }
.page-hero p { color: #c4d1e6; font-size: 1.15rem; max-width: 600px; margin-bottom: 34px; }
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--muted-2); margin-bottom: 22px; }
.crumbs a { color: #dbe7ff; }
.crumbs a:hover { text-decoration: underline; }

.anchor-nav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.anchor-nav ul { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; }
.anchor-nav a { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.anchor-nav a:hover { background: var(--bg-soft); color: var(--text); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: rgba(47, 128, 255, .3); }
.faq summary {
    list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 1.03rem;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; color: var(--muted); }

/* CTA */
.cta { padding: 0 0 120px; }
.cta-box {
    position: relative; border-radius: 28px; overflow: hidden; padding: 72px; color: var(--white); isolation: isolate;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(29, 107, 240, .96) 0%, rgba(10, 22, 40, .88) 100%); }
.cta-box h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 12px; }
.cta-box p { color: #dbe7ff; font-size: 1.08rem; }
.cta-box .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-box .btn-primary { background: var(--white); color: var(--ink); box-shadow: none; }
.cta-box .btn-primary:hover { background: #e8f0ff; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-list { display: grid; gap: 22px; margin-top: 36px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .fl-ico { width: 52px; height: 52px; }
.contact-list b { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; }
.contact-list a, .contact-list p { font-weight: 600; font-size: 1.02rem; }
.contact-list a:hover { color: var(--primary); }
.support-photo { margin-top: 36px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.support-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

.form { padding: 40px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form h3 { font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .86rem; font-weight: 600; color: #334155; }
.field input, .field select, .field textarea {
    font: inherit; font-size: .95rem; padding: 13px 15px; border-radius: 12px;
    border: 1px solid #d6deea; background: var(--bg-soft); color: var(--text);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(47, 128, 255, .15);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted-2); margin-top: 12px; text-align: center; }
.form-message { display: none; margin-top: 14px; padding: 13px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.form-message.success { display: block; background: #ecfdf5; color: #047857; }
.form-message.error { display: block; background: #fef2f2; color: #b91c1c; }
.form-message.info { display: block; background: #eff6ff; color: #1d4ed8; }
.form button[type="submit"]:disabled { opacity: .65; cursor: wait; transform: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: #a9b8cf; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-grid .brand { margin-bottom: 18px; }
.footer-grid p { font-size: .94rem; max-width: 320px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; }
.site-footer li { margin-bottom: 11px; font-size: .94rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 24px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Animación de entrada */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .alert-float { display: none; }
    .split { gap: 56px; }
    .float-card.bl { left: 16px; }
    .float-card.tr { right: 16px; }
}

@media (max-width: 980px) {
    .tech-grid, .service-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .steps, .band-stats { grid-template-columns: repeat(2, 1fr); }
    .metrics-card { grid-template-columns: repeat(2, 1fr); }
    .metric:nth-child(2) { border-right: 0; }
    .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .split, .contact-grid, .cta-box { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .cta-box { padding: 48px; }
    .cta-box .cta-actions { justify-content: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 90px 0; }
}

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: rgba(10, 22, 40, .98); padding: 16px 24px 28px;
        transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .main-nav.open { transform: none; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; }
    .main-nav a { padding: 14px 16px; border-radius: 12px; }
    .main-nav .btn { margin: 8px 0 0; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 36px); }
    .tech-grid, .service-grid, .industry-grid, .steps, .band-stats, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .metrics-card { grid-template-columns: 1fr 1fr; }
    .metric { padding: 22px 18px; }
    .metric strong { font-size: 1.8rem; }
    .industry { min-height: 400px; }
    .float-card { position: static; margin-top: 16px; max-width: none; }
    .cta-box, .form { padding: 30px 24px; }
    .hero { padding-bottom: 120px; }
    .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------------- Chat en línea ---------------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 900; font-family: var(--font); }
.chat-widget svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab {
    position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; color: #fff; background: var(--grad);
    box-shadow: 0 12px 28px -8px rgba(47, 128, 255, .65); transition: transform .2s ease;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-widget.open .chat-fab { transform: scale(.9); }
.chat-badge {
    position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
    background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.chat-badge[hidden] { display: none; }
.chat-panel {
    position: absolute; right: 0; bottom: 76px; width: 370px; height: min(560px, calc(100vh - 120px));
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    animation: chat-in .2s ease;
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: #fff; }
.chat-head img { width: 38px; height: 38px; flex-shrink: 0; }
.chat-title { flex: 1; min-width: 0; line-height: 1.25; }
.chat-title b { display: block; font-size: .95rem; }
.chat-title span { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #a9b8cf; }
.chat-title i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }
.chat-close { border: 0; background: transparent; color: #cbd5e1; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; }
.chat-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.chat-close svg { width: 20px; height: 20px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.chat-msg { max-width: 82%; display: flex; flex-direction: column; }
.chat-msg p { margin: 0; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg small { font-size: .7rem; color: var(--muted-2); margin: 3px 6px 0; }
.chat-msg.agent { align-self: flex-start; }
.chat-msg.agent p { background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg.visitor { align-self: flex-end; align-items: flex-end; }
.chat-msg.visitor p { background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg.sending { opacity: .6; }
.chat-msg.failed p { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.chat-msg.failed { cursor: pointer; }
.chat-msg.failed small { color: #b91c1c; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea {
    flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; max-height: 120px;
    font: inherit; font-size: .92rem; color: var(--text); background: var(--bg-soft); outline: none;
}
.chat-form textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(47, 128, 255, .15); }
.chat-form button { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 12px; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-form button:hover { background: var(--primary-2); }
.chat-form button svg { width: 20px; height: 20px; }
@media (max-width: 480px) {
    .chat-widget { right: 14px; bottom: 14px; }
    .chat-panel { position: fixed; inset: auto 8px 86px 8px; width: auto; height: min(70vh, 560px); }
}
@media print { .chat-widget { display: none; } }
