/* Virtus Brokers360 · estilos de las páginas interiores (blog, artículos, recursos, 404).
   La portada (index.html) lleva los suyos dentro; las fichas, la cabecera, el pie y los botones son los mismos. */

:root {
    --navy-950: #00102C;
    --navy-900: #061A38;
    --navy-800: #0C2648;
    --navy-700: #16365F;
    --navy-100: #E6ECF5;
    --amber: #F39D39;
    --amber-600: #E2861F;
    --amber-700: #A55406;
    --amber-100: #FDEBD3;
    --amber-50: #FFF7EC;
    --ink: #0E1A2B;
    --text: #3A4557;
    --muted: #5F6B7E;
    --line: #E3E7EE;
    --soft: #F4F6FA;
    --white: #FFFFFF;
    --ok: #12A150;
    --ok-50: #EAF7EF;
    --ok-700: #0B6B35;
    --warn: #D99000;
    --warn-50: #FFF6E0;
    --warn-700: #8A5A00;
    --bad: #D64545;
    --bad-50: #FDECEC;
    --bad-700: #A32626;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow: 0 14px 34px -14px rgba(0, 16, 44, .22);
    --shadow-lg: 0 34px 70px -24px rgba(0, 16, 44, .45);
    --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 64px;
}
@media (min-width: 900px) { :root { --header-h: 76px; } }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--amber); color: var(--navy-950); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ============ Botones ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--navy-950); box-shadow: 0 10px 24px -10px rgba(243, 157, 57, .7); }
.btn-primary:hover { background: var(--amber-600); }
.btn-dark { background: var(--navy-950); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--navy-700); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }
.btn-wa { background: #25D366; color: #06331B; }
.btn-wa:hover { background: #1EBE5B; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
@media (max-width: 359px) { .btn, .btn-lg { white-space: normal; text-align: center; line-height: 1.2; padding: 8px 16px; } }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--amber-700); font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; width: 1.1em; height: 1.1em; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(3px); }

