/* ============================================================
   LEG Technologies — site.css
   Lenguaje visual inspirado en Redwood (oracle.com), adaptado a LEG.
   Sin build. Objetivo: < 60 KB.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
    --ink: #161513;
    --ink-2: #4B4845;
    --ink-3: #6F6B67;
    --paper: #FBF9F8;
    --sand: #F5F3F0;
    --sand-2: #EDE9E4;
    --line: #E4E1DD;
    --line-2: #C9C4BE;
    --navy: #0D1F2D;
    --navy-2: #12293B;
    --navy-3: #1B3A52;
    --leg: #2EA3D2;
    --leg-deep: #1A6E96;
    --ok: #2E7D5B;
    --warn: #B26B00;
    --danger: #B3261E;
    --brand: var(--leg);
    --brand-deep: var(--leg-deep);
    --card-accent: var(--brand);

    --radius-btn: 4px;
    --radius-card: 8px;
    --radius-panel: 16px;

    --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1280px;
    --gutter: 24px;
    --section-y: clamp(64px, 8vw, 120px);
    --header-h: 64px;
    --shadow: 0 1px 2px rgba(22, 21, 19, .06), 0 8px 24px rgba(22, 21, 19, .06);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--font); font-size: 18px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--leg-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--leg); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgba(46, 163, 210, .25); }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .45em; font-weight: 700; text-wrap: balance; }
h1, .hero-title { font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.8vw, 52px); font-weight: 800; }
h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 4px; }
.skip-link:focus { left: 8px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.eyebrow { text-transform: uppercase; font-size: 13px; line-height: 1.3; letter-spacing: .14em; font-weight: 700; color: var(--leg-deep); margin: 0 0 16px; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.hl { color: var(--leg); }
.meta, .footnote { color: var(--ink-3); font-size: 15px; }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- 3. Botones y enlaces ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px; border-radius: var(--radius-btn);
    font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy-3); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn .icon-arrow, .link-arrow .icon-arrow { transition: transform .2s var(--ease); }
.btn:hover .icon-arrow, .link-arrow:hover .icon-arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn-row.center { justify-content: center; }
.btn-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--leg-deep); text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow:hover { color: var(--leg-deep); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--sand); }

/* ---------- 4. Bloques: fondos ---------- */
.block { padding: var(--section-y) 0; position: relative; }
.bg-light { background: var(--paper); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--navy); color: #fff; }
.bg-brand { background: var(--brand-deep); color: #fff; }
.bg-image { background: var(--navy); color: #fff; }
.on-dark .eyebrow { color: #7FCBEA; }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, .82); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .hl { color: #7FCBEA; }
.bg-brand .hl, .bg-brand .eyebrow { color: #fff; }
.on-dark a:not(.btn) { color: #fff; }
.on-dark .link-arrow { color: #fff; }
.on-dark .meta, .on-dark .footnote { color: rgba(255, 255, 255, .7); }
.block + .block.bg-light:not(.block-hero), .block.bg-light + .block.bg-light { border-top: 1px solid var(--line); }
.section-center { text-align: center; }
.section-center .lead { margin-left: auto; margin-right: auto; }

.section-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lead { margin-bottom: 0; }
.section-head-compact { margin-bottom: 24px; }
.section-head-compact h2 { font-size: clamp(22px, 2vw, 28px); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head-row .section-head { margin-bottom: 0; }
.block-link { margin: 32px 0 0; }


/* ---------- 5. Barra de anuncio, header y mega menú ---------- */
.announcement { background: var(--navy); color: #fff; font-size: 15px; text-align: center; padding: 8px 0; }
.announcement a { color: #fff; text-decoration: none; font-weight: 600; }
.announcement a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(22, 21, 19, .08); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .2s; }
.site-header.is-scrolled .header-inner { height: 56px; }
.brand { flex-shrink: 0; }
.brand img { height: 36px; width: auto; }

.main-nav { flex: 1; min-width: 0; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
    display: inline-flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 12px;
    background: none; border: 0; cursor: pointer; text-decoration: none;
    font: 600 16px/1 var(--font); color: var(--ink); position: relative;
}
.site-header.is-scrolled .nav-link { height: 56px; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--ink); transform: scaleX(0); transition: transform .2s var(--ease); }
.nav-link:hover::after, .nav-item.open > .nav-link::after { transform: scaleX(1); }
.nav-link:hover { color: var(--ink); }
.nav-caret { transition: transform .2s; }
.nav-item.open .nav-caret { transform: rotate(180deg); }

.mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(22, 21, 19, .12);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.nav-item.open > .mega { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
html:not(.js) .has-mega:hover > .mega, html:not(.js) .has-mega:focus-within > .mega { visibility: visible; opacity: 1; transform: none; }
.mega-inner { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-top: 32px; padding-bottom: 40px; }
.mega-inner:not(:has(.mega-featured)) { grid-template-columns: 1fr; }
.mega-cols { display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-cols-1 { grid-template-columns: minmax(0, 420px); }
.mega-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-group { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-3); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega-link { display: flex; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.mega-link:hover { background: var(--sand); color: var(--ink); }
.mega-link strong { display: block; font-weight: 700; font-size: 16px; }
.mega-link small { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.mega-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--sand); color: var(--leg-deep); flex-shrink: 0; }
.mega-link:hover .mega-icon { background: #fff; }
.mega-featured {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end;
    min-height: 240px; padding: 24px; border-radius: var(--radius-card); background: var(--navy); color: #fff; text-decoration: none;
}
.mega-featured:hover { color: #fff; background: var(--navy-2); }
.mega-featured .eyebrow { color: #7FCBEA; margin: 0; }
.mega-featured strong { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.mega-featured > span:not(.eyebrow):not(.link-arrow) { color: rgba(255, 255, 255, .8); font-size: 15px; }
.mega-featured .link-arrow { color: #fff; margin-top: 8px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-login { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.header-login:hover { background: var(--sand); color: var(--ink); }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

.search-overlay { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(22, 21, 19, .12); padding: 24px 0; }
.search-form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 clamp(20px, 2.4vw, 28px)/1.2 var(--font); padding: 8px 0; color: var(--ink); }
.search-form input:focus { outline: none; }

.mobile-nav { display: none; }

/* ---------- 6. Breadcrumbs / borrador ---------- */
.breadcrumbs-bar { background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 12px 0; font-size: 14px; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.draft-bar { background: var(--warn); color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.legal-head { padding-bottom: 0; }
.page-legal .block { padding: 40px 0; }
.page-legal .block:last-child { padding-bottom: var(--section-y); }
.page-legal .block + .block { border-top: 0; }
.legal-head h1 { font-size: clamp(36px, 4.4vw, 56px); margin-top: 16px; }

/* ---------- 7. Hero ---------- */
.block-hero { padding: 0; overflow: hidden; }
.hero { position: relative; padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.hero-light { background: var(--paper); }
.hero-dark { background: var(--navy); }
.hero-brand { background: var(--brand-deep); }
.hero-image { background: var(--navy) var(--hero-img) center / cover no-repeat; }
.hero-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 31, 45, .92), rgba(13, 31, 45, .55)); }
.hero > * { position: relative; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-grid.has-visual { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; max-width: 860px; }
.hero-slide[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
.js .hero-slide { transition: opacity .5s var(--ease), visibility 0s .5s; }
.js .hero-slide.is-active { transition: opacity .5s var(--ease); }
.hero-slide .lead { margin-top: 8px; }
.hero-logo { margin-bottom: 24px; }
.hero .brand-wordmark { font-size: 28px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 28px 0 0; padding: 0; }
.chip-list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .6); }
.chip-list .icon { color: var(--leg-deep); }
.on-dark .chip-list li { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; }
.on-dark .chip-list .icon { color: #7FCBEA; }
.hero-visual { display: grid; place-items: center; }
.hero-visual-image img { border-radius: var(--radius-panel); width: 100%; }

.hero-controls { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.hero-dots { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.hero-dot { flex: 1; height: 28px; padding: 12px 0; border: 0; background: none; cursor: pointer; }
.hero-dot-bar { display: block; height: 3px; background: rgba(127, 127, 127, .35); position: relative; overflow: hidden; border-radius: 2px; }
.hero-dot-bar::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active .hero-dot-bar::after { animation: heroProgress var(--hero-interval, 7s) linear forwards; }
.hero-dot.is-done .hero-dot-bar::after { transform: scaleX(1); }
.hero.is-paused .hero-dot.is-active .hero-dot-bar::after { animation-play-state: paused; }
.on-dark .hero-dot { color: #fff; }
.hero-pause { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; background: none; cursor: pointer; opacity: .8; }
.hero-pause .icon-play { display: none; }
.hero.is-paused .hero-pause .icon-play { display: block; }
.hero.is-paused .hero-pause .icon-pause { display: none; }
@keyframes heroProgress { to { transform: scaleX(1); } }

/* Tarjeta IPv4 (ilustración CSS) */
.ipv4-card { width: min(380px, 100%); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-panel); padding: 24px; color: #fff; }
.ipv4-card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin-bottom: 16px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #7FE0B0; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.ipv4-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ipv4-card li { display: grid; grid-template-columns: 48px 72px 1fr; align-items: center; gap: 12px; font-size: 15px; }
.ipv4-card code { font: 700 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #7FCBEA; }
.ipv4-card .bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--leg), rgba(46, 163, 210, .2)); }
.ipv4-card li:nth-child(2) .bar { width: 82%; } .ipv4-card li:nth-child(3) .bar { width: 64%; } .ipv4-card li:nth-child(4) .bar { width: 46%; } .ipv4-card li:nth-child(5) .bar { width: 30%; } .ipv4-card li:nth-child(6) .bar { width: 16%; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- 8. Marcas (logos) ---------- */
.brand-logo { width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.logo-white { filter: brightness(0) invert(1); }
.brand-wordmark { display: inline-block; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--brand); line-height: 40px; height: auto; }
.on-dark .brand-wordmark, .card-featured .brand-wordmark { color: #fff; }

/* ---------- 9. Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.stats-1 { grid-template-columns: 1fr; } .stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 8px 24px 8px 0; border-left: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.on-dark .stat { border-color: rgba(255, 255, 255, .18); }
.stat dt { font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat dd { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; }
.on-dark .stat dd { color: rgba(255, 255, 255, .78); }
.block-stats .footnote { margin: 32px 0 0; }

/* ---------- 10. Tarjetas ---------- */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card {
    position: relative; display: flex; flex-direction: column; gap: 4px;
    padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
    transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.bg-light .card { background: #fff; }
.bg-sand .card { background: #fff; }
.on-dark .card:not(.card-featured) { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.on-dark .card:not(.card-featured):hover { border-color: rgba(255, 255, 255, .35); }
.card h3 { margin: 8px 0 6px; }
.card p { color: var(--ink-2); font-size: 17px; margin-bottom: 8px; }
.on-dark .card p { color: rgba(255, 255, 255, .78); }
.card .link-arrow { margin-top: auto; padding-top: 16px; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--sand); color: var(--leg-deep); margin-bottom: 8px; }
.bg-sand .card-icon { background: var(--sand-2); }
.on-dark .card-icon { background: rgba(127, 203, 234, .12); color: #7FCBEA; }
.card-logo { min-height: 40px; margin-bottom: 12px; display: flex; align-items: center; }
.card-logo img:not(.brand-logo) { max-height: 40px; width: auto; }
.card-badge { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); margin-bottom: 8px; }
.cards-accent .card { border-top: 4px solid var(--card-accent); }
.cards-plain .card { background: transparent; border-color: transparent; padding: 8px 0; }
.cards-plain .card:hover { transform: none; box-shadow: none; border-color: transparent; }
.cards-plain .card h3 { border-top: 2px solid var(--ink); padding-top: 16px; }
.on-dark .cards-plain .card h3 { border-color: rgba(255, 255, 255, .5); }
.cards-numbered .card-number { font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--brand-deep); }
.on-dark .cards-numbered .card-number { color: #7FCBEA; }
.cards-logo .card { border-top: 4px solid var(--card-accent); }
.card-featured { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff; }
.card-featured h3 { color: #fff; }
.card-featured p, .card-featured .check-list li { color: rgba(255, 255, 255, .82) !important; }
.card-featured .card-icon { background: rgba(127, 203, 234, .14); color: #7FCBEA; }
.card-featured .card-badge { background: var(--leg); color: #fff; }
.card-featured .card-number { color: #7FCBEA; }
.card-featured .link-arrow { color: #fff; }
.card-featured .check-list .icon { color: #7FCBEA; }
.cards-footer { margin: 40px 0 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.01em; text-align: center; }

.check-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.check-list .icon { color: var(--leg-deep); margin-top: 3px; }
.on-dark .check-list li { color: rgba(255, 255, 255, .85); }
.on-dark .check-list .icon { color: #7FCBEA; }

/* ---------- 11. Ecosistema ---------- */
.brand-grid { display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.brand-grid.cols-1 { grid-template-columns: minmax(0, 320px); } .brand-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .brand-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brand-card {
    display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; min-height: 220px;
    background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--card-accent); border-radius: var(--radius-card);
    text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.brand-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); border-top-color: var(--card-accent); }
.brand-card-logo { min-height: 60px; display: flex; align-items: center; }
.brand-card-text { color: var(--ink-2); font-size: 16px; flex: 1; }
.on-dark .brand-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); border-top-color: var(--card-accent); color: #fff; }
.on-dark .brand-card-text { color: rgba(255, 255, 255, .8); }

.brand-ring { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.brand-ring::before { content: ""; position: absolute; inset: 14%; border: 2px dashed var(--line-2); border-radius: 50%; }
.brand-ring-center { position: absolute; inset: 32%; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: var(--shadow); padding: 12%; }
.brand-ring ul { list-style: none; margin: 0; padding: 0; }
.brand-ring li {
    --a: calc(360deg / var(--n) * var(--i) - 90deg);
    position: absolute; left: 50%; top: 50%; width: 24%; height: 13%;
    /* Radio relativo al anillo (cqw): 50% + 36% + 12% = 98% → nunca se sale del contenedor. */
    transform: translate(-50%, -50%) rotate(var(--a)) translate(36cqw) rotate(calc(var(--a) * -1));
}
.brand-ring li a { display: grid; place-items: center; width: 100%; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; overflow: hidden; }
.brand-ring .brand-logo { height: auto !important; max-height: 9cqw; max-width: 100%; object-position: center; }
.brand-ring-center img { width: 80%; height: auto; }

/* ---------- 12. Logos ---------- */
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.on-dark .logo-wall { border: 0; gap: 12px; }
.on-dark .logo-wall li { border: 0; border-radius: var(--radius-card); background: #fff; }
.logo-tile { display: grid; place-items: center; height: 112px; padding: 20px 24px; text-decoration: none; color: var(--ink-2); }
.logo-tile img { max-height: 52px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-on-dark img { filter: grayscale(1); opacity: .85; }
.logo-on-dark:hover img { filter: none; opacity: 1; }
.on-dark .logo-name { color: var(--ink-2); }
.logo-name { font-weight: 700; font-size: 16px; text-align: center; line-height: 1.25; }


.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; gap: 0; list-style: none; margin: 0; padding: 0; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee .logo-tile { width: 190px; height: 88px; }
@keyframes marquee { to { transform: translateX(-100%); } }
.block-logos:has(.marquee) { padding: 48px 0; }

/* ---------- 13. Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps-1 { grid-template-columns: 1fr; }
.step { position: relative; padding-top: 72px; }
.step::before { content: ""; position: absolute; top: 24px; left: 56px; right: -32px; height: 2px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step-num { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 20px; }
.on-dark .step-num { background: #fff; color: var(--ink); }
.on-dark .step::before { background: rgba(255, 255, 255, .25); }
.step p { color: var(--ink-2); font-size: 17px; }

/* ---------- 14. Split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media-left .split-media { order: -1; }
.split-single { grid-template-columns: minmax(0, 860px); }
.prose { font-size: 18px; color: var(--ink-2); }
.prose p { margin-bottom: 1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 1.4em; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-card); margin: 1.5em 0; height: auto; }
.prose a { color: var(--leg-deep); }
.prose strong { color: var(--ink); }
.on-dark .prose, .on-dark .prose strong { color: rgba(255, 255, 255, .85); }
.on-dark .prose strong { color: #fff; }
.list-title { font-weight: 700; margin: 24px 0 0; }
.closing { margin-top: 24px; font-weight: 600; font-size: 19px; }
.split-image img { border-radius: var(--radius-panel); width: 100%; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-panel); }
.mini-stats > div { padding: 28px; border-bottom: 1px solid var(--line); }
.mini-stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.mini-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.mini-stats dt { font-size: clamp(32px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.mini-stats dd { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.on-dark .mini-stats { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.on-dark .mini-stats > div { border-color: rgba(255, 255, 255, .14); }
.on-dark .mini-stats dt { color: #fff; }
.on-dark .mini-stats dd { color: rgba(255, 255, 255, .78); }
.chip-list-wrap { margin: 0 0 24px; }
.ptr-card { display: grid; gap: 16px; padding: 32px; border-radius: var(--radius-panel); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); }
.bg-light .ptr-card, .bg-sand .ptr-card { background: #fff; border-color: var(--line); }
.ptr-row { display: grid; gap: 4px; }
.ptr-label { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; opacity: .7; }
.ptr-row code { font: 700 clamp(22px, 2.4vw, 30px)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #7FCBEA; }
.bg-light .ptr-row code, .bg-sand .ptr-row code { color: var(--leg-deep); }
.ptr-arrow { display: flex; align-items: center; gap: 8px; font-weight: 700; opacity: .8; }
.ptr-arrow .icon { transform: rotate(90deg); }

/* ---------- 15. Pestañas ---------- */
.tab-list { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 40px; scrollbar-width: thin; }
.tab { flex-shrink: 0; padding: 14px 20px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 17px; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.on-dark .tab-list { border-color: rgba(255, 255, 255, .2); }
.on-dark .tab { color: rgba(255, 255, 255, .7); }
.on-dark .tab[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.tab-panel p { color: var(--ink-2); font-size: 19px; }
.tab-brand { margin-bottom: 16px; }
.tab-panel-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-panel); background: var(--navy); overflow: hidden; border-top: 6px solid var(--card-accent); }
.tab-panel-media img { width: 100%; height: 100%; object-fit: cover; }
.tab-media-logo { position: relative; padding: 24px; }
.tab-media-logo .brand-wordmark { font-size: 36px; color: #fff; }

/* ---------- 16. Compare / checklist / flow / chips ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.compare-col { padding: 32px; border-radius: var(--radius-card); border: 1px solid var(--line); background: #fff; }
.compare-left { background: var(--sand); }
.bg-sand .compare-left { background: #fff; }
.compare-right { border-top: 4px solid var(--leg); }
.compare-col h3 { margin-bottom: 20px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.compare-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.compare-chips .compare-left li { color: var(--ink); }
.compare-chips .compare-left .icon { color: var(--warn); }
.compare-chips .compare-right li { background: var(--sand); border-color: transparent; }
.compare-chips .compare-right .icon { color: var(--leg-deep); }
.compare-list ul { display: grid; gap: 12px; }
.compare-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.compare-list .compare-left .icon { color: var(--danger); margin-top: 3px; }
.compare-list .compare-right .icon { color: var(--ok); margin-top: 3px; }
.compare-arrow { display: grid; place-items: center; color: var(--ink-3); }
.compare-footer { margin: 40px auto 0; max-width: 820px; text-align: center; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -.01em; }
.on-dark .compare-col { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.on-dark .compare-chips li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }

.checklist { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.question-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.question-list li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 19px; font-weight: 600; }
.question-list .icon { color: var(--leg-deep); }
.offer-panel { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-panel); background: var(--navy); color: #fff; }
.offer-panel h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.offer-panel > * { position: relative; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.flow-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .flow-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.flow-step { position: relative; display: flex; flex-direction: column; }
.flow-label { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--ink-3); margin: 0 0 12px; }
.flow-box { flex: 1; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.flow-highlight .flow-box { background: var(--navy); border-color: var(--navy); color: #fff; }
.flow-highlight .flow-label { color: var(--leg-deep); }
.flow-logo { min-height: 36px; margin-bottom: 12px; display: flex; align-items: center; }
.flow-logo img:not(.brand-logo) { max-height: 32px; width: auto; }
.flow-title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.flow-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 16px; color: var(--ink-2); }
.flow-highlight .flow-box ul { color: rgba(255, 255, 255, .85); }
.flow-arrow { position: absolute; right: -32px; top: calc(50% + 12px); transform: translateY(-50%); color: var(--ink-3); }

.capabilities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.capability { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); font-weight: 700; font-size: 18px; }
.capability-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--sand); color: var(--leg-deep); flex-shrink: 0; }
.capability.is-highlight { background: var(--navy); border-color: var(--navy); color: #fff; }
.capability.is-highlight .capability-icon { background: var(--leg); color: #fff; }
.on-dark .capability { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: #fff; }
.on-dark .capability-icon { background: rgba(127, 203, 234, .12); color: #7FCBEA; }
.on-dark .capability.is-highlight { background: var(--leg); border-color: var(--leg); }

/* ---------- 17. Banner / aviso / FAQ ---------- */
.block-banner { padding: clamp(48px, 6vw, 80px) 0; }
.banner { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.banner-icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, .14); flex-shrink: 0; }
.bg-light .banner-icon, .bg-sand .banner-icon { background: var(--navy); color: #fff; }
.banner-text { flex: 1; }
.banner-text h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.banner-text p:last-child { margin: 0; max-width: 60em; }

.block-notice { padding: 32px 0; }
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius-card); border: 1px solid; border-left-width: 6px; }
.notice p { margin: 0; font-size: 17px; }
.notice-warning { background: #FFF6E5; border-color: #F2D59A; border-left-color: var(--warn); color: #4A3200; }
.notice-warning .icon { color: var(--warn); }
.notice-info { background: #EAF5FA; border-color: #BFE0EE; border-left-color: var(--leg-deep); color: #0F3E55; }
.notice-info .icon { color: var(--leg-deep); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0 20px; color: var(--ink-2); font-size: 17px; }
.faq-answer p { margin: 0; }
.on-dark .faq, .on-dark .faq-item { border-color: rgba(255, 255, 255, .2); }

/* ---------- 18. Entradas ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.post-card-link:hover { color: var(--ink); }
.post-card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.post-card-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: var(--navy); display: grid; place-items: center; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card-media .post-card-placeholder { width: 38%; height: auto; object-fit: contain; opacity: .85; }
.post-card-link:hover .post-card-media img { transform: scale(1.03); }
.post-card-body { padding: 20px 0 0; }
.post-card-body .eyebrow { margin-bottom: 8px; }
.post-card-body h3 { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
.post-card-body time { color: var(--ink-3); font-size: 15px; }
.on-dark .post-card-link { color: #fff; }
.on-dark .post-card-body time { color: rgba(255, 255, 255, .65); }

/* ---------- 19. Formularios ---------- */
.form-block { display: grid; gap: clamp(32px, 6vw, 80px); }
.form-with-contact { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.dyn-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-panel); padding: clamp(24px, 3.5vw, 40px); color: var(--ink); }
.on-dark .dyn-form p { color: var(--ink-2); }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.field { grid-column: 1 / -1; display: grid; gap: 6px; margin: 0; min-width: 0; }
.field-half { grid-column: span 1; }
.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--ink); padding: 0; }
.field-options { border: 0; padding: 0; }
.req { color: var(--danger); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field select, .field textarea,
.newsletter-form input[type=email] {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-btn);
    background: #fff; color: var(--ink); font: 400 17px/1.4 var(--font); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .newsletter-form input:focus { outline: none; border-color: var(--leg-deep); box-shadow: 0 0 0 3px rgba(46, 163, 210, .25); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field-help { color: var(--ink-3); font-size: 14px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 16px !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--leg-deep); flex-shrink: 0; }
.field-consent .check { font-size: 15px !important; color: var(--ink-2); }
.form-heading { grid-column: 1 / -1; font-size: 20px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.form-heading:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.repeat-group { border: 0; padding: 0; }
.repeat-items { display: grid; gap: 16px; margin-bottom: 16px; }
.repeat-item { padding: 20px; background: var(--sand); border-radius: var(--radius-card); }
.repeat-remove { grid-column: 1 / -1; justify-self: end; }
.form-required-note { font-size: 14px; color: var(--ink-3); margin: 16px 0 0; }
.form-actions { margin-top: 20px; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--danger); }
.form-alt { margin-top: 20px; font-size: 16px; }
.form-alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.contact-aside { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-panel); background: var(--navy); color: #fff; }
.contact-aside h3 { color: #fff; }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: #7FCBEA; margin-top: 2px; }
.contact-list small { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .65); font-weight: 700; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- 20. CTA ---------- */
.block-cta { overflow: hidden; }
.cta-block { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta-block:not(:has(.channels)) { grid-template-columns: minmax(0, 900px); }
.cta-text h2 { font-size: clamp(34px, 4.6vw, 60px); }
.cta-text .btn-row { margin-top: 32px; }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.channels a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-card); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.channels a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.channels small { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.bg-light .channels a, .bg-sand .channels a { border-color: var(--line); background: #fff; color: var(--ink); }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.4fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand img { height: 40px; width: auto; }
.footer-tagline { margin: 12px 0 20px; font-weight: 600; color: var(--ink); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--leg-deep); margin-top: 2px; }
.footer-contact a { color: var(--ink-2); text-decoration: none; }
.footer-contact a:hover { color: var(--ink); text-decoration: underline; }
.footer-social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); }
.footer-social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-title { font-weight: 700; color: var(--ink); font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-newsletter > p { font-size: 15px; }
.newsletter-form { display: grid; grid-template-columns: 1fr; gap: 8px; justify-items: start; }
.newsletter-form input[type=email] { justify-self: stretch; }
.newsletter-form .form-status { grid-column: 1 / -1; font-size: 15px; margin: 0; }
.footer-members { margin-top: 28px; }
.footer-members ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-size: 14px; font-weight: 600; }
.footer-members img { max-height: 40px; width: auto; }
.footer-bottom { background: var(--navy); color: rgba(255, 255, 255, .75); font-size: 14px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- 22. WhatsApp flotante / error / estado ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.error-page { padding: clamp(80px, 12vw, 160px) 0; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.status-list li { padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1180px) {
    .header-login span { display: none; }
    .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand, .footer-newsletter { grid-column: span 3; }
    .footer-newsletter { max-width: 560px; }
    .cards.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .flow, .flow-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow-arrow { display: none; }
}

@media (max-width: 1024px) {
    :root { --header-h: 60px; }
    .main-nav, .header-cta { display: none; }
    .menu-toggle { display: inline-grid; }
    .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 0; background: #fff; overflow-y: auto; padding: 8px 0 120px; z-index: 99; }
    .mobile-nav[hidden] { display: none; }
    .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
    .mobile-nav > nav > ul > li { border-bottom: 1px solid var(--line); }
    .mobile-nav summary, .mobile-top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); font-weight: 700; font-size: 20px; cursor: pointer; list-style: none; color: var(--ink); text-decoration: none; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav details[open] summary .icon { transform: rotate(180deg); }
    .mobile-nav details ul { padding: 0 var(--gutter) 16px; display: grid; gap: 4px; }
    .mobile-nav details a { display: block; padding: 10px 0; color: var(--ink-2); text-decoration: none; font-size: 17px; }
    .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 16px var(--gutter); background: #fff; border-top: 1px solid var(--line); }
    body.menu-open { overflow: hidden; }
    body.menu-open .wa-float { display: none; }

    .hero-grid.has-visual { grid-template-columns: 1fr; }
    .cards, .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats, .stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .steps, .steps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step::before { display: none; }
    .split, .tab-panel, .checklist, .faq-wrap, .form-with-contact, .cta-block { grid-template-columns: 1fr; }
    .split-media-left .split-media { order: 0; }
    .tab-panel-media { aspect-ratio: 16 / 7; }
    .compare { grid-template-columns: 1fr; }
    .compare-arrow { transform: rotate(90deg); }
    .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mega { display: none; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 17px; }
    .brand img { height: 30px; }
    .header-inner { gap: 8px; }
    .header-login { display: none; }
    .btn-row .btn { flex: 1 1 100%; }
    .cards, .cards.cols-2, .cards.cols-3, .cards.cols-4, .cards.cols-5 { grid-template-columns: 1fr; }
    .brand-grid, .brand-grid.cols-2, .brand-grid.cols-3, .brand-grid.cols-4 { grid-template-columns: 1fr; }
    .brand-card { min-height: 0; }
    .steps, .steps-2, .steps-3 { grid-template-columns: 1fr; }
    .flow, .flow-2, .flow-3, .flow-5 { grid-template-columns: 1fr; }
    .capabilities, .post-grid { grid-template-columns: 1fr; }
    .fields-grid { grid-template-columns: 1fr; }
    .field-half { grid-column: 1 / -1; }
    .mini-stats { grid-template-columns: 1fr 1fr; }
    .mini-stats > div { padding: 20px; }
    .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logo-tile { height: 96px; padding: 16px; }
    .banner { flex-direction: column; align-items: flex-start; }
    .banner-icon { width: 64px; height: 64px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 48px; }
    .footer-brand, .footer-newsletter { grid-column: 1 / -1; }
    .newsletter-form { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .brand-ring li a { padding: 4px 6px; border-radius: 8px; }
    .ipv4-card li { grid-template-columns: 40px 64px 1fr; }
    .compare-col { padding: 24px 20px; }
    .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .marquee-track { animation: none; }
    .marquee-track[aria-hidden="true"] { display: none; }
}

@media print {
    .site-header, .site-footer, .wa-float, .announcement, .hero-controls { display: none !important; }
    .block { padding: 24px 0; }
}

/* ---------- Fase 4: resultado de formularios ---------- */
.form-result { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius-btn); font-weight: 600; border: 1px solid; }
.form-result.is-ok { background: #EAF4EF; border-color: #BFDDCD; color: var(--ok); }
.form-result.is-error { background: #FBEDEC; border-color: #F0C4C1; color: var(--danger); }
.cf-turnstile { margin-top: 16px; }
.on-dark .form-status.is-ok { color: #7FE0B0; }

/* ---------- Fase 5: blog, entradas, búsqueda ---------- */
.archive-head { padding-bottom: 24px; }
.archive-head h1 { font-size: clamp(36px, 4.6vw, 60px); }
.archive-body { padding-top: 24px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; }
.pager ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pager li a, .pager li span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius-btn); text-decoration: none; font-weight: 600; color: var(--ink); }
.pager li a:hover { background: var(--sand); }
.pager li span[aria-current] { background: var(--ink); color: #fff; }
.pager-gap { display: grid; place-items: center; min-width: 24px; color: var(--ink-3); }
.pager-prev, .pager-next { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); }

.prose-article { font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose-article p { color: var(--ink-2); }
.prose-article h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 1.6em 0 .5em; }
.prose-article h3 { font-size: 23px; margin: 1.5em 0 .4em; }
.prose-article img { max-width: 100%; height: auto; }
.prose-article blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--leg); color: var(--ink); font-size: 21px; }
.prose-article table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
.prose-article th, .prose-article td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose-article th { background: var(--sand); }
.prose-article pre { background: var(--navy); color: #E6EEF3; padding: 16px; border-radius: var(--radius-card); overflow-x: auto; font-size: 15px; }
.prose-article code { font-size: .9em; }
.prose-article iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-card); }

.search-page-form { display: flex; gap: 10px; margin: 8px 0 20px; }
.search-page-form input { flex: 1; min-width: 0; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-btn); font: 400 19px/1.3 var(--font); background: #fff; }
.search-page-form input:focus { outline: none; border-color: var(--leg-deep); box-shadow: 0 0 0 3px rgba(46, 163, 210, .25); }
.results-title { font-size: 24px; margin: 32px 0 12px; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.results a { font-size: 20px; text-decoration: none; color: var(--ink); }
.results a:hover strong { text-decoration: underline; }
.results small { display: block; color: var(--ink-3); margin-top: 4px; }
.results p { margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 640px) {
    .search-page-form { flex-direction: column; }
    .prose-article { font-size: 17px; }
    .pager-prev, .pager-next { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Vista de lectura de entradas (portada a ancho completo + barra lateral) ---------- */
.article-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(360px, 46vw, 560px); background: var(--navy); color: #fff; overflow: hidden; }
.article-hero-plain { min-height: clamp(260px, 30vw, 380px); }
.article-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 31, 45, .15) 0%, rgba(13, 31, 45, .55) 45%, rgba(13, 31, 45, .92) 100%); }
.article-hero-inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: clamp(32px, 4vw, 56px); }
.article-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; max-width: 920px; margin: 14px 0 16px; text-shadow: 0 2px 16px rgba(0, 0, 0, .25); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cat-pill { display: inline-block; padding: 5px 12px; border-radius: 6px; background: var(--leg-deep); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; }
a.cat-pill:hover { background: var(--leg); color: #fff; }
.cat-pill-sm { padding: 3px 9px; font-size: 12px; }
.article .breadcrumbs-bar { border-top: 0; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--section-y); }
.article-main { min-width: 0; max-width: 760px; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 24px; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 26px; text-align: center; margin-bottom: 10px; }
.aside-card > p { font-size: 15px; color: var(--ink-2); text-align: center; }
.aside-card-dark { background: var(--navy); border-color: var(--navy); }
.aside-card-dark h2 { font-size: 22px; text-align: left; }
.aside-card-dark > p { text-align: left; color: rgba(255, 255, 255, .82); }
.aside-card-dark .eyebrow { margin-bottom: 8px; }
.newsletter-stack { grid-template-columns: 1fr; justify-items: stretch; }
.newsletter-stack .btn { width: 100%; }

.article-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-list .cat-pill { padding: 9px 18px; }
.article-share { display: flex; align-items: center; gap: 8px; }
.article-share span { font-weight: 700; margin-right: 4px; }
.article-share a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); }
.article-share a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.related-card { margin-top: 48px; padding: 28px 32px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.related-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.related-head h2 { font-size: 24px; margin: 0; }
.slider-arrows { display: flex; gap: 6px; }
.slider-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.slider-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.slider-btn:disabled { opacity: .35; cursor: default; }
.related-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 12px); gap: 24px; list-style: none; margin: 0; padding: 0 0 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.related-track::-webkit-scrollbar { display: none; }
.related-item { display: flex; gap: 16px; align-items: flex-start; scroll-snap-align: start; }
.related-thumb { flex-shrink: 0; display: grid; place-items: center; width: 110px; height: 110px; border-radius: var(--radius-card); overflow: hidden; background: var(--navy); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.related-thumb .related-placeholder { width: 70%; height: auto; object-fit: contain; }
.related-item:hover .related-thumb img { transform: scale(1.05); }
.related-text { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.related-title { font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.related-title:hover { color: var(--leg-deep); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.slider-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; }
.slider-dots button.is-active { background: var(--leg-deep); border-color: var(--leg-deep); }

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-main { max-width: none; }
    .article-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .article-hero { min-height: 340px; }
    .article-aside { grid-template-columns: 1fr; }
    .related-card { padding: 20px 16px; }
    .related-track { grid-auto-columns: 88%; }
    .related-thumb { width: 88px; height: 88px; }
    .article-footer { flex-direction: column; align-items: flex-start; }
}
.is-static .slider-arrows, .is-static .slider-dots { display: none; }
