/* ============================================================
 *  LBP Sections — base
 *  Variables, fuentes y reset acotado a las secciones del plugin.
 *  Todo va prefijado con .lbp- para no contaminar el resto del tema.
 * ============================================================ */

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/Geist-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/Geist-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/Geist-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/GeistMono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/GeistMono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/GeistMono-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Tokens — copiados del diseño original. */
:root {
    --lbp-accent: #E85A2B;
    --lbp-accent-soft: #FFE8DF;
    --lbp-accent-deep: #B8421A;
    --lbp-bg: #FBFAF7;
    --lbp-fg: #1a1a1a;
    --lbp-fg-soft: #555;
    --lbp-fg-muted: #6b6b6b;
    --lbp-fg-faint: #9a9a9a;
    --lbp-line: rgba(20,20,20,0.06);
    --lbp-line-strong: rgba(20,20,20,0.12);
    --lbp-card: #fff;
    --lbp-star: #E8A20F;
    --lbp-success: #22A06B;
    --lbp-radius-md: 12px;
    --lbp-radius-lg: 16px;
    --lbp-pad-x: clamp(20px, 4vw, 40px);
    --lbp-max: 1360px;
    --lbp-font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --lbp-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Scope contenedor común */
.lbp { font-family: var(--lbp-font); color: var(--lbp-fg); -webkit-font-smoothing: antialiased; }
.lbp *, .lbp *::before, .lbp *::after { box-sizing: border-box; }
.lbp p { margin: 0; }
.lbp h1, .lbp h2, .lbp h3, .lbp h4 { margin: 0; font-weight: 600; }
.lbp button { font-family: inherit; }
.lbp a { color: inherit; }
/* Reset figure/figcaption — la mayoría de temas WP aplican
   `figcaption { text-align: center }` (pensado para captions de imagen)
   y eso pisa los testimonios.  Lo neutralizamos al ámbito del plugin. */
.lbp figure { margin: 0; }
.lbp figcaption { text-align: left; }

.lbp-mono { font-family: var(--lbp-mono); font-feature-settings: "tnum" 1; }

/* Live dot reutilizable */
.lbp-livedot {
    position: relative;
    display: inline-block;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
}
.lbp-livedot::before,
.lbp-livedot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--lbp-success);
}
.lbp-livedot::before { opacity: .35; animation: lbpPulse 1.8s ease-out infinite; }

@keyframes lbpPulse {
    0% { transform: scale(1); opacity: .5; }
    100% { transform: scale(2.6); opacity: 0; }
}
@keyframes lbpMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes lbpFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Stars row */
.lbp-stars { display: inline-flex; gap: 1px; color: var(--lbp-star); }
.lbp-stars svg { display: block; }
/* Forzar relleno sólido aunque el helper genere fill="none" en el SVG. */
.lbp .lbp-stars svg { fill: currentColor; stroke: none; }

/* Botones — la especificidad extra (.lbp a.lbp-btn--…) gana a las reglas
   `a:link { color: ... }` que la mayoría de temas inyectan globalmente. */
.lbp .lbp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: transform .12s, box-shadow .15s, background .15s, color .15s;
    font-family: inherit;
}
.lbp a.lbp-btn,
.lbp a.lbp-btn:link,
.lbp a.lbp-btn:visited,
.lbp a.lbp-btn:hover,
.lbp a.lbp-btn:focus,
.lbp a.lbp-btn:active { text-decoration: none; }

.lbp .lbp-btn:hover { transform: translateY(-1px); }

.lbp .lbp-btn--primary,
.lbp a.lbp-btn--primary,
.lbp a.lbp-btn--primary:link,
.lbp a.lbp-btn--primary:visited,
.lbp a.lbp-btn--primary:hover,
.lbp a.lbp-btn--primary:focus,
.lbp a.lbp-btn--primary:active {
    background: #1a1a1a;
    color: #fff;
    border-color: transparent;
}
.lbp .lbp-btn--primary:hover,
.lbp a.lbp-btn--primary:hover { background: #000; }

.lbp .lbp-btn--ghost,
.lbp a.lbp-btn--ghost,
.lbp a.lbp-btn--ghost:link,
.lbp a.lbp-btn--ghost:visited,
.lbp a.lbp-btn--ghost:hover,
.lbp a.lbp-btn--ghost:focus,
.lbp a.lbp-btn--ghost:active {
    background: #fff;
    color: var(--lbp-fg);
    border-color: var(--lbp-line-strong);
}

.lbp .lbp-btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
