/* ============================================
   SISTEMAS DE SEGURIDAD GPS - Estilos
   Modo noche (default) + Modo día (light)
   ============================================ */

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

/* ============ MODO NOCHE (default) ============ */
:root {
    --white: #ffffff;
    --gray: #b8b9bb;
    --vinotinto: #9b1209;
    --vinotinto-light: #c41a0f;
    --vinotinto-dark: #6b0d06;
    --yellow: #d49014;
    --yellow-light: #eaa52c;

    --bg-900: #0d0605;
    --bg-800: #140807;
    --bg-700: #1c0c0a;
    --bg-600: #26120f;

    --text: #f5f2f0;
    --text-dim: #a7a1a0;
    --text-mute: #6d6663;

    --border: rgba(255,255,255,0.08);
    --border-hi: rgba(255,255,255,0.14);

    --header-bg: rgba(13,6,5,0.82);
    --grid-line: rgba(155,18,9,0.09);
    --map-grid-line: rgba(255,255,255,0.05);
    --map-bg: #140807;
    --vehicle-dot: #ffffff;
    --hover-bg: rgba(255,255,255,0.02);
    --hover-bg-hi: rgba(255,255,255,0.04);
    --toggle-bg: rgba(255,255,255,0.04);
    --toggle-bg-hover: rgba(255,255,255,0.08);

    --grad: linear-gradient(135deg, #9b1209 0%, #d49014 100%);
    --grad-warm: linear-gradient(135deg, #d49014 0%, #eaa52c 100%);
    --grad-vino: linear-gradient(135deg, #9b1209 0%, #c41a0f 100%);

    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;

    --shadow-glow: 0 0 40px rgba(155,18,9,0.25);
    --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.6);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ============ MODO DÍA ============ */
[data-theme="light"] {
    --bg-900: #ffffff;
    --bg-800: #f8f6f5;
    --bg-700: #efecea;
    --bg-600: #e4e0de;

    --text: #1a1210;
    --text-dim: #5a4a45;
    --text-mute: #8a7a75;

    --border: rgba(0,0,0,0.08);
    --border-hi: rgba(0,0,0,0.14);

    --header-bg: rgba(255,255,255,0.88);
    --grid-line: rgba(155,18,9,0.07);
    --map-grid-line: rgba(0,0,0,0.07);
    --map-bg: #fbf9f8;
    --vehicle-dot: #1a1210;
    --hover-bg: rgba(0,0,0,0.02);
    --hover-bg-hi: rgba(0,0,0,0.04);
    --toggle-bg: rgba(0,0,0,0.04);
    --toggle-bg-hover: rgba(0,0,0,0.08);

    --shadow-glow: 0 0 40px rgba(155,18,9,0.08);
    --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg-900);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-900); }
::-webkit-scrollbar-thumb { background: var(--bg-600); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--vinotinto); }

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155,18,9,0.14) 0%, transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    will-change: transform;
    transition: opacity .3s;
}
[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(155,18,9,0.07) 0%, transparent 60%);
}
@media (max-width: 900px) { .cursor-glow { display: none; } }

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-gradient-warm {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 16px;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--full { width: 100%; }

.btn--primary {
    background: var(--grad-vino);
    color: var(--white);
    box-shadow: 0 8px 30px -8px rgba(155,18,9,0.55);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(155,18,9,0.85);
}
.btn--primary svg { transition: transform .35s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
    background: var(--toggle-bg);
    border: 1px solid var(--border-hi);
    color: var(--text);
    backdrop-filter: blur(10px);
}
.btn--ghost:hover {
    background: var(--toggle-bg-hover);
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}

.btn--emergency {
    background: var(--grad-warm);
    color: #2a1500;
    padding: 20px 36px;
    font-size: 17px;
    font-weight: 700;
    position: relative;
    box-shadow: 0 10px 40px -8px rgba(212,144,20,0.65);
    animation: emergencyPulse 2.4s var(--ease) infinite;
}
.btn--emergency:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 50px -8px rgba(212,144,20,0.95);
}
@keyframes emergencyPulse {
    0%, 100% { box-shadow: 0 10px 40px -8px rgba(212,144,20,0.65); }
    50%      { box-shadow: 0 10px 60px 0px rgba(212,144,20,0.95); }
}
.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--yellow);
    animation: ringPulse 2.4s var(--ease) infinite;
    pointer-events: none;
}
@keyframes ringPulse {
    0%   { transform: scale(1);    opacity: 1; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--toggle-bg);
    border: 1px solid var(--border-hi);
    color: var(--text);
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--toggle-bg-hover);
    border-color: var(--yellow);
    color: var(--yellow);
    transform: rotate(18deg) scale(1.05);
    box-shadow: 0 8px 24px -8px rgba(212,144,20,0.5);
}
.theme-toggle__icon {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all .55s var(--ease);
}
.theme-toggle__moon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}
.theme-toggle__sun {
    opacity: 0;
    transform: translateY(24px) rotate(-90deg);
}
[data-theme="light"] .theme-toggle__moon {
    opacity: 0;
    transform: translateY(-24px) rotate(90deg);
}
[data-theme="light"] .theme-toggle__sun {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all .4s var(--ease);
}
.header.is-scrolled {
    padding: 10px 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo { display: flex; align-items: center; }
.logo__img {
    height: 42px;
    width: auto;
    transition: transform .35s var(--ease), opacity .3s;
}
.logo:hover .logo__img { transform: scale(1.04); }
@media (max-width: 640px) { .logo__img { height: 34px; } }

.nav { display: flex; gap: 6px; }
.nav__link {
    position: relative;
    padding: 8px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dim);
    border-radius: 100px;
    transition: color .3s;
}
.nav__link:hover { color: var(--text); }
.nav__link::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 2px;
    width: 0; height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transition: all .35s var(--ease);
    transform: translateX(-50%);
}
.nav__link:hover::after { width: 24px; }

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.menu-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
    transition: background-color .4s var(--ease);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
    transition: opacity .4s var(--ease);
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: orbFloat 18s ease-in-out infinite;
    transition: opacity .6s var(--ease);
}
.orb--1 { width: 520px; height: 520px; background: var(--vinotinto); top: -120px; left: -120px; }
.orb--2 { width: 420px; height: 420px; background: var(--yellow); bottom: -100px; right: -80px; animation-delay: -6s; opacity: 0.3; }
.orb--3 { width: 320px; height: 320px; background: var(--vinotinto-light); top: 45%; left: 42%; animation-delay: -12s; opacity: 0.25; }
[data-theme="light"] .orb { opacity: 0.18; }
[data-theme="light"] .orb--2 { opacity: 0.15; }
[data-theme="light"] .orb--3 { opacity: 0.12; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.1); }
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero__content { max-width: 640px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(212,144,20,0.1);
    border: 1px solid rgba(212,144,20,0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--yellow);
    margin-bottom: 28px;
}
[data-theme="light"] .badge {
    background: rgba(212,144,20,0.14);
    color: #8a5c08;
}
.badge__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 0 rgba(212,144,20,0.6);
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(212,144,20,0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(212,144,20,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,144,20,0); }
}

