/* ============================================================
   site.css — Landing pública TelematicGPS (sobre tokens.css)
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0; font-family: var(--font-sans); color: var(--text-primary);
    background: var(--bg-page); line-height: var(--lh-base); font-size: var(--fs-base);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); margin: 0 0 .5rem; }
p { margin: 0 0 1rem; color: var(--text-secondary); }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

.container { width: 100%; max-width: var(--container-xl); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.eyebrow { display: inline-block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--text-primary); }
.section-sub { font-size: var(--fs-lg); color: var(--text-secondary); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: var(--fw-semibold); padding: .8rem 1.4rem; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--gradient-accent); color: #fff; box-shadow: var(--shadow-accent-md); }
.btn-accent:hover { filter: brightness(1.05); box-shadow: var(--shadow-accent-lg, var(--shadow-lg)); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary-md); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: .95rem 1.7rem; font-size: var(--fs-md); }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-fixed); background: color-mix(in srgb, var(--bg-page) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--t-base), box-shadow var(--t-base); }
.site-header.is-scrolled { border-bottom-color: var(--border-subtle); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 1.25rem; height: var(--header-height); }
.nav-logo img { height: 46px; width: auto; display: block; transition: transform var(--t-fast); }
.nav-logo:hover img { transform: scale(1.03); }
/* Logo con buen contraste sobre header oscuro (dark mode) */
:root.dark .nav-logo img { filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; }
/* El menú móvil está oculto por defecto (desktop); solo aparece en el breakpoint móvil */
#mobile-menu { display: none; }
.nav-links a { color: var(--text-secondary); font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.nav-links a:hover { color: var(--primary); }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; font: inherit; font-weight: 600; font-size: var(--fs-sm); }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.nav-burger { display: none; }
.nav-cta { padding: .55rem 1.05rem; }
.mobile-menu-cta { display: flex; gap: .5rem; margin-top: .5rem; padding-top: .85rem; border-top: 1px solid var(--border-subtle); }
.mobile-menu-cta .btn { flex: 1; }
@media (min-width: 901px) { .mobile-menu-cta { display: none; } }
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-burger { display: inline-flex; }
    .nav-links.mobile { position: absolute; top: var(--header-height); left: 0; right: 0; flex-direction: column; background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding: 1rem 1.25rem; gap: .25rem; box-shadow: var(--shadow-lg); }
    #mobile-menu { display: none; } #mobile-menu.open { display: flex; }
    #mobile-menu a { padding: .6rem 0; font-size: var(--fs-base); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--texture-corporate), var(--gradient-primary); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: .35rem .8rem; border-radius: var(--radius-full); font-size: var(--fs-sm); margin-bottom: 1.1rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero h1 .hl { color: var(--secondary); }
.hero p { color: rgba(255,255,255,.82); font-size: var(--fs-lg); max-width: 34rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.25rem; }
.hero-stat-num { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); color: #fff; }
.hero-stat-label { font-size: var(--fs-sm); color: rgba(255,255,255,.7); }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-logo-card {
    position: relative; background: #fff; border-radius: var(--radius-2xl);
    padding: 2.5rem 2.75rem; box-shadow: 0 30px 70px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
}
.hero-logo-card img { width: 100%; max-width: 340px; height: auto; display: block; position: relative; z-index: 1; }
/* Anillos de "señal" detrás del logo */
.hero-logo-card::before, .hero-logo-card::after {
    content: ""; position: absolute; inset: -1px; border-radius: var(--radius-2xl);
    border: 1px solid rgba(0,156,222,.5); animation: pulseRing 3s ease-out infinite;
}
.hero-logo-card::after { animation-delay: 1.5s; }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.12); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-logo-card::before, .hero-logo-card::after { animation: none; } }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } .hero-cta, .hero-stats { justify-content: center; } .hero-visual { order: -1; } }

/* ---------- Beneficios ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform var(--t-base), box-shadow var(--t-base); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; background: var(--accent-bg-soft); color: var(--accent); }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-lg); color: var(--text-primary); }
.feature p { margin: 0; font-size: var(--fs-sm); }

/* ---------- Dispositivos ---------- */
.device { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 1.25rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--t-base), box-shadow var(--t-base); }
.device:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.device-img { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; overflow: hidden; }
.device-img img { max-height: 100%; object-fit: contain; }
.device h3 { font-size: var(--fs-lg); color: var(--text-primary); margin-bottom: .15rem; }
.device .device-conn { font-size: var(--fs-xs); color: var(--text-tertiary); margin-bottom: .5rem; }
.device p { font-size: var(--fs-sm); margin-bottom: 1rem; }
.device-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.device-price { font-weight: var(--fw-bold); color: var(--primary); }
.device-link { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--accent); }

/* ---------- Planes ---------- */
.plan { position: relative; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); padding: 1.75rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan.is-featured { border-color: var(--accent); box-shadow: var(--shadow-accent-md); transform: translateY(-6px); }
.plan-badge { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--gradient-accent); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); padding: .3rem .9rem; border-radius: var(--radius-full); box-shadow: var(--shadow-accent-md); }
.plan-type { font-size: var(--fs-sm); color: var(--text-tertiary); }
.plan-name { font-size: var(--fs-2xl); color: var(--text-primary); }
.plan-price { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--primary); margin: .5rem 0 1rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.plan-features li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; font-size: var(--fs-sm); color: var(--text-secondary); }
.plan-features li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--success-bg); }
.plan-features li::after { content: "✓"; position: absolute; left: 3px; top: .1rem; color: var(--success); font-size: 12px; font-weight: 700; }
.plan .btn { margin-top: auto; }

/* ---------- Industrias ---------- */
.industry { display: flex; gap: .9rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius-xl); border: 1px solid var(--border-subtle); background: var(--bg-surface); }
.industry-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--secondary-bg); color: var(--secondary); display: flex; align-items: center; justify-content: center; }
.industry-icon svg { width: 24px; height: 24px; }
.industry h4 { font-size: var(--fs-base); color: var(--text-primary); margin-bottom: .2rem; }
.industry p { font-size: var(--fs-sm); margin: 0; }

/* ---------- Aliados ---------- */
.partners { background: var(--gradient-primary); color: #fff; border-radius: var(--radius-2xl); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.partners h2 { color: #fff; }
.partners p { color: rgba(255,255,255,.82); max-width: 40rem; margin: 0 auto 1.5rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.contact-info .contact-line { display: flex; gap: .7rem; align-items: center; margin-bottom: .9rem; color: var(--text-secondary); }
.contact-info .contact-line svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.form { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); padding: 1.75rem; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-secondary); margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text-primary); background: var(--bg-page); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: .7rem .8rem; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: .75rem; }
.alert { padding: .8rem 1rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-size: var(--fs-sm); border: 1px solid; }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.alert-danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark, #001444); color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 34px; filter: brightness(0) invert(1); margin-bottom: .75rem; }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--ls-wide); }
.site-footer a { color: rgba(255,255,255,.75); display: block; padding: .25rem 0; font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; font-size: var(--fs-xs); color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: var(--z-fixed); width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.wa-float svg { width: 30px; height: 30px; }
