/* SonicPanel Storefront — mismo lenguaje visual que la tienda:
   panel de transmisor, barras de señal, tipografía Space Grotesk/Inter. */

:root {
    --ink: #161a23;
    --ink-soft: #62697a;
    --paper: #ffffff;
    --line: #e2e4e9;
    --signal: #1b7a6b;
    --signal-soft: #e7f2ef;
    --signal-dark: #123f37;
    --amber: #f2994a;
    --radius: 16px;
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 14px; line-height: 1.15; }
a { color: var(--signal); text-decoration: none; }
.spst-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Botones ── */
.spst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform .12s ease, background .15s ease;
}
.spst-btn--solid { background: var(--signal); color: #fff; }
.spst-btn--solid:hover { background: var(--signal-dark); transform: translateY(-1px); }
.spst-btn--ghost { border-color: var(--line); color: var(--ink); }
.spst-btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.spst-btn--lg { padding: 14px 28px; font-size: 15px; }

/* ── Header ── */
.spst-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1b4d6b;
    border-bottom: 1px solid #163f58;
}
.spst-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.spst-brand { display: flex; align-items: center; }
.spst-brand img { max-height: 40px; }
.spst-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.spst-primary-nav { flex: 1; }
.spst-menu { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.spst-menu a { color: rgba(255,255,255,.85); font-weight: 500; font-size: 14px; }
.spst-menu a:hover { color: #fff; }
.spst-header-actions { display: flex; gap: 10px; align-items: center; }
.spst-header-actions .spst-btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.spst-header-actions .spst-btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.spst-nav-toggle { display: none; }

@media (max-width: 780px) {
    .spst-primary-nav, .spst-header-actions { display: none; }
    .spst-nav-toggle {
        display: flex; flex-direction: column; gap: 4px;
        background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer;
    }
    .spst-nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }
    .spst-mobile-menu {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 16px 24px 22px;
        border-top: 1px solid #163f58;
        background: #1b4d6b;
    }
    .spst-mobile-menu.is-open { display: flex; }
    .spst-mobile-menu a { color: #fff; }
    .spst-menu--mobile { flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
}
@media (min-width: 781px) {
    .spst-mobile-menu { display: none; }
}

/* ── Hero ── */
.spst-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 24px 60px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.spst-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--signal);
    margin: 0 0 14px;
}
.spst-eyebrow--dark { color: var(--ink-soft); }
.spst-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 0 rgba(27,122,107,.5);
    animation: spst-pulse 1.8s infinite;
}
@keyframes spst-pulse {
    0% { box-shadow: 0 0 0 0 rgba(27,122,107,.45); }
    70% { box-shadow: 0 0 0 8px rgba(27,122,107,0); }
    100% { box-shadow: 0 0 0 0 rgba(27,122,107,0); }
}
.spst-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.spst-hero-lead { color: var(--ink-soft); font-size: 17px; max-width: 480px; margin: 0 0 26px; }
.spst-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.spst-hero-fine { font-size: 13px; color: var(--ink-soft); font-family: var(--font-mono); }

.spst-hero-visual { display: flex; justify-content: center; }
.spst-meter {
    background: var(--ink);
    border-radius: 20px;
    padding: 28px 30px;
    width: 100%;
    max-width: 320px;
    color: #fff;
    text-align: center;
    box-shadow: 0 24px 48px rgba(20,25,35,.25);
}
.spst-meter-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; color: #8a96a8; margin-bottom: 16px; }
.spst-meter-bars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 90px; margin-bottom: 16px; }
.spst-bar {
    width: 8px;
    border-radius: 2px;
    background: var(--signal);
    animation: spst-bar-bounce 1.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.08s);
    height: 20%;
}
.spst-bar:nth-child(4n) { background: var(--amber); }
@keyframes spst-bar-bounce {
    0%, 100% { height: 20%; }
    50% { height: 90%; }
}
.spst-meter-freq { font-family: var(--font-mono); font-size: 26px; font-weight: 600; }
.spst-meter-freq small { font-size: 13px; color: #8a96a8; }
@media (prefers-reduced-motion: reduce) {
    .spst-bar, .spst-dot { animation: none; }
}

@media (max-width: 900px) {
    .spst-hero { grid-template-columns: 1fr; padding-top: 40px; }
    .spst-hero-visual { order: -1; }
}

/* ── Franja de confianza ── */
.spst-trustbar { background: var(--signal-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spst-trustbar-inner {
    max-width: 1180px; margin: 0 auto; padding: 26px 24px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.spst-trust-item strong { display: block; font-family: var(--font-display); font-size: 20px; color: var(--signal-dark); }
.spst-trust-item span { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 780px) {
    .spst-trustbar-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── Secciones generales ── */
.spst-section { max-width: 1180px; margin: 0 auto; padding: 76px 24px; }
.spst-section-head { max-width: 640px; margin-bottom: 40px; }
.spst-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ── Presets (por qué elegirnos) ── */
.spst-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.spst-preset {
    display: flex; gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.spst-preset-freq {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--signal);
    background: var(--signal-soft);
    border-radius: 8px;
    padding: 6px 10px;
    height: fit-content;
}
.spst-preset h3 { font-size: 17px; margin-bottom: 6px; }
.spst-preset p { color: var(--ink-soft); font-size: 14px; margin: 0; }
@media (max-width: 780px) {
    .spst-presets { grid-template-columns: 1fr; }
}

/* ── Pasos ── */
.spst-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.spst-step-list li { display: flex; flex-direction: column; gap: 12px; }
.spst-step-list span {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 600; font-size: 14px;
}
.spst-step-list h3 { font-size: 16px; margin-bottom: 4px; }
.spst-step-list p { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
@media (max-width: 900px) {
    .spst-step-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .spst-step-list { grid-template-columns: 1fr; }
}

/* ── CTA final ── */
.spst-final-cta {
    max-width: 1180px; margin: 0 auto 76px; padding: 60px 40px;
    background: var(--ink); border-radius: 24px; color: #fff; text-align: center;
}
.spst-final-cta h2 { color: #fff; }
.spst-final-cta p { color: #b6bcc8; margin-bottom: 24px; }

/* ── Páginas genéricas ── */
.spst-page-inner { max-width: 860px; margin: 0 auto; padding: 60px 24px; }
.spst-page-title { font-size: 2rem; }

/* ── Footer ── */
.spst-site-footer { background: var(--ink); color: #b6bcc8; margin-top: auto; }
.spst-footer-inner {
    max-width: 1180px; margin: 0 auto; padding: 50px 24px 30px;
    display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.spst-footer-brand { max-width: 320px; }
.spst-footer-brand .spst-brand-text { color: #fff; }
.spst-footer-brand p { font-size: 13.5px; margin-top: 10px; }
.spst-footer-widgets { display: flex; gap: 40px; flex-wrap: wrap; }
.spst-footer-widget h4 { color: #fff; font-family: var(--font-display); font-size: 14px; margin-bottom: 10px; }
.spst-footer-widget a { color: #b6bcc8; }
.spst-footer-menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.spst-footer-menu a { color: #b6bcc8; font-size: 13.5px; }
.spst-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 24px;
    text-align: center;
    font-size: 12.5px;
}

/* La tienda (shortcodes del plugin) ya trae su propia estética .sps-scope;
   solo le damos aire arriba/abajo dentro de la sección de planes. */
.spst-section--plans .sps-scope { margin: 0; }