.hero__title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    margin-bottom: 24px;
}
.hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 560px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__trust {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.hero__trust-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.hero__trust-item span {
    font-size: 12.5px;
    color: var(--text-mute);
    letter-spacing: 0.02em;
}
.hero__trust-divider {
    width: 1px;
    height: 32px;
    background: var(--border-hi);
}

/* Radar */
.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.radar {
    position: relative;
    width: min(480px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155,18,9,0.12) 0%, transparent 70%);
    border: 1px solid rgba(155,18,9,0.22);
    transition: all .4s var(--ease);
}
[data-theme="light"] .radar {
    background: radial-gradient(circle, rgba(155,18,9,0.06) 0%, transparent 70%);
    border-color: rgba(155,18,9,0.14);
}
.radar__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(155,18,9,0.22);
    margin: auto;
    transition: border-color .4s var(--ease);
}
[data-theme="light"] .radar__ring { border-color: rgba(155,18,9,0.14); }
.radar__ring--1 { width: 30%; height: 30%; }
.radar__ring--2 { width: 60%; height: 60%; }
.radar__ring--3 { width: 90%; height: 90%; }

.radar__sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(155,18,9,0.55) 360deg);
    animation: radarSweep 4s linear infinite;
    mask: radial-gradient(circle, transparent 0%, #000 70%);
    -webkit-mask: radial-gradient(circle, transparent 0%, #000 70%);
}
@keyframes radarSweep { to { transform: rotate(360deg); } }

.radar__center {
    position: absolute;
    top: 50%; left: 50%;
    width: 130px; height: 130px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    padding: 8px;
    box-shadow:
        0 0 60px rgba(155,18,9,0.5),
        0 0 0 6px rgba(255,255,255,0.08),
        0 20px 40px -10px rgba(0,0,0,0.6);
    animation: centerPulse 3s ease-in-out infinite;
    overflow: hidden;
    z-index: 3;
}
[data-theme="light"] .radar__center {
    box-shadow:
        0 0 60px rgba(155,18,9,0.2),
        0 0 0 6px rgba(155,18,9,0.06),
        0 20px 40px -10px rgba(0,0,0,0.15);
}
.radar__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}
@keyframes centerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.06); }
}

