/* Landings SEO (firma electrónica / facturación electrónica) - Mi Factura Rápida
   CSS autocontenido: no depende de bootstrap ni del resto de hojas del sitio. */
/* Tipografía corporativa Lustra (misma del sitio principal) */
@font-face { font-family: 'Lustra'; font-weight: 300; font-style: normal; font-display: swap;
    src: url(../fonts/Lustra/Lustra-Text-Thin.woff2) format('woff2'), url(../fonts/Lustra/Lustra-Text-Thin.woff) format('woff'), url(../fonts/Lustra/Lustra-Text-Thin.ttf) format('truetype'); }
@font-face { font-family: 'Lustra'; font-weight: 400; font-style: normal; font-display: swap;
    src: url(../fonts/Lustra/Lustra-Text-Regular.woff2) format('woff2'), url(../fonts/Lustra/Lustra-Text-Regular.woff) format('woff'), url(../fonts/Lustra/Lustra-Text-Regular.ttf) format('truetype'); }
@font-face { font-family: 'Lustra'; font-weight: 600 700; font-style: normal; font-display: swap;
    src: url(../fonts/Lustra/Lustra-Text-SemiBold.woff2) format('woff2'), url(../fonts/Lustra/Lustra-Text-SemiBold.woff) format('woff'), url(../fonts/Lustra/Lustra-Text-SemiBold.ttf) format('truetype'); }
:root {
    --mfr-primary: #2a2d77;
    --mfr-accent: #17b1ec;
    --mfr-dark: #0d1431;
    --mfr-text: #333a4d;
    --mfr-muted: #6b7388;
    --mfr-bg: #ffffff;
    --mfr-soft: #f2f5fb;
    --mfr-border: #dfe4ef;
    --mfr-cta: #ff8a00;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Lustra', 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--mfr-text);
    background: var(--mfr-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--mfr-primary); }
a:hover { color: var(--mfr-accent); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Cabecera */
.l-header { background: #fff; border-bottom: 4px solid var(--mfr-primary); position: sticky; top: 0; z-index: 10; }
.l-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 100px; flex-wrap: wrap; }
.l-logo img { display: block; height: 75px; width: auto; }
.l-nav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 15px; }
.l-nav a { text-decoration: none; color: var(--mfr-primary); font-weight: 500; padding: 4px 0; }
.l-nav a[aria-current="page"] { border-bottom: 2px solid var(--mfr-accent); }
.l-nav a:hover { color: var(--mfr-accent); }

/* Migas de pan */
.l-crumbs { font-size: 14px; color: var(--mfr-muted); padding: 14px 0 0; }
.l-crumbs a { color: var(--mfr-muted); }

/* Hero */
.l-hero { background: linear-gradient(135deg, var(--mfr-primary) 0%, #1b4a8f 100%); color: #fff; padding: 56px 0 60px; }
.l-hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
.l-hero p.lead { font-size: clamp(17px, 2vw, 20px); max-width: 720px; margin: 0 0 28px; opacity: .95; }
.l-hero ul.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.l-hero ul.checks li::before { content: "\2713"; color: #7fe0ff; font-weight: 700; margin-right: 10px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 24px; border-radius: 30px; font-weight: 700; text-decoration: none; font-size: 16px; border: 2px solid transparent; }
.btn-cta { background: var(--mfr-cta); color: #fff; }
.btn-cta:hover { background: #e07700; color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--mfr-primary); }
.btn-primary { background: var(--mfr-primary); color: #fff; }
.btn-primary:hover { background: var(--mfr-accent); color: #fff; }

/* Secciones */
.l-section { padding: 54px 0; }
.l-section.soft { background: var(--mfr-soft); }
.l-section h2 { font-size: clamp(24px, 3vw, 32px); color: var(--mfr-primary); margin: 0 0 14px; line-height: 1.25; }
.l-section h3 { font-size: 20px; color: var(--mfr-primary); margin: 0 0 8px; }
.l-section p { margin: 0 0 14px; }
.l-section .intro { max-width: 760px; color: var(--mfr-muted); }
.grid { display: grid; gap: 20px; margin-top: 26px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--mfr-border); border-radius: 12px; padding: 22px; }
.soft .card { border-color: #d3dbec; }
.card ul { margin: 8px 0 0; padding-left: 20px; }
.card .tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 12px; margin-top: 10px; }
.tag.ok { background: #e3f6ea; color: #17703a; }
.tag.no { background: #fdeaea; color: #a32a2a; }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 54px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--mfr-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
table.compare { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 15px; background: #fff; }
table.compare th, table.compare td { border: 1px solid var(--mfr-border); padding: 10px 12px; text-align: left; vertical-align: top; }
table.compare th { background: var(--mfr-primary); color: #fff; }
.table-scroll { overflow-x: auto; }

/* FAQ */
details.faq { border: 1px solid var(--mfr-border); border-radius: 10px; background: #fff; margin: 0 0 12px; }
details.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; color: var(--mfr-primary); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; font-size: 22px; line-height: 1; color: var(--mfr-accent); }
details.faq[open] summary::after { content: "\2212"; }
details.faq .ans { padding: 0 18px 16px; }
details.faq .ans p:last-child { margin-bottom: 0; }

/* Bloque CTA final */
.l-cta { background: var(--mfr-dark); color: #fff; text-align: center; padding: 52px 0; }
.l-cta h2 { color: #fff; margin: 0 0 10px; }
.l-cta p { max-width: 640px; margin: 0 auto 24px; opacity: .9; }
.l-cta .btn-row { justify-content: center; }

/* Pie */
.l-footer { background: #090e24; color: #aeb6cf; font-size: 14px; padding: 28px 0; }
.l-footer a { color: #d6dcf0; text-decoration: none; margin-right: 16px; display: inline-block; padding: 3px 0; }
.l-footer a:hover { color: #fff; text-decoration: underline; }
.l-footer p { margin: 10px 0 0; }

@media (max-width: 600px) {
    body { font-size: 16px; }
    .l-hero { padding: 40px 0 44px; }
    .l-section { padding: 40px 0; }
    .l-header .wrap { padding-top: 8px; padding-bottom: 8px; min-height: 76px; }
    .l-logo img { height: 56px; }
}
