/* ==========================================================
   Mall-Commerce Web - Hoja de estilos del sitio público
   Ruta: public_html/assets/css/site.css
   Identidad: fondo blanco, verde oscuro principal, coral de acento.
   Enfoque mobile-first. Sin dependencias externas.
   ========================================================== */

:root {
    /* Paleta */
    --green-900: #0c3b2e;   /* verde principal profundo */
    --green-800: #12503d;
    --green-700: #1a6b52;
    --green-100: #e6f0ec;
    --coral-600: #d9553b;   /* acento coral */
    --coral-500: #e8674c;
    --coral-100: #fbe9e4;
    --ink:       #1c2622;   /* texto principal */
    --muted:     #5f6b66;   /* texto secundario */
    --line:      #e2e7e4;   /* bordes suaves */
    --gray-50:   #f6f8f7;
    --white:     #ffffff;
    --wa:        #25d366;

    --radius: 10px;
    --radius-sm: 6px;
    --maxw: 1160px;
    --shadow: 0 1px 3px rgba(12,59,46,.06), 0 8px 24px rgba(12,59,46,.05);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* El atributo [hidden] debe ganar siempre sobre las reglas de display de clase. */
[hidden] { display: none !important; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--coral-600); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--coral-600); margin: 0 0 .6em; }
.section-title { text-align: center; margin-bottom: .4em; }