.radar__ping {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 20px var(--yellow);
    z-index: 2;
}
.radar__ping::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--yellow);
    animation: pingRing 2.5s var(--ease) infinite;
}
@keyframes pingRing {
    0%   { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.radar__tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-hi);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
    animation: tagFloat 4s ease-in-out infinite;
    z-index: 2;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}
.radar__tag-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 8px var(--yellow);
}
@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.hero__scroll {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-mute);
    z-index: 2;
}
.hero__scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--vinotinto), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
    50%      { transform: scaleY(1);   opacity: 1; }
}

/* ============================================
   SECTION HEAD
   ============================================ */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 72px;
}
.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}
.section-head__sub {
    color: var(--text-dim);
    font-size: 17px;
}

/* ============================================
   PLATAFORMAS
   ============================================ */
.platforms {
    padding: 100px 0;
    background: var(--bg-800);
    position: relative;
    transition: background-color .4s var(--ease);
}
.platforms__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.platform-card {
    position: relative;
    padding: 40px 32px 32px;
    background: var(--hover-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all .5s var(--ease);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}
.platform-card__glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(155,18,9,0.3), transparent 40%);
    opacity: 0;
    transition: opacity .5s var(--ease);
    pointer-events: none;
}
.platform-card:hover {
    transform: translateY(-8px);
    border-color: rgba(155,18,9,0.5);
    box-shadow: 0 30px 70px -25px rgba(155,18,9,0.55);
}
[data-theme="light"] .platform-card:hover {
    box-shadow: 0 30px 70px -25px rgba(155,18,9,0.25);
}
.platform-card:hover .platform-card__glow { opacity: 1; }

.platform-card--featured {
    background: linear-gradient(180deg, rgba(155,18,9,0.14), rgba(212,144,20,0.04));
    border-color: rgba(155,18,9,0.35);
}
[data-theme="light"] .platform-card--featured {
    background: linear-gradient(180deg, rgba(155,18,9,0.06), rgba(212,144,20,0.02));
    border-color: rgba(155,18,9,0.2);
}

.platform-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    background: var(--toggle-bg);
    border: 1px solid var(--border-hi);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.platform-card__badge--new {
    background: rgba(212,144,20,0.14);
    border-color: rgba(212,144,20,0.4);
    color: var(--yellow);
}
[data-theme="light"] .platform-card__badge--new {
    color: #8a5c08;
}

.platform-card__icon {
    width: 64px; height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(155,18,9,0.12);
    border: 1px solid rgba(155,18,9,0.3);
    color: var(--vinotinto-light);
    margin-bottom: 24px;
    transition: all .5s var(--ease);
}
.platform-card:hover .platform-card__icon {
    background: var(--grad-vino);
    color: var(--white);
    transform: rotate(-6deg) scale(1.06);
    box-shadow: 0 12px 30px -8px rgba(155,18,9,0.6);
}
.platform-card__icon svg { width: 30px; height: 30px; }

.platform-card__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 6px;
}
[data-theme="light"] .platform-card__label { color: #8a5c08; }

.platform-card__name {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--text);
}
.platform-card__desc {
    color: var(--text-dim);
    font-size: 14.5px;
    margin-bottom: 28px;
    flex-grow: 1;
}
.platform-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--toggle-bg);
    border: 1px solid var(--border-hi);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    align-self: flex-start;
    transition: all .35s var(--ease);
}
.platform-card:hover .platform-card__cta {
    background: var(--grad-vino);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 10px 30px -8px rgba(155,18,9,0.6);
    gap: 12px;
}

/* ============================================
   TECH (Scrollytelling)
   ============================================ */
.tech { padding: 120px 0; position: relative; }

.tech__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.tech__visual { position: sticky; top: 120px; }

