/* =============================================================================
 * soluciones/technosense-wx.css
 * Landing page de TechnoSense-Wx. Depende de ../assets/css/main.css
 * ============================================================================= */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.wx-hero {
    background: var(--sky-900);
    padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
    position: relative;
    overflow: hidden;
}

.wx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 100% 110%, rgba(245,158,11,.14), transparent 55%),
        radial-gradient(ellipse 50% 60% at 0%   20%, rgba(2,132,199,.18),   transparent 60%);
    pointer-events: none;
}

.wx-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

/* Logo Wx en el hero */
.wx-hero-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}

.wx-hero-logo-text {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: var(--fw-black);
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1;
}

.wx-hero-logo-text span { color: var(--solar-500); }

.wx-hero-badge {
    background: rgba(245,158,11,.18);
    border: 1px solid rgba(245,158,11,.35);
    color: var(--solar-500);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: var(--r-sm);
}

.wx-hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: var(--fw-black);
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: var(--sp-4);
}

.wx-hero-title span { color: var(--solar-500); }

.wx-hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255,255,255,.76);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: var(--sp-6);
}

.wx-hero-actions {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

/* Panel de acceso rápido en el hero */
.wx-hero-access {
    background: var(--white);
    border-radius: var(--r-xl);
    overflow: hidden;
    width: 300px;
    flex-shrink: 0;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

.wx-hero-access::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--sky-600), var(--solar-500));
}

.wx-hero-access-head {
    padding: var(--sp-4);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.wx-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%,100% { opacity:1; }
    50%      { opacity:.3; }
}

.wx-hero-access-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.wx-hero-access-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
}

.wx-stat {
    background: var(--white);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.wx-stat-val {
    font-family: "JetBrains Mono", "SF Mono", monospace;
    font-size: 1.6rem;
    font-weight: var(--fw-bold);
    color: var(--sky-900);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.wx-stat-lbl {
    font-size: var(--fs-xs);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.wx-hero-access-foot {
    padding: var(--sp-4);
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.wx-hero-access-foot .btn-ts {
    width: 100%;
    justify-content: center;
}

@media (max-width: 860px) {
    .wx-hero-inner { grid-template-columns: 1fr; }
    .wx-hero-access { width: 100%; max-width: 380px; }
}

@media (max-width: 560px) {
    .wx-hero-actions .btn-ts { width: 100%; justify-content: center; }
}

/* ── Mapa ─────────────────────────────────────────────────────────────────── */
.wx-map-section {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--paper);
}

.wx-map-head {
    text-align: center;
    margin-bottom: var(--sp-6);
}

.wx-map-wrap {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    background: var(--surface-3);
}

#wx-map {
    width: 100%;
    height: clamp(380px, 52vw, 580px);
    display: block;
}

/* Barra de estado sobre el mapa */
.wx-map-bar {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--sp-2) var(--sp-4);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    flex-wrap: wrap;
}

.wx-map-bar-left {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--sky-900);
}

.wx-map-bar-right {
    font-size: var(--fs-xs);
    color: var(--muted);
}

/* Info window personalizado (popup del marcador) */
.wx-popup {
    font-family: var(--font-body, "Inter", sans-serif);
    min-width: 200px;
    max-width: 260px;
}

.wx-popup-name {
    font-weight: 800;
    font-size: .92rem;
    color: #0c4a6e;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
}

.wx-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}

.wx-popup-item { display: flex; flex-direction: column; }
.wx-popup-val  { font-size: 1.05rem; font-weight: 700; color: #0c4a6e; }
.wx-popup-lbl  { font-size: .7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }

.wx-popup-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: .72rem;
    color: #94a3b8;
}

/* ── Módulos / Features ───────────────────────────────────────────────────── */
.wx-modules-section {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--white);
}

.wx-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-6);
}

.wx-module-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    overflow: hidden;
    transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.wx-module-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sky-600), var(--solar-500));
}

.wx-module-card:hover {
    border-color: var(--sky-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.wx-module-card.coming {
    opacity: .6;
    cursor: default;
}

.wx-module-card.coming:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
}

.wx-module-card.coming::before {
    background: var(--line);
}

.wx-module-icon {
    width: 48px; height: 48px;
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    background: var(--sky-100);
    color: var(--sky-700);
    font-size: 1.2rem;
    margin-bottom: var(--sp-4);
}

.wx-module-icon.solar { background: var(--solar-100); color: var(--solar-600); }

.wx-module-card h3 {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--sky-900);
    margin-bottom: var(--sp-2);
}

.wx-module-card p {
    font-size: var(--fs-sm);
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
}

.wx-coming-badge {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-3);
    padding: .2rem .55rem;
    border-radius: var(--r-sm);
    margin-top: var(--sp-3);
}

@media (max-width: 900px) { .wx-modules-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .wx-modules-grid { grid-template-columns: 1fr; } }

/* ── Stack técnico ────────────────────────────────────────────────────────── */
.wx-stack-section {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--sky-900);
    position: relative;
    overflow: hidden;
}

.wx-stack-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(245,158,11,.1), transparent 60%);
    pointer-events: none;
}

.wx-stack-section .ts-section-head h2 { color: var(--white); }
.wx-stack-section .ts-section-head p  { color: rgba(255,255,255,.7); }
.wx-stack-section .ts-eyebrow {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.15);
}

.wx-stack-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: var(--sp-4);
    position: relative;
    z-index: 1;
}

.wx-stack-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    text-align: center;
    transition: background var(--t-base), border-color var(--t-base);
}

.wx-stack-item:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
}

.wx-stack-item i {
    font-size: 1.8rem;
    color: var(--solar-500);
    margin-bottom: var(--sp-3);
    display: block;
}

.wx-stack-item h4 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--white);
    margin-bottom: var(--sp-1);
}

.wx-stack-item p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.6);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) { .wx-stack-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .wx-stack-grid { grid-template-columns: 1fr; } }

/* ── Planes ───────────────────────────────────────────────────────────────── */
.wx-planes-section {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--paper);
}

.wx-planes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
    max-width: 820px;
    margin: var(--sp-8) auto 0;
}

.wx-plan-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: var(--sp-6);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.wx-plan-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--line);
}

.wx-plan-card.featured {
    border-color: var(--sky-600);
    box-shadow: 0 0 0 1px var(--sky-100), var(--shadow-md);
}

.wx-plan-card.featured::before {
    background: linear-gradient(90deg, var(--sky-600), var(--solar-500));
}

.wx-plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.wx-plan-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--sp-2);
}

.wx-plan-name {
    font-size: var(--fs-xl);
    font-weight: var(--fw-black);
    color: var(--sky-900);
    margin-bottom: var(--sp-4);
}

.wx-plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}

.wx-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--ink-soft);
}

.wx-plan-features li i {
    color: var(--sky-600);
    font-size: .8rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.wx-plan-features li.dim { color: var(--muted); }
.wx-plan-features li.dim i { color: var(--line); }

@media (max-width: 620px) { .wx-planes-grid { grid-template-columns: 1fr; } }

/* ── CTA final ────────────────────────────────────────────────────────────── */
.wx-cta-section { padding: clamp(56px, 7vw, 88px) 0; background: var(--white); }