:root {
    --navy: #10224b;
    --navy-deep: #11152b;
    --violet: #805cff;
    --indigo: #5b46e0;
    --blue: #1f70f4;
    --bg: #f8f9fc;
    --surface: #ffffff;
    --surface-soft: #f2f4fb;
    --text-muted: #607092;
    --border: #dfe4f0;
    --success: #18875d;
    --danger: #c2415d;
    --gradient: linear-gradient(115deg, var(--violet), var(--indigo) 50%, var(--blue));
    --shadow: 0 18px 50px rgba(16, 34, 75, .1);
    --shadow-small: 0 8px 24px rgba(16, 34, 75, .08);
    --radius: 22px;
    --container: 1180px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: var(--bg); font-size: 16px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid rgba(31, 112, 244, .4); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 100; top: 0; display: flex; width: 100%; min-height: 56px; align-items: center; gap: 24px; padding: 8px max(24px, calc((100% - var(--container)) / 2)); border-bottom: 1px solid rgba(223, 228, 240, .82); background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { width: 104px; height: 28px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { position: relative; padding: 8px 12px; border-radius: 11px; color: var(--text-muted); font-size: 14px; font-weight: 650; }
.main-nav a:hover { color: var(--navy); background: var(--surface-soft); }
.main-nav a.is-active { color: var(--indigo); background: #f0edff; }
.main-nav a.is-active::after { position: absolute; right: 14px; bottom: 5px; left: 14px; height: 2px; border-radius: 2px; background: var(--gradient); content: ""; }
.nav-dropdown { position: relative; }
.nav-dropdown-boton { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 11px; color: var(--text-muted); background: transparent; font-size: 14px; font-weight: 650; }
.nav-dropdown-boton:hover, .nav-dropdown-boton[aria-expanded="true"] { color: var(--navy); background: var(--surface-soft); }
.nav-share-boton { padding: 8px 12px; border-radius: 11px; color: var(--text-muted); background: transparent; font-size: 14px; font-weight: 650; }
.nav-share-boton:hover { color: var(--navy); background: var(--surface-soft); }
.nav-dropdown-menu { position: absolute; z-index: 110; top: calc(100% + 7px); left: 0; display: grid; min-width: 210px; padding: 7px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-small); }
.nav-dropdown-menu a { white-space: nowrap; }
.admin-badge { margin-left: -12px; padding: 5px 9px; border-radius: 7px; color: var(--indigo); background: #f0edff; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.avatar-button { display: grid; width: 38px; height: 38px; margin-left: 8px; place-items: center; border-radius: 50%; color: #fff; background: var(--gradient); font-size: 12px; font-weight: 800; }

main { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); min-height: 660px; align-items: center; gap: 64px; padding: 82px 0 96px; }
.hero::before { position: absolute; z-index: -1; top: 8%; right: -17%; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(128, 92, 255, .14), rgba(31, 112, 244, .03) 52%, transparent 70%); content: ""; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--indigo); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.eyebrow span { width: 21px; height: 3px; border-radius: 4px; background: var(--gradient); }
.hero h1 { max-width: 690px; margin-bottom: 24px; font-size: clamp(48px, 6vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 em { color: transparent; background: var(--gradient); background-clip: text; font-style: normal; -webkit-background-clip: text; }
.hero-lead { max-width: 580px; margin-bottom: 30px; color: var(--text-muted); font-size: 19px; line-height: 1.7; }
.primary-button, .secondary-button, .icon-button, .export-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 14px; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button { color: #fff; background: var(--gradient); box-shadow: 0 10px 24px rgba(91, 70, 224, .25); }
.primary-button:hover { box-shadow: 0 14px 30px rgba(91, 70, 224, .32); transform: translateY(-2px); }
.secondary-button, .icon-button, .export-button { border: 1px solid var(--border); color: var(--navy); background: #fff; }
.secondary-button:hover, .icon-button:hover, .export-button:hover { border-color: #c8c1ff; background: #f7f5ff; transform: translateY(-1px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: var(--text-muted); font-size: 13px; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: var(--indigo); background: #ebe8ff; font-size: 11px; font-style: normal; font-weight: 800; }

.hero-visual { position: relative; min-height: 470px; }
.brand-orbit { position: absolute; top: 50%; left: 50%; display: grid; width: 260px; height: 260px; place-items: center; border: 1px solid rgba(128, 92, 255, .14); border-radius: 50%; background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(239,237,255,.62)); box-shadow: inset 0 0 0 28px rgba(255,255,255,.55), var(--shadow); transform: translate(-50%, -50%); }
.brand-orbit::before, .brand-orbit::after { position: absolute; border: 1px dashed rgba(91, 70, 224, .2); border-radius: 50%; content: ""; }
.brand-orbit::before { inset: -48px; }
.brand-orbit::after { inset: 32px; }
.brand-orbit img { position: relative; z-index: 1; width: 104px; border-radius: 26px; box-shadow: 0 16px 30px rgba(17, 21, 43, .2); }
.floating-tool, .hero-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(223, 228, 240, .9); border-radius: 15px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-small); backdrop-filter: blur(10px); }
.floating-tool { min-width: 220px; padding: 13px; }
.floating-tool:hover { border-color: #c8c1ff; box-shadow: var(--shadow); transform: translateY(-3px); }
.floating-tool strong, .hero-note strong { display: block; font-size: 13px; }
.floating-tool small, .hero-note small { display: block; color: var(--text-muted); font-size: 11px; }
.floating-tool > i { margin-left: auto; color: var(--indigo); font-style: normal; }
.mini-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #fff; background: var(--gradient); font-size: 10px; font-weight: 800; }
.tool-one { top: 8%; left: 0; }.tool-two { top: 42%; right: -4%; }.tool-three { bottom: 4%; left: 2%; }
.hero-note { top: 5%; right: 0; padding: 11px 14px; }.spark { color: var(--violet); font-size: 21px; }

.catalog { padding: 76px 0 110px; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.035em; }
.section-heading > p { max-width: 480px; margin-bottom: 4px; color: var(--text-muted); }
.catalog-controls { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(540px, 1.5fr); gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-small); }
.search-box { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.search-box > span { color: var(--indigo); font-size: 24px; line-height: 1; transform: rotate(-15deg); }
.search-box input { width: 100%; min-height: 46px; border: 0; outline: 0; color: var(--navy); background: transparent; }
.search-box kbd { padding: 2px 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); background: #fff; font-size: 11px; }
.filter-list { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.filter-button { padding: 10px 11px; border-radius: 10px; color: var(--text-muted); background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.filter-button span { margin-left: 4px; opacity: .65; }
.filter-button:hover { color: var(--navy); background: var(--surface-soft); }
.filter-button.is-active { color: #fff; background: var(--gradient); box-shadow: 0 6px 16px rgba(91, 70, 224, .18); }
.results-count { margin: 16px 3px 0; color: var(--text-muted); font-size: 13px; }
.results-count strong { color: var(--navy); }
.tool-category { padding-top: 62px; }
.category-heading { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 15px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.category-icon, .tool-mark { display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--gradient); font-size: 11px; font-weight: 850; letter-spacing: -.02em; }
.category-icon { width: 48px; height: 48px; }
.category-heading h3 { margin-bottom: 1px; font-size: 23px; letter-spacing: -.02em; }
.category-heading p { margin: 0; color: var(--text-muted); font-size: 13px; }
.category-count { color: var(--text-muted); font-size: 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { position: relative; display: grid; grid-template-columns: 48px 1fr auto; min-height: 138px; align-items: start; gap: 13px; padding: 18px; border: 1px solid var(--border); border-radius: 17px; background: #fff; box-shadow: 0 4px 14px rgba(16, 34, 75, .035); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tool-card:hover { border-color: #bfb5ff; box-shadow: var(--shadow-small); transform: translateY(-4px); }
.tool-card.is-featured::before { position: absolute; top: 0; right: 18px; left: 18px; height: 3px; border-radius: 0 0 4px 4px; background: var(--gradient); content: ""; }
.card-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; color: var(--indigo); background: #f0edff; font-size: 14px; font-weight: 850; }
.card-copy strong { display: block; margin: 2px 0 4px; font-size: 15px; }
.card-copy small { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.origin { position: absolute; bottom: 17px; left: 79px; padding: 3px 7px; border-radius: 6px; color: var(--indigo); background: #f0edff; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.origin.local { color: #28705a; background: #e9f7f2; }
.card-arrow { color: #a4aec3; font-size: 18px; transition: color .18s ease, transform .18s ease; }
.tool-card:hover .card-arrow { color: var(--indigo); transform: translateX(3px); }
.empty-state { margin-top: 40px; padding: 36px; border: 1px dashed #bfb5ff; border-radius: var(--radius); color: var(--text-muted); background: #f5f3ff; text-align: center; }

.site-footer { display: grid; grid-template-columns: 1.5fr .75fr .75fr; align-items: start; gap: 28px; margin-top: 24px; padding: 34px max(24px, calc((100% - var(--container)) / 2)) 22px; color: #aebad4; background: var(--navy-deep); font-size: 13px; }
.footer-brand img { width: 116px; height: 34px; margin-bottom: 8px; object-fit: contain; object-position: left; }
.site-footer strong { display: block; margin-bottom: 8px; color: #f4f7ff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { display: block; margin: 5px 0; }.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 0; }.copyright { grid-column: 1 / -1; align-self: end; white-space: nowrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.whatsapp-suggest { position: fixed; z-index: 200; right: 24px; bottom: 24px; }
.whatsapp-suggest-toggle { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 12px 28px rgba(16, 34, 75, .24); transition: transform .18s ease, box-shadow .18s ease; }
.whatsapp-suggest-toggle:hover { box-shadow: 0 16px 32px rgba(16, 34, 75, .3); transform: translateY(-2px); }
.whatsapp-suggest-toggle svg { width: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.whatsapp-suggest-panel { position: absolute; right: 0; bottom: 70px; width: min(320px, calc(100vw - 48px)); padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.whatsapp-suggest-panel p { margin-bottom: 11px; font-size: 13px; font-weight: 750; }
.whatsapp-suggest-panel textarea { display: block; width: 100%; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--navy); background: var(--bg); resize: vertical; }
.whatsapp-suggest-panel textarea:focus { border-color: var(--indigo); outline: 3px solid rgba(91,70,224,.1); }
.whatsapp-suggest-panel .primary-button { width: 100%; }

/* Herramienta */
.tool-page { padding: 34px 0 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 36px; color: var(--text-muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--indigo); }.breadcrumbs strong { color: var(--navy); }
.tool-intro { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 22px; margin-bottom: 36px; }
.tool-mark { width: 72px; height: 72px; border-radius: 20px; font-size: 18px; box-shadow: 0 12px 25px rgba(91,70,224,.2); }
.tool-intro .eyebrow { margin-bottom: 6px; }
.tool-intro h1 { margin-bottom: 7px; font-size: clamp(36px, 5vw, 55px); line-height: 1.08; letter-spacing: -.045em; }
.tool-intro p:last-child { max-width: 700px; margin: 0; color: var(--text-muted); }
.secure-pill, .status-pill { padding: 7px 10px; border-radius: 999px; color: var(--success); background: #e9f7f2; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tool-workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr); gap: 18px; }
.generator-panel, .result-panel, .report-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-small); }
.generator-panel, .result-panel { padding: 28px; }
.result-panel { background: linear-gradient(145deg, #fff 40%, #f2f0ff); }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.panel-heading p { margin-bottom: 1px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.panel-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.step-number { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #fff; background: var(--gradient); font-size: 12px; font-weight: 850; }
.panel-heading .status-pill { margin-left: auto; }
.field { display: grid; gap: 7px; margin-bottom: 18px; color: var(--navy); font-size: 12px; font-weight: 750; }
.field textarea, .field select, .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]), .color-control { width: 100%; border: 1px solid var(--border); border-radius: 12px; color: var(--navy); background: var(--bg); }
.field textarea { min-height: 130px; padding: 13px; resize: vertical; }
.field select { min-height: 46px; padding: 0 40px 0 14px; appearance: none; -webkit-appearance: none; background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%235b46e0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.field select:hover { border-color: #c8c1ff; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]) { min-height: 46px; padding: 0 14px; font: inherit; transition: border-color .18s ease, box-shadow .18s ease; }
.field input[type="file"] { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--navy); background: var(--bg); font: inherit; font-size: 13px; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 10px; color: var(--navy); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.field input[type="file"]::file-selector-button:hover { border-color: #c8c1ff; background: #f7f5ff; }
.field textarea:focus, .field select:focus, .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):focus { border-color: var(--indigo); outline: 3px solid rgba(91,70,224,.1); }
.field textarea:hover, .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):hover { border-color: #c8c1ff; }
.field small { color: var(--text-muted); font-weight: 500; text-align: right; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.color-control { display: flex; min-height: 46px; align-items: center; gap: 10px; padding: 6px 12px; }
.color-control input { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; }
.color-control code { color: var(--text-muted); font-size: 11px; }
.format-options { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; border: 0; }
.format-options legend { width: 100%; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
.format-options input { position: absolute; opacity: 0; }
.format-options span { display: block; padding: 8px 17px; border: 1px solid var(--border); border-radius: 9px; color: var(--text-muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.format-options input:checked + span { border-color: var(--indigo); color: var(--indigo); background: #f0edff; }
.generate-button { width: 100%; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; color: var(--text-muted); font-size: 10px; }
.qr-stage { position: relative; display: grid; min-height: 300px; place-items: center; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at center, #fff 0 28%, transparent 29%), linear-gradient(135deg, rgba(128,92,255,.1), rgba(31,112,244,.08)); }
.qr-stage::before { position: absolute; width: 225px; height: 225px; border: 1px dashed rgba(91,70,224,.25); border-radius: 50%; content: ""; }
.qr-code { z-index: 1; width: 180px; padding: 14px; border-radius: 14px; color: var(--navy); background: #fff; box-shadow: 0 16px 35px rgba(16,34,75,.15); }
.result-meta { display: grid; gap: 3px; margin: 18px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.result-meta span { color: var(--text-muted); font-size: 10px; text-transform: uppercase; }.result-meta strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.result-actions { display: flex; gap: 8px; }.result-actions .primary-button { flex: 1; }.icon-button { width: 46px; padding-inline: 0; }
.tool-tip { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 22px; border: 1px solid #d8d2ff; border-radius: 16px; background: #f4f2ff; }
.tool-tip > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: var(--indigo); font-weight: 800; }
.tool-tip strong { font-size: 13px; }.tool-tip p { margin: 2px 0 0; color: var(--text-muted); font-size: 12px; }.tool-tip a { color: var(--indigo); font-size: 12px; font-weight: 750; }

/* Reportes */
.report-page { padding: 52px 0 90px; }
.report-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.report-heading h1 { margin-bottom: 9px; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; }
.report-heading > div > p:last-child { margin: 0; color: var(--text-muted); }
.date-filter { display: flex; align-items: end; gap: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 15px; background: #fff; box-shadow: var(--shadow-small); }
.date-filter label { display: grid; gap: 3px; color: var(--text-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.date-filter input { min-height: 38px; padding: 0 8px; border: 0; border-radius: 8px; color: var(--navy); background: var(--bg); font-size: 11px; }
.date-separator { margin-bottom: 9px; color: var(--text-muted); }
.date-filter .primary-button { min-height: 38px; padding: 8px 14px; }
.period-row { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 14px; }.period-label { margin: 0; color: var(--text-muted); font-size: 12px; }.export-button { min-height: 38px; padding: 7px 12px; font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.metric-card { position: relative; min-height: 170px; padding: 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 5px 16px rgba(16,34,75,.04); }
.metric-card::after { position: absolute; right: -30px; bottom: -50px; width: 120px; height: 120px; border-radius: 50%; background: rgba(128,92,255,.06); content: ""; }
.metric-icon { display: grid; width: 32px; height: 32px; margin-bottom: 17px; place-items: center; border-radius: 9px; color: var(--indigo); background: #f0edff; font-size: 12px; font-weight: 800; }
.metric-card p { margin-bottom: 4px; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.metric-card > strong { display: block; margin-bottom: 8px; font-size: 27px; line-height: 1.1; letter-spacing: -.035em; }
.metric-card > strong.metric-name { font-size: 18px; }
.metric-card small { color: var(--text-muted); font-size: 10px; }.metric-card small b, .trend-up { color: var(--success); }
.metric-primary { color: #fff; border-color: transparent; background: var(--gradient); box-shadow: 0 12px 28px rgba(91,70,224,.2); }.metric-primary .metric-icon { color: #fff; background: rgba(255,255,255,.18); }.metric-primary p, .metric-primary small, .metric-primary small b { color: #fff; }
.report-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 14px; margin-top: 14px; }
.report-card { padding: 22px; }
.report-card > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.report-card h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }.report-card .eyebrow { margin-bottom: 4px; font-size: 9px; }
.chart-legend { display: flex; gap: 13px; color: var(--text-muted); font-size: 9px; }.chart-legend span { display: flex; align-items: center; gap: 5px; }.chart-legend i { width: 17px; height: 3px; border-radius: 2px; }.legend-main { background: var(--gradient); }.legend-compare { border-top: 2px dashed #b8c1d3; }
.chart-shell { display: grid; grid-template-columns: 32px 1fr; }.chart-y { display: flex; align-items: end; justify-content: space-between; flex-direction: column; padding: 0 5px 22px 0; color: #9ba7bd; font-size: 8px; }.line-chart { width: 100%; height: 250px; overflow: visible; }.grid-lines { fill: none; stroke: #e7eaf2; stroke-width: 1; }.compare-path { fill: none; stroke: #b8c1d3; stroke-width: 2; stroke-dasharray: 6 7; }.area-path { fill: url(#chart-fill); }.main-path { fill: none; stroke: url(#chart-line); stroke-width: 4; stroke-linecap: round; }.chart-points { fill: #fff; stroke: var(--indigo); stroke-width: 3; }.chart-x { grid-column: 2; display: flex; justify-content: space-between; color: #9ba7bd; font-size: 8px; }
.donut-wrap { display: grid; place-items: center; gap: 25px; }.donut { display: grid; width: 170px; height: 170px; place-items: center; border-radius: 50%; background: conic-gradient(var(--violet) 0 49%, var(--indigo) 49% 73%, var(--blue) 73% 90%, #9aabca 90%); }.donut > div { display: grid; width: 110px; height: 110px; place-content: center; border-radius: 50%; background: #fff; text-align: center; }.donut strong { font-size: 24px; line-height: 1.1; }.donut small { color: var(--text-muted); font-size: 9px; text-transform: uppercase; }.donut-legend { display: grid; width: 100%; gap: 9px; margin: 0; padding: 0; list-style: none; }.donut-legend li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11px; }.donut-legend i { width: 7px; height: 7px; border-radius: 2px; }.dot-pdf { background: var(--violet); }.dot-utils { background: var(--indigo); }.dot-images { background: var(--blue); }.dot-study { background: #9aabca; }.donut-legend strong { color: var(--navy); font-size: 10px; }
.ranking-card { margin-top: 14px; padding: 0; overflow: hidden; }.ranking-card > header { align-items: center; margin: 0; padding: 20px 22px; border-bottom: 1px solid var(--border); }.ranking-card > header > span { color: var(--text-muted); font-size: 9px; }.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: 11px; }th { padding: 10px 15px; color: var(--text-muted); background: var(--bg); font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .05em; }td { padding: 13px 15px; border-top: 1px solid #eef0f5; color: var(--text-muted); white-space: nowrap; }td > b { color: #9aa5ba; }.table-tool { display: inline-grid; width: 28px; height: 28px; margin-right: 9px; place-items: center; border-radius: 8px; color: var(--indigo); background: #f0edff; font-size: 9px; font-weight: 800; }.category-pill, .potential { padding: 4px 7px; border-radius: 6px; background: var(--surface-soft); font-size: 9px; font-weight: 700; }.progress { display: block; width: 80px; height: 3px; margin-top: 4px; border-radius: 3px; background: #eceff5; }.progress i { display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--gradient); }.trend-down { color: var(--danger); }.potential.high { color: var(--success); background: #e9f7f2; }.potential.medium { color: #93691b; background: #fff7df; }.potential.low { color: var(--text-muted); }
.insight-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 16px; margin-top: 14px; padding: 20px 22px; border: 1px solid #d8d2ff; border-radius: 17px; background: linear-gradient(100deg, #f2efff, #f6f9ff); }.insight-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #fff; background: var(--gradient); }.insight-card strong { font-size: 13px; }.insight-card p { margin: 2px 0 0; color: var(--text-muted); font-size: 11px; }
.toast { position: fixed; z-index: 500; right: 24px; top: 80px; max-width: min(340px, calc(100% - 48px)); padding: 12px 16px; border-radius: 11px; color: #fff; background: var(--navy-deep); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(-12px); transition: .18s ease; }.toast.is-visible { opacity: 1; transform: none; }
@media (max-width: 680px) { .toast { top: 68px; right: 12px; left: 12px; max-width: none; } }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; gap: 20px; }.hero-copy { padding-top: 20px; }.hero-visual { width: min(580px, 100%); margin-inline: auto; }
    .catalog-controls { grid-template-columns: 1fr; }.filter-list { justify-content: flex-start; overflow-x: auto; }.tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .tool-workspace, .report-grid { grid-template-columns: 1fr; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.report-heading { align-items: start; flex-direction: column; }.date-filter { width: 100%; }.insight-card { grid-template-columns: 42px 1fr; }.insight-card button { grid-column: 2; justify-self: start; }
    .site-footer { grid-template-columns: 1.5fr 1fr 1fr; }.copyright { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .site-header { min-height: 52px; padding-inline: 16px; gap: 10px; }.brand img { width: 88px; }.main-nav { flex-wrap: wrap; justify-content: flex-end; gap: 2px; }.main-nav a, .nav-dropdown-boton, .nav-share-boton { padding: 6px 8px; font-size: 12.5px; }.nav-item-inicio { display: none; }.avatar-button { margin: 5px; }.admin-badge { display: none; }
    main { width: min(calc(100% - 28px), var(--container)); }.hero { min-height: auto; padding: 58px 0 72px; }.hero h1 { font-size: clamp(43px, 13vw, 62px); }.hero-lead { font-size: 16px; }.hero-visual { min-height: 410px; transform: scale(.9); }.tool-one { left: -3%; }.tool-two { right: -3%; }.hero-note { right: -3%; }
    .section-heading { align-items: start; flex-direction: column; }.catalog { padding-top: 58px; }.filter-list { padding-bottom: 3px; }.tool-grid { grid-template-columns: 1fr; }.category-heading { grid-template-columns: 48px 1fr; }.category-count { display: none; }
    .tool-intro { grid-template-columns: 58px 1fr; align-items: start; }.tool-mark { width: 58px; height: 58px; border-radius: 16px; }.tool-intro h1 { font-size: 36px; }.secure-pill { grid-column: 2; justify-self: start; }.generator-panel, .result-panel { padding: 20px 16px; }.field-row { grid-template-columns: 1fr; }.panel-heading { align-items: start; }.panel-heading .status-pill { display: none; }.result-actions { flex-wrap: wrap; }.result-actions .primary-button { flex-basis: 100%; }.tool-tip { grid-template-columns: 32px 1fr; }.tool-tip a { grid-column: 2; }
    .report-page { padding-top: 36px; }.date-filter { display: grid; grid-template-columns: 1fr 1fr; }.date-separator { display: none; }.date-filter .primary-button { grid-column: 1 / -1; }.metric-grid { grid-template-columns: 1fr; }.period-row { align-items: start; gap: 12px; flex-direction: column; }.chart-legend { display: none; }.line-chart { height: 205px; }.ranking-card { padding: 0; }.insight-card { grid-template-columns: 1fr; }.insight-card button { grid-column: 1; }.site-footer { grid-template-columns: 1fr 1fr; padding: 42px 24px; }.footer-brand { grid-column: 1 / -1; }.copyright { grid-column: 1 / -1; }
    .whatsapp-suggest { right: 16px; bottom: 16px; }.whatsapp-suggest-panel { width: min(320px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Adaptaciones del catalogo real cargado por Ajaxp. */
.catalog-status { margin: 34px 0; padding: 24px; border: 1px solid var(--border); border-radius: 16px; color: var(--text-muted); background: #fff; text-align: center; }
.catalog-status.is-error { border-color: #f0bdc8; color: var(--danger); background: #fff5f7; }

/* Vista previa de la herramienta Collage de imagenes. */
.collage-preview { display: block; width: 100%; max-height: 520px; margin: 18px 0; border: 1px solid var(--border); border-radius: 11px; background: #fff; object-fit: contain; }