.tech__screen {
    background: linear-gradient(180deg, var(--bg-700), var(--bg-800));
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.tech__screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid var(--border);
    transition: background-color .4s var(--ease);
}
[data-theme="light"] .tech__screen-header {
    background: rgba(0,0,0,0.03);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red    { background: #FF5F57; }
.dot--yellow { background: #FEBC2E; }
.dot--green  { background: #28C840; }
.tech__screen-title {
    margin-left: 14px;
    font-size: 12.5px;
    color: var(--text-mute);
    letter-spacing: 0.02em;
}
.tech__map {
    width: 100%;
    height: auto;
    background: var(--map-bg);
    transition: background-color .4s var(--ease);
}
.tech__map-grid {
    stroke: var(--map-grid-line);
    transition: stroke .4s var(--ease);
}
.tech__vehicle-dot {
    fill: var(--vehicle-dot);
    transition: fill .4s var(--ease);
}

.tech__route {
    stroke-dashoffset: 600;
    animation: drawRoute 4s var(--ease) forwards;
}
@keyframes drawRoute { to { stroke-dashoffset: 0; } }

.tech__screen-footer {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    animation: livePulse 2s infinite;
}

.tech__list { display: flex; flex-direction: column; gap: 20px; }

.tech-card {
    position: relative;
    padding: 32px 28px 32px 90px;
    background: var(--hover-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .45s var(--ease);
    overflow: hidden;
}
.tech-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent, var(--vinotinto));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .5s var(--ease);
}
.tech-card:hover {
    background: var(--hover-bg-hi);
    border-color: var(--border-hi);
    transform: translateX(6px);
}
.tech-card:hover::before { transform: scaleY(1); }

.tech-card__index {
    position: absolute;
    left: 28px; top: 32px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent, var(--vinotinto));
    opacity: 0.7;
}
.tech-card__title {
    font-size: 20px;
    margin-bottom: 8px;
}
.tech-card__desc {
    color: var(--text-dim);
    font-size: 15px;
}

/* ============================================
   PRODUCTOS
   ============================================ */
.products {
    padding: 120px 0;
    background: var(--bg-800);
    position: relative;
    transition: background-color .4s var(--ease);
}
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    padding: 36px 28px 28px;
    background: var(--hover-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all .5s var(--ease);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-card__glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(155,18,9,0.22), transparent 40%);
    opacity: 0;
    transition: opacity .5s var(--ease);
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(155,18,9,0.4);
    box-shadow: 0 30px 60px -20px rgba(155,18,9,0.35);
}
[data-theme="light"] .product-card:hover {
    box-shadow: 0 30px 60px -20px rgba(155,18,9,0.18);
}
.product-card:hover .product-card__glow { opacity: 1; }

.product-card__icon {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(155,18,9,0.1);
    border: 1px solid rgba(155,18,9,0.25);
    color: var(--vinotinto-light);
    margin-bottom: 20px;
    transition: all .5s var(--ease);
}
.product-card:hover .product-card__icon {
    background: var(--grad-vino);
    color: var(--white);
    transform: rotate(-6deg) scale(1.05);
}
.product-card__icon svg { width: 26px; height: 26px; }

.product-card__tagline {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 6px;
}
[data-theme="light"] .product-card__tagline { color: #8a5c08; }

.product-card__name {
    font-size: 24px;
    margin-bottom: 12px;
}
.product-card__desc {
    color: var(--text-dim);
    font-size: 14.5px;
    margin-bottom: 22px;
    flex-grow: 1;
}
.product-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.product-card__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-dim);
}
.product-card__features svg { color: var(--yellow); flex-shrink: 0; }

.product-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vinotinto-light);
    transition: gap .3s var(--ease), color .3s;
}
[data-theme="light"] .product-card__cta { color: var(--vinotinto); }
.product-card:hover .product-card__cta {
    gap: 12px;
    color: var(--yellow);
}

/* ============================================
   EMERGENCIA
   ============================================ */
.emergency {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(155,18,9,0.28), transparent 55%),
        radial-gradient(ellipse at 80% 50%, rgba(212,144,20,0.15), transparent 55%),
        var(--bg-900);
    border-block: 1px solid var(--border);
    transition: background .4s var(--ease);
}
[data-theme="light"] .emergency {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(155,18,9,0.1), transparent 55%),
        radial-gradient(ellipse at 80% 50%, rgba(212,144,20,0.07), transparent 55%),
        var(--bg-800);
}
.emergency__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.emergency__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 14px;
}
[data-theme="light"] .emergency__label { color: #8a5c08; }

.emergency h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 12px;
}
.emergency p {
    color: var(--text-dim);
    font-size: 16px;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact { padding: 120px 0; }
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}
.contact__info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}
.contact__info > p {
    color: var(--text-dim);
    margin-bottom: 36px;
    font-size: 16px;
}