/* -------- Botones -------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    font-weight: 600; font-size: .95rem; line-height: 1;
    padding: .8em 1.3em; border-radius: var(--radius-sm);
    border: 1.5px solid transparent; cursor: pointer; transition: .15s ease;
    white-space: nowrap;
}
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }
.btn-sm { padding: .55em .9em; font-size: .85rem; }
.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-outline { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn-outline:hover { background: var(--green-900); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.94); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--green-900); }

/* -------- Header -------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.94); backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .5em; color: var(--green-900); font-weight: 800; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-mark { font-size: 1.2rem; letter-spacing: -.02em; }
.brand-badge { background: var(--coral-100); color: var(--coral-600); font-size: .7rem; font-weight: 700; padding: .15em .5em; border-radius: 100px; }
.footer-brand { color: #fff; font-size: 1.3rem; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; transition: .2s; }

.main-nav { display: none; }
.main-nav.open { display: block; position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow); }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-link { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); padding: .9em 0; cursor: pointer; }
.submenu { list-style: none; margin: 0 0 .6em; padding: 0 0 0 12px; }
.submenu a { display: block; padding: .5em 0; color: var(--muted); font-size: .95rem; }
.submenu a:hover { color: var(--coral-600); }
.nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { padding: .3em .55em; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; color: var(--muted); }
.lang-switch a.active { background: var(--green-900); color: #fff; border-color: var(--green-900); }

/* -------- Hero -------- */
.hero { background: linear-gradient(180deg, var(--green-100) 0%, #fff 78%); padding: 56px 0 40px; }
.hero-inner { display: grid; gap: 32px; }
.hero-copy { max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-cta.center { justify-content: center; }
.hero-visual { position: relative; min-height: 200px; }
.mockup-desktop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mockup-bar { height: 34px; background: var(--green-900); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.mockup-url { margin-left: 10px; font-size: 11px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.12); border-radius: 20px; padding: 3px 12px; letter-spacing: .02em; }
.mockup-screen { padding: 10px; background: var(--gray-50); }
.shop-topbar { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 8px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(12,59,46,.05); }
.shop-logo { font-weight: 800; color: var(--green-900); font-size: 13px; }
.shop-nav { display: flex; gap: 8px; }
.shop-nav i { display: block; width: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.shop-cart { font-size: 13px; }
.shop-banner { position: relative; margin: 10px 0; height: 60px; border-radius: 8px; background: linear-gradient(120deg, var(--green-800), var(--green-700) 55%, var(--coral-600)); display: flex; flex-direction: column; justify-content: center; padding: 0 16px; overflow: hidden; }
.shop-banner-title { color: #fff; font-weight: 700; font-size: 14px; }
.shop-banner-btn { margin-top: 6px; align-self: flex-start; background: #fff; color: var(--green-900); font-size: 10px; font-weight: 700; border-radius: 20px; padding: 3px 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shop-card { background: #fff; border-radius: 8px; padding: 8px; box-shadow: 0 1px 2px rgba(12,59,46,.05); }
.shop-thumb { height: 44px; border-radius: 6px; margin-bottom: 8px; }
.shop-thumb-0 { background: linear-gradient(135deg, #e6f0ec, #b7d8c9); }
.shop-thumb-1 { background: linear-gradient(135deg, #fbe9e4, #f0b7a6); }
.shop-thumb-2 { background: linear-gradient(135deg, #e7ecfb, #b9c4ef); }
.shop-line { height: 6px; border-radius: 4px; background: var(--line); margin-bottom: 5px; }
.shop-line-lg { width: 85%; }
.shop-line-sm { width: 55%; }
.shop-price { margin-top: 6px; font-size: 10px; font-weight: 800; color: var(--coral-600); }

.mockup-phone { position: absolute; right: 4%; bottom: -20px; width: 92px; height: 178px; background: #0c3b2e; border: 3px solid var(--green-900); border-radius: 18px; box-shadow: 0 10px 30px rgba(12,59,46,.28); padding: 6px 5px; }
.phone-notch { width: 34px; height: 5px; background: rgba(255,255,255,.35); border-radius: 10px; margin: 1px auto 5px; }
.phone-screen { background: var(--gray-50); border-radius: 10px; height: calc(100% - 12px); overflow: hidden; display: flex; flex-direction: column; }
.phone-topbar { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 5px 8px; font-size: 8px; }
.phone-logo { font-weight: 800; color: var(--green-900); }
.phone-banner { height: 26px; margin: 5px; border-radius: 6px; background: linear-gradient(120deg, var(--green-700), var(--coral-600)); }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 5px; }
.phone-card { background: #fff; border-radius: 6px; padding: 4px; }
.phone-thumb { height: 24px; border-radius: 4px; margin-bottom: 4px; }
.phone-thumb-0 { background: linear-gradient(135deg, #e6f0ec, #b7d8c9); }
.phone-thumb-1 { background: linear-gradient(135deg, #fbe9e4, #f0b7a6); }
.phone-line { height: 4px; width: 80%; border-radius: 3px; background: var(--line); margin-bottom: 3px; }
.phone-price { height: 4px; width: 45%; border-radius: 3px; background: var(--coral-600); }
.phone-tabbar { margin-top: auto; display: flex; justify-content: space-around; align-items: center; background: #fff; padding: 6px 0; }
.phone-tabbar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.phone-tabbar span.on { background: var(--green-700); }

/* -------- Secciones -------- */
section.benefits, section.problem, section.modes, section.how, section.final-cta,
section.page-head, section.page-body, section.error-page { padding: 48px 0; }
section.problem { background: var(--gray-50); }
section.final-cta { background: var(--green-900); color: #fff; }
section.final-cta h2, section.final-cta .lead { color: #fff; }

.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.benefit-card { display: flex; align-items: center; gap: .7em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1em 1.1em; font-weight: 600; box-shadow: var(--shadow); }
.benefit-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral-500); flex: none; }

.lead.center { margin: 1em auto 0; max-width: 720px; }

.mode-grid { display: grid; gap: 16px; margin-top: 28px; }
.mode-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6em; background: #fff; box-shadow: var(--shadow); }
.mode-card.featured { border-color: var(--green-700); border-width: 2px; }
.mode-card h3 { margin-top: 0; color: var(--green-900); }
.link-arrow { font-weight: 600; }

.how-steps { list-style: none; margin: 28px auto 0; padding: 0; max-width: 720px; display: grid; gap: 10px; }
.how-steps li { display: flex; align-items: center; gap: .9em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9em 1.1em; font-weight: 500; }
.step-num { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--green-900); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* -------- Página interna -------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1em; }
.breadcrumb span { margin: 0 .3em; }
.notice { border-radius: var(--radius); padding: 1em 1.2em; margin: 1.4em 0; font-size: .95rem; }
.notice-info { background: var(--green-100); border: 1px solid #cfe2da; color: var(--green-800); }

/* -------- Error -------- */
.error-code { font-size: 4rem; font-weight: 800; color: var(--coral-600); letter-spacing: -.03em; }

/* -------- Footer -------- */
.site-footer { background: var(--green-900); color: #cbd8d2; padding: 48px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .8em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .25em 0; }
.footer-col a { color: #cbd8d2; }
.footer-col a:hover { color: #fff; }
.site-footer .muted { color: #9db3aa; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; }

/* -------- WhatsApp flotante -------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.wa-float:hover { color: #fff; filter: brightness(.95); }

/* -------- Cookies -------- */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1em 1.2em; display: flex; flex-direction: column; gap: .8em; }
.cookie-bar p { margin: 0; font-size: .9rem; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* -------- Responsive -------- */
@media (min-width: 720px) {
    .benefit-grid { grid-template-columns: repeat(3, 1fr); }
    .mode-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .cookie-bar { flex-direction: row; align-items: center; justify-content: space-between; left: 20px; right: 20px; }
    .cookie-bar p { max-width: 60%; }
}
@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .main-nav { display: flex !important; align-items: center; gap: 18px; position: static; padding: 0; box-shadow: none; border: 0; background: none; }
    .nav-list { display: flex; gap: 4px; }
    .nav-list > li { border: 0; position: relative; }
    .nav-link { padding: .6em .8em; }
    .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
    .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
    .nav-actions { flex-direction: row; align-items: center; margin: 0; }
    .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; }
    .hero { padding: 80px 0 64px; }
    .hero-visual { min-height: 260px; }
}

/* -------- Accesibilidad -------- */
:focus-visible { outline: 2px solid var(--coral-600); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ==========================================================
   M3 - Páginas internas: features, módulos, pasos, FAQ, formularios
   ========================================================== */

/* Cards de información (que-es) */
.benefit-grid.cols-3, .mode-grid.cols-3 { grid-template-columns: 1fr; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4em; box-shadow: var(--shadow); }
.info-card h3 { margin-top: 0; color: var(--green-900); }

/* Lista de features con checks */
.features-section { padding: 48px 0; }
.feature-check-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.feature-check { display: flex; align-items: flex-start; gap: .7em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9em 1.1em; }
.check-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-weight: 800; font-size: .8rem; }

/* Grilla de módulos / rubros */
.modules-section { padding: 48px 0; }
.module-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.module-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3em; box-shadow: var(--shadow); }
.module-card h3 { margin: 0 0 .3em; color: var(--green-900); font-size: 1.1rem; }
.rubro-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1em 1.3em; font-weight: 600; text-align: center; box-shadow: var(--shadow); }
.note-spaced { margin-top: 1.8em; }

/* Pasos detallados */
.steps-detailed { display: grid; gap: 14px; max-width: 780px; margin: 0 auto; }
.step-detailed { display: flex; gap: 1em; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2em; }
.step-detailed h3 { margin: 0 0 .2em; font-size: 1.05rem; color: var(--green-900); }

/* FAQ acordeón */
.faq-section { padding: 48px 0; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1em 1.3em; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.3em; color: var(--coral-600); font-weight: 700; font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1.3em 1.2em; color: var(--muted); }

/* Página legal */
.legal-page, .thanks-page, .page-note { padding: 40px 0; }
.notice-warn { background: #fef6e7; border: 1px solid #f5d99a; color: #8a5a00; border-radius: var(--radius); padding: 1em 1.2em; margin-bottom: 1.2em; }
.legal-body { margin-top: 1em; line-height: 1.7; }
.legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 1.5em; }
.legal-body h2 { color: var(--green-900); font-size: 1.15rem; margin: 1.8em 0 .6em; padding-top: .4em; border-top: 1px solid var(--line); }
.legal-body h3 { color: var(--green-800); font-size: 1rem; margin: 1.3em 0 .5em; }
.legal-body p { margin: .8em 0; }
.legal-body ul { margin: .8em 0; padding-left: 1.3em; }
.legal-body li { margin: .4em 0; }
.legal-body a { color: var(--coral-600); }
.legal-table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: .6em .7em; text-align: left; vertical-align: top; }
.legal-table th { background: var(--green-100); color: var(--green-900); font-weight: 700; }
.legal-table td:first-child { font-weight: 600; }
.legal-disclaimer { margin-top: 2em; padding: 1em 1.2em; background: var(--gray-50); border-left: 3px solid var(--coral-600); border-radius: var(--radius-sm); font-size: .85rem; color: var(--muted); }

/* Sección de contacto */
.contact-section { padding: 48px 0; }
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.company-facts { list-style: none; padding: 0; margin: 0 0 1.2em; }
.company-facts li { padding: .35em 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.company-facts li:last-child { border-bottom: 0; }

/* Formularios comerciales */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6em; box-shadow: var(--shadow); }
.lead-form .field { display: block; margin-bottom: 1em; }
.lead-form .field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35em; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: .7em .85em; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--coral-600); outline-offset: 1px; border-color: var(--coral-600); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.checkbox-inline { display: flex; align-items: flex-start; gap: .5em; }
.checkbox-inline input { width: auto; margin-top: .3em; }
.form-note { font-size: .82rem; color: var(--muted); margin: .4em 0 1em; }

/* Thanks */
.thanks-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 2rem; font-weight: 800; }

.section-title.left { text-align: left; }

@media (min-width: 720px) {
    .benefit-grid.cols-3, .mode-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .feature-check-grid { grid-template-columns: 1fr 1fr; }
    .module-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1.2fr .8fr; }
}

/* Honeypot anti-spam (oculto para humanos) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-bottom: 1.2em; }

/* ==========================================================
   M9 - Herramientas de venta (calculadora, configurador, diagnóstico)
   ========================================================== */
.tool-hero { background: linear-gradient(160deg, var(--green-900), var(--green-800)); color: #fff; padding: 3rem 0 2.5rem; }
.tool-hero h1 { margin: 0 0 .5rem; font-size: 2rem; }
.tool-hero .lead { color: #cfe0d9; max-width: 640px; margin: 0; }
.tool-section { padding: 2.5rem 0 3.5rem; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: 1.05fr .95fr; } }

.tool-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.tool-panel h2 { margin: 0 0 1.2rem; font-size: 1.15rem; color: var(--green-900); }
.tool-field { margin-bottom: 1.4rem; }
.tool-field > label { display: block; font-weight: 600; margin-bottom: .5rem; font-size: .95rem; }

.tool-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-options-lg { flex-direction: column; }
.tool-opt { border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: .6em 1em; cursor: pointer; font: inherit; text-align: left; transition: border-color .15s, background .15s; }
.tool-opt:hover { border-color: var(--green-700); }
.tool-opt.is-active { border-color: var(--green-700); background: var(--green-100); font-weight: 600; }

.tool-checks { display: flex; flex-direction: column; gap: 6px; }
.tool-check { display: flex; align-items: center; gap: .6em; padding: .5em .6em; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.tool-check input { width: 18px; height: 18px; accent-color: var(--green-700); }

/* Barras de nivel (calculadora) */
.tool-gauge { margin-bottom: 1.2rem; }
.tool-gauge-label { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.tool-bars { display: flex; gap: 6px; }
.tool-bar { height: 22px; flex: 1; background: #eceeed; border-radius: 4px; transition: background .2s; }
.tool-bar.is-on { background: linear-gradient(90deg, var(--green-700), var(--coral-600)); }
.tool-note { font-size: .82rem; color: var(--muted); background: var(--gray-50); border-radius: var(--radius-sm); padding: .7em .9em; margin: 1rem 0; }
.tool-cta-text { font-weight: 600; margin: 1rem 0 .6rem; }

/* Wizard (configurador) */
.tool-wizard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); max-width: 680px; margin: 0 auto; }
.tool-step { display: none; }
.tool-step.is-active { display: block; }
.tool-step h3 { margin: 0 0 1.2rem; font-size: 1.2rem; color: var(--green-900); }
.tool-wizard-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.6rem; gap: 12px; }
.tool-dots { display: flex; gap: 6px; }
.tool-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.tool-dot.is-active { background: var(--green-700); }
.btn-ghost { background: none; border: 1.5px solid var(--line); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }

.tool-outcome { max-width: 680px; margin: 1.6rem auto 0; }
.tool-reco { text-align: center; margin-bottom: 1.4rem; }
.tool-reco-badge { display: inline-block; padding: .3em 1em; border-radius: 100px; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.tool-reco-badge.is-pre { background: var(--green-700); }
.tool-reco-badge.is-ecom { background: var(--coral-600); }
.tool-reco-modules { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1rem; }
.tool-reco-modules li { background: var(--green-100); color: var(--green-800); border-radius: 100px; padding: .25em .8em; font-size: .85rem; }

/* Diagnóstico */
.tool-questions { display: flex; flex-direction: column; gap: 12px; }
.tool-question { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tool-q-text { font-size: .92rem; }
.tool-yesno { display: flex; gap: 6px; flex: none; }
.tool-yesno .tool-opt { padding: .4em .9em; }
.tool-score { text-align: center; margin-bottom: 1rem; }
.tool-score-ring { --score: 0; width: 130px; height: 130px; border-radius: 50%; margin: 0 auto .8rem; display: grid; place-items: center; background: conic-gradient(var(--green-700) calc(var(--score) * 1%), #eceeed 0); position: relative; }
.tool-score-ring::before { content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.tool-score-ring span { position: relative; font-size: 2rem; font-weight: 800; color: var(--green-900); }
.tool-score-ring small { position: relative; color: var(--muted); font-size: .8rem; }
.tool-score-level { font-weight: 700; color: var(--green-800); font-size: 1.05rem; }
.tool-reco-text { font-size: .9rem; color: var(--muted); margin: 1rem 0; }

.btn-block { width: 100%; }
.tool-lead .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .tool-lead .form-row { grid-template-columns: 1fr; } .tool-question { flex-direction: column; align-items: flex-start; } }

/* ==========================================================
   M10 - Noticias (frontend público)
   ========================================================== */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 1rem 0 2rem; }
@media (min-width: 640px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr 1fr; } }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-cover img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.news-cat { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--coral-600); font-weight: 700; }
.news-body h2 { font-size: 1.05rem; margin: 0; }
.news-body h2 a { color: var(--green-900); text-decoration: none; }
.news-body h2 a:hover { color: var(--coral-600); }
.news-body p { color: var(--muted); font-size: .9rem; margin: 0; }
.news-date { color: var(--muted); font-size: .78rem; }

.pager { display: flex; gap: 6px; justify-content: center; margin: 1.5rem 0; flex-wrap: wrap; }
.pager-link { padding: .4em .8em; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.pager-link.is-active { background: var(--green-900); color: #fff; border-color: var(--green-900); }

/* Artículo */
.article-hero { background: var(--gray-50); padding: 2.5rem 0 1.5rem; }
.breadcrumb-pub { margin-bottom: .8rem; }
.breadcrumb-pub a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.article-hero h1 { margin: .3rem 0; font-size: 2rem; color: var(--green-900); }
.article-meta { color: var(--muted); font-size: .85rem; display: flex; gap: 12px; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.article-content { padding: 1.5rem 0 2.5rem; line-height: 1.75; }
.article-content h2, .article-content h3 { color: var(--green-900); margin-top: 1.6rem; }
.article-content img { max-width: 100%; border-radius: var(--radius-sm); }
.article-content p { margin: 1rem 0; }
