/* Base común de las plantillas de la landing del reseller (todas menos Aurora).
   Cada plantilla trae su propio CSS encima. Escrito a mano: no se compila. */

:root { --rl-accent: var(--rl-accent-custom, #20c6f7); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: color-mix(in srgb, var(--rl-primary) 30%, white); color: #111; }

/* Revelado al scroll (solo si hay JS) */
html.lm-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
html.lm-js [data-reveal].is-in { opacity: 1; transform: none; }

/* Preguntas frecuentes: comportamiento común */
.lm-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.lm-faq-q { cursor: pointer; width: 100%; text-align: left; background: none; border: 0; }

/* WhatsApp flotante */
.rl-whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 80; width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #1da851); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; text-decoration: none; box-shadow: 0 12px 30px rgba(37, 211, 102, .45); transition: transform .25s ease;
}
.rl-whatsapp-float:hover { transform: scale(1.08); }
.rl-whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: lm-pulse 2.4s ease-out infinite; z-index: -1; }
@keyframes lm-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.8); opacity: 0; } }

/* Formulario de demo (estructura; el aspecto lo pone cada plantilla) */
.lm-form { display: flex; flex-direction: column; gap: 14px; }
.lm-form .lm-row { display: flex; gap: 12px; }
.lm-form .lm-row > * { flex: 1; min-width: 0; }
.lm-form input, .lm-form textarea { width: 100%; font: inherit; }
.lm-form textarea { resize: vertical; }
.lm-alert { padding: 11px 14px; border-radius: 10px; font-size: .88rem; font-weight: 600; }
.lm-alert.ok { background: #e8f9ee; color: #166534; }
.lm-alert.err { background: #fdecec; color: #b42318; }
@media (max-width: 600px) { .lm-form .lm-row { flex-direction: column; } }

/* Maqueta ilustrada (panel + factura) usada cuando no hay imagen de portada */
.lm-mock { position: relative; padding: 0 0 38px; }
.lm-win { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 30px 70px rgba(15, 23, 42, .22); }
.lm-bar { display: flex; gap: 6px; padding: 12px 15px; background: var(--rl-secondary); }
.lm-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.lm-body { display: grid; grid-template-columns: 50px 1fr; min-height: 270px; }
.lm-side { background: color-mix(in srgb, var(--rl-primary) 10%, #fff); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; }
.lm-side i { width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--rl-primary) 28%, #fff); }
.lm-side i:first-child { background: var(--rl-primary); }
.lm-main { padding: 18px; background: #f8fafc; display: flex; flex-direction: column; gap: 14px; }
.lm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lm-kpi { background: #fff; border: 1px solid #e3e9f4; border-radius: 12px; padding: 12px; }
.lm-kpi s { display: block; height: 7px; width: 55%; background: #e3e9f4; border-radius: 5px; text-decoration: none; }
.lm-kpi b { display: block; height: 14px; width: 78%; margin-top: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--rl-primary), color-mix(in srgb, var(--rl-primary) 35%, #fff)); }
.lm-chart { flex: 1; min-height: 110px; background: #fff; border: 1px solid #e3e9f4; border-radius: 12px; padding: 14px; display: flex; align-items: flex-end; gap: 10px; }
.lm-chart i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--rl-primary), color-mix(in srgb, var(--rl-primary) 30%, #fff)); }
.lm-chart i:nth-child(even) { background: linear-gradient(180deg, var(--rl-accent), color-mix(in srgb, var(--rl-accent) 30%, #fff)); }
.lm-doc { position: absolute; right: -16px; bottom: 0; width: 232px; background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #e3e9f4; transform: rotate(2.5deg); box-shadow: 0 28px 60px rgba(15, 23, 42, .28); }
.lm-doc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, var(--rl-primary), var(--rl-accent)); }
.lm-doc-head { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px dashed #dde5f2; }
.lm-doc-logo { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--rl-on-primary, #fff); font-size: .85rem; background: var(--rl-primary); flex: none; }
.lm-doc-head b { display: block; font-size: .64rem; letter-spacing: .06em; color: #0f172a; line-height: 1.2; }
.lm-doc-head small { font-size: .68rem; color: #5b6785; }
.lm-doc-rows { padding: 10px 0 2px; display: flex; flex-direction: column; gap: 8px; }
.lm-doc-rows div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lm-doc-rows span { height: 7px; flex: 1; max-width: 100px; border-radius: 4px; background: #e3e9f4; }
.lm-doc-rows em { font-style: normal; font-size: .68rem; font-weight: 600; color: #2d3a63; }
.lm-doc-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--rl-primary) 9%, #fff); }
.lm-doc-total small { font-size: .7rem; color: #5b6785; }
.lm-doc-total strong { font-size: 1.02rem; color: #0f172a; letter-spacing: -.02em; }
.lm-doc-stamp { display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: #15803d; border: 2px solid #15803d; border-radius: 7px; padding: 5px 9px; transform: rotate(-5deg); background: #f0fdf4; }
@media (max-width: 700px) { .lm-doc { right: 0; width: 200px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } html.lm-js [data-reveal] { opacity: 1; transform: none; transition: none; } .rl-whatsapp-float::before { animation: none; } }