.contact__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}
.contact__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--text-dim);
}
.contact__link {
    color: var(--text-dim);
    transition: color .3s;
}
.contact__link:hover { color: var(--yellow); }
[data-theme="light"] .contact__link:hover { color: #8a5c08; }

.contact__ico {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(155,18,9,0.1);
    border: 1px solid rgba(155,18,9,0.28);
    color: var(--vinotinto-light);
    flex-shrink: 0;
}

.contact__social {
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.contact__social-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 14px;
}
.social {
    display: flex;
    gap: 12px;
}
.social__link {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--toggle-bg);
    border: 1px solid var(--border-hi);
    color: var(--text-dim);
    transition: all .35s var(--ease);
}
.social__link svg { width: 20px; height: 20px; }
.social__link:hover {
    background: var(--grad-vino);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px) rotate(-4deg);
    box-shadow: 0 12px 30px -8px rgba(155,18,9,0.7);
}

.contact__form {
    background: linear-gradient(180deg, var(--bg-700), var(--bg-800));
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
[data-theme="light"] .contact__form {
    background: #ffffff;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dim);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: all .3s var(--ease);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-mute); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vinotinto-light);
    background: rgba(155,18,9,0.05);
    box-shadow: 0 0 0 4px rgba(155,18,9,0.15);
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(155,18,9,0.03);
}
.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a7a1a0' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-group select option {
    background: var(--bg-700);
    color: var(--text);
}
[data-theme="light"] .form-group select option {
    background: #ffffff;
}

.form-status {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}
.form-status.success { color: var(--yellow); }
[data-theme="light"] .form-status.success { color: #8a5c08; }
.form-status.error   { color: #ff6b6b; }
[data-theme="light"] .form-status.error { color: #c41a0f; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-800);
    border-top: 1px solid var(--border);
    padding-top: 60px;
    transition: background-color .4s var(--ease);
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
}
.footer__logo {
    height: 46px;
    width: auto;
    margin-bottom: 16px;
    transition: transform .35s var(--ease), opacity .3s;
}
.footer__brand p {
    color: var(--text-dim);
    font-size: 14.5px;
    max-width: 320px;
    margin-bottom: 24px;
}
.social--footer .social__link {
    width: 40px; height: 40px;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer__cols h4 {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text);
}
.footer__cols a {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 10px;
    transition: color .3s, transform .3s;
}
.footer__cols a:hover {
    color: var(--yellow);
    transform: translateX(3px);
}
[data-theme="light"] .footer__cols a:hover { color: #8a5c08; }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    font-size: 13.5px;
    color: var(--text-mute);
    text-align: center;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero__content { max-width: 100%; margin-inline: auto; }
    .hero__actions, .hero__trust { justify-content: center; }
    .badge { margin-inline: auto; }
    .hero__subtitle { margin-inline: auto; }
    .radar { max-width: 400px; }

    .tech__layout { grid-template-columns: 1fr; gap: 50px; }
    .tech__visual { position: static; }

    .contact__inner { grid-template-columns: 1fr; gap: 50px; }
    .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 78px; right: 20px;
        flex-direction: column;
        background: var(--header-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-hi);
        border-radius: var(--radius);
        padding: 16px;
        min-width: 240px;
        transform: translateY(-10px) scale(0.96);
        opacity: 0;
        pointer-events: none;
        transition: all .35s var(--ease);
        gap: 4px;
        box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
    }
    .nav.is-open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
    .nav__link { display: block; padding: 12px 16px; }
    .nav__link::after { display: none; }
    .menu-toggle { display: flex; }
    .header__cta-btn { display: none; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact__form { padding: 28px; }
    .emergency__inner { flex-direction: column; text-align: center; }
    .tech-card { padding: 24px 22px 24px 74px; }
    .tech-card__index { left: 22px; top: 24px; }
    .footer__cols { grid-template-columns: 1fr 1fr; }

    .hero__trust { gap: 16px; }
    .hero__trust-divider { display: none; }
    .hero__trust-item { flex: 1 0 40%; text-align: center; }
}

@media (max-width: 480px) {
    .footer__cols { grid-template-columns: 1fr; }
    .radar__center { width: 100px; height: 100px; }
    .radar__tag { font-size: 11px; padding: 6px 10px; }
    .theme-toggle { width: 38px; height: 38px; }
}

/* Accesibilidad: reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}