/* ============ Cabecera ============ */
.header { position: sticky; top: 0; z-index: 100; background: var(--navy-950); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { width: 30px; height: auto; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-name b { color: var(--amber); font-weight: 800; }
@media (min-width: 900px) { .brand img { width: 34px; } .brand-name { font-size: 1.3rem; } }
.nav-links { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.nav-cta { display: none !important; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--white); cursor: pointer; }
.icon-btn .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }
@media (min-width: 900px) { .nav-cta { display: inline-flex !important; } }
.mobile-menu { display: none; background: var(--navy-950); border-top: 1px solid rgba(255, 255, 255, .08); padding: 8px 0 20px; }
.menu-open .mobile-menu { display: block; }
.mobile-menu a:not(.btn) { display: block; padding: 13px 0; color: rgba(255, 255, 255, .9); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mobile-menu a[aria-current] { color: var(--amber); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }
@media (min-width: 1100px) {
    .nav-links { display: flex; align-items: center; gap: 4px; }
    .nav-links a { white-space: nowrap; color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 12px; border-radius: 10px; transition: color .2s, background-color .2s; }
    .nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
    .nav-links a[aria-current] { color: var(--amber); }
    .nav-phone, .menu-toggle, .mobile-menu, .menu-open .mobile-menu { display: none !important; }
}

/* ============ Banda de cabecera de página ============ */
.page-hero {
    position: relative; overflow: hidden; color: rgba(255, 255, 255, .8);
    background:
        radial-gradient(800px 420px at 90% 0%, rgba(243, 157, 57, .16), transparent 60%),
        linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
    padding: 28px 0 40px;
}
@media (min-width: 900px) { .page-hero { padding: 40px 0 56px; } }
.page-hero h1 { color: var(--white); font-size: clamp(1.75rem, 5.4vw, 2.9rem); font-weight: 800; max-width: 22ch; margin-bottom: 14px; }
.page-hero .lead { font-size: 1.06rem; color: rgba(255, 255, 255, .75); max-width: 62ch; margin: 0; }
@media (min-width: 900px) { .page-hero .lead { font-size: 1.15rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs .icon { width: 14px; height: 14px; opacity: .6; transform: rotate(-90deg); }

/* ============ Portada del blog ============ */
.section { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section-soft { background: var(--soft); }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 2px; margin: 0 -2px 24px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .filtros { flex-wrap: wrap; overflow: visible; } }
.filtro { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.filtro:hover { border-color: var(--navy-700); }
.filtro[aria-pressed="true"] { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.filtro span { font-weight: 500; opacity: .7; margin-left: 4px; }

.posts { display: grid; gap: 20px; }
@media (min-width: 640px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.post[hidden] { display: none; }
.post-img { position: relative; aspect-ratio: 16 / 9; background: var(--navy-100); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post-img img { transform: scale(1.04); }
.post-cat { position: absolute; left: 14px; top: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-950); background: var(--amber); border-radius: 999px; padding: 4px 10px; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.post h2, .post h3 { font-size: 1.12rem; margin-bottom: 8px; }
.post p { font-size: .93rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .icon { width: 14px; height: 14px; }

/* Destacado: el último artículo, a lo ancho */
.post-destacado { margin-bottom: 24px; }
@media (min-width: 900px) {
    .post-destacado { display: grid; grid-template-columns: 1.15fr 1fr; }
    .post-destacado .post-img { aspect-ratio: auto; min-height: 340px; }
    .post-destacado .post-body { padding: 36px 40px; justify-content: center; }
    .post-destacado h2 { font-size: 1.7rem; }
    .post-destacado p { flex: none; font-size: 1rem; }
}

/* ============ Artículo ============ */
.art-hero { padding-bottom: 120px; }
@media (min-width: 900px) { .art-hero { padding-bottom: 170px; } }
.art-hero h1 { max-width: 28ch; }
.art-cat { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-950); background: var(--amber); border-radius: 999px; padding: 4px 11px; margin-bottom: 14px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .9rem; color: rgba(255, 255, 255, .72); }
.art-meta span { display: inline-flex; align-items: center; gap: 7px; }
.art-meta .icon { width: 16px; height: 16px; color: var(--amber); }
.art-meta b { color: var(--white); font-weight: 600; }

.art-portada { margin: -96px auto 0; position: relative; z-index: 1; }
@media (min-width: 900px) { .art-portada { margin-top: -140px; } }
.art-portada img, .art-figura img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); background: var(--navy-100); }
.art-portada img { aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .art-portada img { aspect-ratio: 21 / 9; } }
.credito { display: block; margin-top: 8px; font-size: .75rem; color: var(--muted); text-align: right; }
.credito a { color: inherit; }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 56px; }
.art-layout > * { min-width: 0; }
@media (min-width: 1000px) { .art-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 48px; } }
.art-indice { align-self: start; }
@media (min-width: 1000px) { .art-indice { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; } }
.art-indice details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.art-indice summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-family: var(--font-head); font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.art-indice summary::-webkit-details-marker { display: none; }
.art-indice summary .icon { transition: transform .2s; }
.art-indice details[open] summary .icon { transform: rotate(180deg); }
.art-indice ol { counter-reset: ind; padding: 0 16px 14px; }
.art-indice li { counter-increment: ind; }
.art-indice a { display: flex; gap: 10px; padding: 7px 0; font-size: .9rem; line-height: 1.35; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.art-indice li:first-child a { border-top: 0; }
.art-indice a::before { content: counter(ind); flex: none; min-width: 1.4em; font-weight: 700; color: var(--amber-700); font-variant-numeric: tabular-nums; }
.art-indice a:hover, .art-indice a.is-activo { color: var(--ink); font-weight: 600; }
.art-indice a.is-activo::before { color: var(--amber-600); }
@media (min-width: 1000px) { .art-indice details { background: transparent; border: 0; } .art-indice summary { padding: 0 0 10px; cursor: default; pointer-events: none; } .art-indice summary .icon { display: none; } .art-indice ol { padding: 0; } }

/* Texto del artículo */
.prosa { max-width: 720px; font-size: 1.06rem; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
@media (min-width: 900px) { .prosa { font-size: 1.1rem; } }
.prosa > * + * { margin-top: 1.1em; }
.prosa p { margin: 0; }
.prosa > :is(.caja, .tabla, .comparar, .pasos, .cifras, .art-figura) + * { margin-top: 1.6em; }
.prosa p.lead, .prosa > p:first-child { font-size: 1.16em; line-height: 1.6; color: var(--ink); }
.prosa h2 { font-size: clamp(1.45rem, 3.4vw, 1.85rem); margin: 2.2em 0 .45em; padding-top: .9em; border-top: 1px solid var(--line); }
.prosa > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prosa h3 { font-size: 1.25rem; margin: 1.8em 0 0; }
.prosa h4, .prosa h5 { font-size: 1.05rem; margin: 1.4em 0 0; }
.prosa strong { color: var(--ink); font-weight: 600; }
.prosa a:not(.btn) { color: var(--amber-700); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prosa ul, .prosa ol { padding-left: 0; }
.prosa li { position: relative; padding-left: 1.6em; margin-top: .45em; }
.prosa ul > li::before { content: ""; position: absolute; left: .35em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-600); }
.prosa ol { counter-reset: lista; }
.prosa ol > li { counter-increment: lista; }
.prosa ol > li::before { content: counter(lista) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--amber-700); font-variant-numeric: tabular-nums; }

/* Cajas */
.caja { border-radius: var(--radius); padding: 20px 20px 18px; border: 1px solid var(--line); border-left-width: 4px; background: var(--soft); font-size: .97em; }
@media (min-width: 640px) { .caja { padding: 24px 26px 22px; } }
.caja > * + * { margin-top: .7em; }
.caja > :first-child { margin-top: 0; }
.caja h3, .caja h4, .caja h5 { font-size: 1.08rem; margin: 0 0 .35em; }
.caja-info { border-left-color: var(--navy-700); background: #F1F5FB; }
.caja-ejemplo { border-left-color: var(--amber); background: var(--amber-50); border-color: var(--amber-100); }
.caja-destacada { border: 0; background: linear-gradient(150deg, var(--navy-950), var(--navy-800)); color: rgba(255, 255, 255, .82); }
.caja-destacada h3, .caja-destacada h4, .caja-destacada h5, .caja-destacada strong { color: var(--white); }
.caja-destacada a:not(.btn) { color: var(--amber); }
.caja-aviso { border-left-color: var(--warn); background: var(--warn-50); border-color: #F6E2B0; }
.caja-aviso h3, .caja-aviso h4, .caja-aviso h5 { color: var(--warn-700); }
.caja-peligro { border-left-color: var(--bad); background: var(--bad-50); border-color: #F6CACA; }
.caja-peligro h3, .caja-peligro h4, .caja-peligro h5 { color: var(--bad-700); }
.caja-ok { border-left-color: var(--ok); background: var(--ok-50); border-color: #C9EBD6; }
.caja-ok h3, .caja-ok h4, .caja-ok h5 { color: var(--ok-700); }
.caja .acciones, .caja-destacada > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
.prosa .btn { text-decoration: none; margin-top: .4em; }
.prosa .btn + .btn { margin-left: 0; }
.caja-destacada .btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }

.importe { font-family: var(--font-head); font-weight: 800; font-size: 1.3em; color: var(--ink); line-height: 1.3; }
.caja-destacada .importe { color: var(--amber); }
.coste { display: inline-block; font-weight: 600; color: var(--bad-700); }
td.coste, td.importe { display: table-cell; font-size: inherit; line-height: inherit; }
td.importe { font-weight: 700; color: var(--ok-700); }
.cifra-grande { font-family: var(--font-head); font-weight: 800; font-size: 2.1em; color: var(--amber-700); line-height: 1.1; letter-spacing: -.02em; }

/* Comparación a dos columnas, pasos y cifras */
.comparar { display: grid; gap: 14px; }
@media (min-width: 700px) { .comparar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.comparar > .caja { margin-top: 0; }
.pasos { counter-reset: paso; display: grid; gap: 12px; }
.paso { counter-increment: paso; position: relative; padding: 18px 18px 16px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.paso::before { content: counter(paso); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 10px; background: var(--navy-950); color: var(--amber); font-family: var(--font-head); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.paso > * + * { margin-top: .5em; }
.paso h3, .paso h4 { font-size: 1.05rem; margin: 0; }
.cifras { display: grid; gap: 12px; }
@media (min-width: 560px) { .cifras { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.cifra { padding: 18px; border-radius: var(--radius); background: var(--navy-950); color: rgba(255, 255, 255, .75); font-size: .92em; line-height: 1.45; }
.cifra-num { font-family: var(--font-head); font-weight: 800; font-size: 2em; color: var(--amber); line-height: 1.1; margin-bottom: 6px; }
.checklist ul > li::before { content: ""; left: .1em; top: .38em; width: 18px; height: 18px; border-radius: 5px; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checklist li { padding-left: 1.9em; }
/* Ventajas (✅) e inconvenientes (❌) del .com, como icono */
.prosa li.pro, .prosa li.contra { padding-left: 1.9em; }
.prosa ul > li.pro::before, .prosa ul > li.contra::before { left: .1em; top: .38em; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6B35' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.prosa ul > li.contra::before { background: var(--bad-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A32626' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Tablas */
.tabla { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.tabla table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9em; line-height: 1.45; }
.tabla th, .tabla td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabla th { background: var(--navy-950); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: .95em; white-space: nowrap; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr:nth-child(even) td { background: var(--soft); }
.tabla td:first-child { font-weight: 600; color: var(--ink); }
.caja .tabla { background: var(--white); }

/* Imagen dentro del texto */
.art-figura { margin: 2em 0 0; }
.art-figura figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.art-figura figcaption a { color: inherit; }

/* Autor, llamada a la acción y relacionados */
.art-firma { display: flex; gap: 14px; align-items: center; max-width: 720px; margin-top: 48px; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); font-size: .93rem; }
.art-firma-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--navy-950); color: var(--amber); display: flex; align-items: center; justify-content: center; }
.art-firma-ico .icon { width: 24px; height: 24px; }
.art-firma b { display: block; color: var(--ink); font-family: var(--font-head); }
.art-firma p { margin: 2px 0 0; color: var(--muted); }

.cta-box { position: relative; overflow: hidden; display: grid; gap: 22px; align-items: center; padding: 28px 22px; border-radius: var(--radius-lg); color: rgba(255, 255, 255, .8); background: radial-gradient(600px 300px at 100% 0%, rgba(243, 157, 57, .22), transparent 60%), linear-gradient(150deg, var(--navy-950), var(--navy-800)); }
@media (min-width: 860px) { .cta-box { grid-template-columns: 1fr auto; padding: 40px 44px; gap: 32px; } }
.cta-box h2 { color: var(--white); font-size: clamp(1.4rem, 3.6vw, 1.9rem); margin-bottom: 8px; }
.cta-box p { margin: 0; max-width: 54ch; }
.cta-acciones { display: grid; gap: 10px; }
@media (min-width: 560px) { .cta-acciones { grid-auto-flow: column; } }
@media (min-width: 860px) { .cta-acciones { grid-auto-flow: row; min-width: 260px; } }

.relacionados { padding: 56px 0 72px; background: var(--soft); }
.relacionados h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); margin-bottom: 22px; }

/* ============ Recursos ============ */
.recursos { display: grid; gap: 20px; }
@media (min-width: 900px) { .recursos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.recurso { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.recurso-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--amber-50); color: var(--amber-700); display: flex; align-items: center; justify-content: center; }
.recurso-ico .icon { width: 28px; height: 28px; }
.recurso h2 { font-size: 1.3rem; margin: 4px 0 0; }
.recurso p { margin: 0; color: var(--muted); }
.recurso ul { display: grid; gap: 8px; margin: 4px 0 8px; flex: 1; align-content: start; }
.recurso li { display: flex; gap: 10px; font-size: .94rem; color: var(--text); }
.recurso li .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; stroke-width: 2.6; }
.recurso .btn { align-self: flex-start; }

/* ============ 404 ============ */
.no-encontrada { padding: 72px 0 96px; text-align: center; }
.no-encontrada .codigo { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 18vw, 7rem); color: var(--amber); line-height: 1; letter-spacing: -.04em; }
.no-encontrada h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 10px 0 12px; }
.no-encontrada p { max-width: 46ch; margin: 0 auto 26px; color: var(--muted); }
.no-encontrada .acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ============ Pie ============ */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .68); padding: 56px 0 0; font-size: .93rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; } }
.footer h2 { color: var(--white); font-size: .95rem; margin-bottom: 16px; letter-spacing: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer-links li { margin-bottom: 10px; }
.footer .brand { margin-bottom: 16px; }
.footer-about p { max-width: 340px; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-list .icon { width: 18px; height: 18px; color: var(--amber); margin-top: 3px; }
.contact-list b { display: block; color: var(--white); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .83rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bde { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 6px; }
.footer-bde img { height: 32px; width: auto; filter: brightness(0) invert(1); }   /* el logo es negro: en blanco sobre el fondo oscuro */
.footer-bde b { color: var(--white); font-weight: 600; }
.footer-bde:hover span { color: var(--white); }
.footer-creditos { flex-basis: 100%; font-size: .78rem; color: rgba(255, 255, 255, .5); }
.footer-creditos a { text-decoration: underline; }

/* ============ Contacto flotante ============ */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: #25D366; color: var(--white); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0, 16, 44, .25); }
.mobile-bar .btn { min-height: 46px; padding: 0 10px; font-size: .92rem; gap: .4em; }
@media (max-width: 359px) {
    .mobile-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 6px; padding-left: 8px; padding-right: 8px; }
    .mobile-bar .btn { padding: 0 6px; font-size: .84rem; gap: .3em; }
}
.footer { padding-bottom: 76px; }
@media (min-width: 900px) {
    .footer { padding-bottom: 0; }
    .mobile-bar { display: none; }
    .wa-float { display: flex; }
}

@media print {
    .header, .mobile-bar, .wa-float, .art-indice, .cta-box, .relacionados, .footer { display: none !important; }
    .art-hero { padding-bottom: 24px; }
    .art-portada { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
