/* =====================================================================
   site.css - B2B Dubai (b2bdubai.ae)
   ---------------------------------------------------------------------
   Single stylesheet for the whole site. Monochrome palette:
     - Light surfaces (#FAFAFC / #FFFFFF / #F1F3F5)
     - Near-black ink and action colour (#121417)
     - Neutral greys for secondary/muted text and borders
   Structure:
     1. Design tokens & base
     2. Shared chrome: topbar (dark), header (light), buttons, footer (light)
     3. Home page components (hero, stats, categories, featured, feature
        block, locations, CTA)
     4. Utility layer (only the classes used by the templates)
     5. Carried-over components (ms-*, cards, prose, banners...) recoloured
     6. Responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design tokens & base
   --------------------------------------------------------------------- */
:root {
    /* Backgrounds */
    --bg-main: #FAFAFC;
    --bg-surface: #FFFFFF;
    --bg-soft: #F1F3F5;

    /* Text */
    --text-primary: #121417;
    --text-secondary: #4A515A;
    --text-muted: #69717A;

    /* Borders & shadows */
    --border-light: #E2E5E9;
    --shadow-soft: 0 8px 24px rgba(18, 20, 23, .04);
    --shadow-med: 0 10px 24px rgba(18, 20, 23, .08);
    --shadow-strong: 0 22px 60px rgba(18, 20, 23, .08);

    /* Action */
    --action-primary: #121417;
    --action-hover: #2B303A;
    --action-secondary: #E9ECEF;

    /* Near-black panels (dark bands: business header, table heads, funnel) */
    --panel: #121417;
    --panel-2: #1A1D21;

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1180px;

    /* Legacy aliases (kept so carried-over rules resolve to the new palette) */
    --bg: #121417;
    --card: #FFFFFF;
    --text: #121417;
    --muted: #69717A;
    --line: #E2E5E9;
    --white: #FFFFFF;
    --body-bg: #FAFAFC;
    --shadow: 0 22px 60px rgba(18, 20, 23, .08);
    --ink: #121417;
    --ink-2: #2B303A;
    --soft: #F1F3F5;

    --ms-border: var(--border-light);
    --ms-font-text: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Offset for in-page anchors so the sticky header does not cover the target */
.section[id] { scroll-margin-top: 90px; }
section[id] { scroll-margin-top: 90px; }

body {
    margin: 0;
    font-family: var(--ms-font-text);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-secondary);
    background: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ms-font-text);
    color: var(--text-primary);
    line-height: 1.2;
}

p, span, a, li, td, th, label, input, textarea, select, button,
blockquote, small, strong, em, b, i, u, caption, div {
    font-family: var(--ms-font-text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

::selection { background: rgba(18, 20, 23, .12); }

/* =====================================================================
   2. SHARED CHROME
   ===================================================================== */

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

/* ---- Topbar (dark) ---- */
.topbar {
    background: var(--action-primary);
    color: #D8DCE1;
    font-size: 12px;
    letter-spacing: .02em;
}
.topbar .inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.top-links { display: flex; gap: 18px; flex-wrap: wrap; }
.top-links a:hover { color: #fff; }
.topbar strong { color: #fff; font-weight: 600; }

/* ---- Header (light, sticky, blurred) ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 252, .9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 229, 233, .9);
}
.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
}

/* Image logo (header + footer). Height-driven so it scales down on
   small screens while keeping the aspect ratio. */
.brand-logo {
    display: block;
    height: 42px;
    width: auto;
    border-radius: 8px;
}
.site-footer .brand-logo { height: 34px; }

@media (max-width: 680px) {
    .brand-logo { height: 34px; }
    .site-footer .brand-logo { height: 28px; }
}

/* Legacy typographic logo (kept for reference/rollback) */
.logo-mark {
    width: 40px; height: 40px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--action-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}
.brand small { display: block; color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.3px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- Buttons ---- */
.btn {
    min-height: 44px;
    padding: 0 17px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: .2s ease;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }

/* Primary = solid near-black */
.btn-primary, .btn-gold, .btn-dark { background: var(--action-primary); color: #fff; }
.btn-primary:hover, .btn-gold:hover, .btn-dark:hover { background: var(--action-hover); }

/* Secondary / light = white with border */
.btn-secondary, .btn-light { background: var(--bg-surface); border: 1px solid var(--border-light); color: var(--text-primary); }
.btn-secondary:hover, .btn-light:hover { background: var(--bg-soft); }

/* Ghost = subtle (used by the mobile menu toggle on the light header) */
.btn-ghost {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: var(--bg-surface);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* ---- Mobile menu ---- */
.menu-toggle { display: none; }
.mobile-nav {
    display: none;
    border-top: 1px solid var(--border-light);
    padding: 14px 0 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.mobile-nav a:hover { color: var(--text-primary); }
.mobile-nav .btn { width: 100%; margin-top: 14px; }

/* ---- Footer (light) ---- */
.site-footer { background: var(--bg-surface); color: var(--text-muted); border-top: 1px solid var(--border-light); padding: 44px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer .footer-grid .footer-heading { color: var(--text-primary); margin: 0 0 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.site-footer .footer-grid a { display: block; color: var(--text-muted); margin: 10px 0; font-size: 13px; }
.site-footer .footer-grid a:hover { color: var(--text-primary); }
.site-footer .footer-grid p { color: var(--text-secondary); font-size: 13px; line-height: 1.6; max-width: 360px; }
.footer-bottom {
    margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 11px; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--text-primary); text-decoration: underline; }
@media (max-width: 680px) {
    .footer-bottom { justify-content: center; text-align: center; }
}
.site-footer .brand { margin-bottom: 14px; }

/* =====================================================================
   3. HOME PAGE COMPONENTS
   ===================================================================== */

/* ---- Hero (light). Also used as the light page-hero on inner pages
        that only put an eyebrow + h1 + text inside .hero. ---- */
.hero {
    padding: 54px 0 30px;
    background:
        radial-gradient(circle at 10% 0%, rgba(18, 20, 23, .035), transparent 26rem),
        linear-gradient(180deg, #fff 0%, var(--bg-main) 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 44px;
    align-items: stretch;
}
.hero-copy-wrap {
    padding: 42px 0 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* Eyebrow pill */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--action-secondary);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--action-primary); }

/* Big hero statement (home). NOT an h1 for SEO, keeps the visual weight. */
.hero-statement,
.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(46px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -.055em;
    max-width: 710px;
    font-weight: 800;
    color: var(--text-primary);
}
.hero-statement em,
.hero h1 em {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.03em;
    color: var(--text-primary);
}

/* The home hero uses the eyebrow style as its H1 (SEO): declared AFTER the
   big-hero rules so, with equal specificity, the pill look wins. */
h1.eyebrow {
    font-size: 11px;
    line-height: inherit;
    letter-spacing: .06em;
    color: var(--text-primary);
    max-width: none;
    margin: 0 0 18px 0;
    font-weight: 800;
}
.hero p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.65;
    max-width: 660px;
    margin: 22px 0 0;
}

/* ---- Search box ---- */
.search-box {
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-strong);
    border-radius: 16px;
    padding: 8px;
    display: grid;
    grid-template-columns: 1.4fr .8fr auto;
    gap: 8px;
}
.search-box--single { grid-template-columns: 1fr auto; }
.field-wrap { position: relative; }
.field {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
}
.field span, .field svg { color: var(--text-muted); flex: 0 0 auto; }
.field svg { width: 18px; }
.field input, .field select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}
.search-box .btn { min-height: 54px; min-width: 126px; padding-inline: 22px; }

/* Popular tags row under the search box */
.popular {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 12px;
    align-items: center;
}
.popular a, .popular button {
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: .2s ease;
}
.popular a:hover, .popular button:hover { color: var(--text-primary); background: var(--bg-soft); }

/* ---- Search suggestions dropdown ---- */
.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    z-index: 30;
    text-align: left;
}
.search-suggestions.open { display: block; }
.search-suggestions__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color .15s ease;
}
.search-suggestions__item:last-child { border-bottom: none; }
.search-suggestions__item:hover { background-color: var(--bg-soft); }
.search-suggestions__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--action-secondary);
    color: var(--text-primary);
    font-size: 13px;
}
.search-suggestions__label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggestions__meta {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* ---- Hero visual (dark panel with skyline) ---- */
.hero-visual {
    min-height: 560px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 15%, rgba(255, 255, 255, .13), transparent 16rem),
        linear-gradient(180deg, #171A1E 0%, #121417 100%);
    color: #fff;
    position: relative;
    box-shadow: var(--shadow-strong);
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 30%, rgba(0, 0, 0, .12));
}
.visual-top {
    position: absolute;
    top: 24px; left: 24px; right: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    z-index: 2;
}
.visual-badge {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    border-radius: 12px;
    font-size: 12px;
    color: #E8EAED;
    backdrop-filter: blur(10px);
}
.visual-badge span {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: #fff;
    color: var(--action-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
}
.visual-label {
    text-align: right;
    color: #B9BEC5;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.skyline {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: 76%;
    opacity: .97;
}
.visual-metric {
    position: absolute;
    left: 24px; bottom: 24px;
    z-index: 2;
    max-width: 280px;
}
.visual-metric small {
    display: block;
    color: #9EA4AC;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 7px;
}
.visual-metric strong {
    display: block;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.05em;
    margin-bottom: 8px;
    color: #fff;
}
.visual-metric p { margin: 0; color: #C6CBD1; font-size: 12px; line-height: 1.5; }

/* ---- Sections ---- */
.section { padding: 82px 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}
.section-head h2 { margin: 10px 0 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.05; letter-spacing: -.045em; }
.section-head p { margin: 0; max-width: 520px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.text-link { color: var(--text-primary); font-weight: 750; font-size: 13px; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* ---- Stats (hero strip + card grids) ---- */
.hero-stats {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.hero-stats .stat { padding: 21px 22px; border-right: 1px solid var(--border-light); }
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .stat strong { display: block; font-size: 24px; letter-spacing: -.04em; margin-bottom: 4px; color: var(--text-primary); }
.hero-stats .stat span { color: var(--text-muted); font-size: 12px; }

.stats { margin-top: 0; position: relative; z-index: 4; padding: 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.stats-grid--listing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 2.5rem;
}
.stat { padding: 24px 26px; border-right: 1px solid var(--border-light); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 30px; letter-spacing: -.6px; color: var(--text-primary); }
.stat span { font-size: 13px; color: var(--text-muted); }

/* ---- Categories: card grid (inner pages) ---- */
.categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 22px;
    transition: .2s ease;
    display: block;
}
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow-med); border-color: #d3d7dd; }
.cat-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--action-secondary); color: var(--text-primary); font-size: 22px; margin-bottom: 18px;
}
.category h3 { margin: 0 0 7px; font-size: 17px; }
.category p { margin: 0; color: var(--text-muted); font-size: 13px; }
.count { display: block; margin-top: 16px; color: var(--text-primary); font-size: 12px; font-weight: 800; }

/* ---- Categories: list rows (home) ---- */
.category-list { border-top: 1px solid var(--border-light); }
.category-row {
    display: grid;
    grid-template-columns: 1.3fr .9fr auto;
    gap: 28px;
    align-items: center;
    min-height: 84px;
    border-bottom: 1px solid var(--border-light);
    transition: .2s ease;
    color: inherit;
}
.category-row:hover { background: #fff; padding-left: 12px; padding-right: 12px; }
/* Static row (grouped-by-sector): the row is not clickable, only its category
   links are, so cancel the whole-row hover/indent affordance. */
.category-row--static { cursor: default; }
.category-row--static:hover { background: transparent; padding-left: 0; padding-right: 0; }
.category-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 740;
    letter-spacing: -.02em;
    color: var(--text-primary);
}
.category-title i { color: var(--text-primary); font-size: 17px; width: 22px; text-align: center; }
.category-index { color: var(--text-muted); font-size: 11px; width: 26px; }
.category-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.4; }
.category-desc a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.category-desc a:hover { color: var(--action-hover); }
.category-count { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

/* ---- Featured companies: light band with rows (home) ---- */
.featured {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter {
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: .2s ease;
}
.filter.active,
.filter:hover { background: var(--action-primary); color: #fff; border-color: var(--action-primary); }

.company-list {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border-light);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.company {
    display: grid;
    grid-template-columns: 1.5fr 1.65fr max-content auto;
    gap: 24px;
    align-items: center;
    min-height: 150px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: .2s ease;
    color: inherit;
}
.company:last-child { border-bottom: 0; }
.company:hover { background: #FCFCFD; }
.company-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.company .logo {
    width: 54px; height: 54px; flex: 0 0 54px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: linear-gradient(145deg, #fff, var(--bg-soft));
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text-primary);
}
/* Horizontal photo thumbnail (first business image) */
.company .logo-img {
    flex: 0 0 152px;
    width: 152px; height: 96px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-soft);
}
.company .logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.company h3 { margin: 0 0 5px; font-size: 16px; letter-spacing: -.02em; }
.company-sub { color: var(--text-muted); font-size: 12px; }
.company-copy { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.company-meta { display: grid; gap: 7px; color: var(--text-muted); font-size: 11px; }
.company .tag {
    display: inline-flex;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--action-secondary);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 800;
    margin-top: 7px;
}
.company-action { font-size: 13px; font-weight: 750; white-space: nowrap; color: var(--text-primary); }

/* ---- Featured companies: dark band + cards (methodology funnel etc.) ---- */
.featured-wrap { background: var(--panel); color: #fff; padding: 82px 0; }
.featured-wrap .section-head h2 { color: #fff; }
.featured-wrap .section-head p { color: #B9BEC5; }
.featured-wrap .stats-grid { background: var(--panel-2); border-color: rgba(255, 255, 255, .08); }
.featured-wrap .stat { border-right-color: rgba(255, 255, 255, .08); }
.featured-wrap .stat strong { color: #fff; }
.featured-wrap .stat span { color: #9EA4AC; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.company-card {
    background: #fff; color: var(--text-primary); border-radius: 20px; padding: 22px;
    border: 1px solid var(--border-light);
}
.company-top { display: flex; align-items: center; gap: 14px; }
.company-logo {
    width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
    background: var(--bg-soft); border: 1px solid var(--border-light); font-weight: 900; color: var(--text-primary); font-size: 16px;
    flex-shrink: 0;
}
.company-card h3 { font-size: 17px; margin: 0 0 3px; }
.company-card .location { font-size: 12px; color: var(--text-muted); }
.verified { display: inline-flex; align-items: center; gap: 6px; color: var(--text-primary); font-size: 11px; font-weight: 800; margin-top: 6px; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 11px; font-weight: 800; margin-top: 6px; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 18px 0; }
.tag { padding: 7px 9px; background: var(--bg-soft); border-radius: 999px; font-size: 11px; color: var(--text-secondary); }
.company-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-light); padding-top: 16px; }
.company-foot small { color: var(--text-muted); }
.company-foot a { font-size: 12px; font-weight: 800; color: var(--text-primary); }
.company-foot a:hover { text-decoration: underline; }

/* ---- How it works (steps) ---- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border-light); padding: 18px; border-radius: 16px; box-shadow: var(--shadow-soft); }
.step-num {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center; background: var(--action-primary); color: #fff; font-weight: 900;
}
.step h3 { margin: 0 0 5px; font-size: 16px; }
.step p { margin: 0; color: var(--text-muted); font-size: 13px; }
.visual-panel {
    min-height: 430px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 15%, rgba(255, 255, 255, .10), transparent 16rem),
        linear-gradient(180deg, #171A1E 0%, #121417 100%);
    box-shadow: var(--shadow-strong);
}
.visual-card {
    position: absolute; left: 24px; right: 24px; bottom: 24px;
    background: rgba(255, 255, 255, .93); backdrop-filter: blur(10px);
    border-radius: 18px; padding: 18px; color: var(--text-primary);
}
.visual-card strong { display: block; font-size: 20px; }
.visual-card span { color: var(--text-muted); font-size: 13px; }

/* ---- Feature block (light shell: "how we select" / guides) ---- */
.dark-feature { padding: 82px 0; }
.dark-shell {
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 86% 18%, rgba(18, 20, 23, .035), transparent 18rem),
        var(--bg-soft);
    color: var(--text-primary);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    min-height: 470px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}
.dark-copy { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.dark-copy h2 { margin: 18px 0 14px; font-size: clamp(34px, 4.5vw, 54px); line-height: 1; letter-spacing: -.05em; max-width: 520px; }
.dark-copy p { color: var(--text-secondary); line-height: 1.65; max-width: 560px; margin: 0; }
.dark-copy .btn { margin-top: 22px; width: fit-content; }
.dark-panel {
    border-left: 1px solid var(--border-light);
    padding: 32px;
    display: grid;
    align-content: center;
    gap: 12px;
}
.dark-item {
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
}
.dark-item small { color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; font-size: 9px; font-weight: 800; }
.dark-item strong { display: block; font-size: 18px; margin: 5px 0 3px; color: var(--text-primary); }
.dark-item span { color: var(--text-secondary); font-size: 12px; }

/* ---- Locations grid (home: cities / districts) ---- */
.locations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.location {
    min-height: 155px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .2s ease;
    color: inherit;
}
.location:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.location small { color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; font-size: 9px; font-weight: 800; }
.location h3 { margin: 20px 0 5px; font-size: 18px; letter-spacing: -.025em; }
.location p { margin: 0; color: var(--text-muted); font-size: 11px; }

/* ---- CTA (light card) ---- */
.cta {
    border-radius: var(--radius-xl);
    padding: 46px;
    background: #fff;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    box-shadow: var(--shadow-soft);
}
.cta h2 { margin: 8px 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.05em; line-height: 1.03; }
.cta p { margin: 0; color: var(--text-secondary); max-width: 650px; line-height: 1.55; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-actions .btn { white-space: nowrap; }

/* =====================================================================
   4. UTILITY LAYER (only the classes used by the templates)
   ===================================================================== */

/* Display & layout */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-w-0 { min-width: 0; }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-6 { grid-column: span 6 / span 6; }

/* Sizing */
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.h-1 { height: .25rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.max-h-80 { max-height: 20rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }
.object-cover { object-fit: cover; }

/* Positioning */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.bottom-4 { bottom: 1rem; }
.bottom-14 { bottom: 3.5rem; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.origin-bottom-right { transform-origin: bottom right; }

/* Spacing */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: .5rem; margin-right: .5rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: .25rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mr-1 { margin-right: .25rem; }
.mr-2 { margin-right: .5rem; }
.mr-3 { margin-right: .75rem; }
.mr-4 { margin-right: 1rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pl-5 { padding-left: 1.25rem; }
.pt-2 { padding-top: .5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }

/* Typography */
.text-xs { font-size: .75rem; line-height: 1.4; }
.text-sm { font-size: .875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-xl { font-size: 1.25rem; line-height: 1.45; }
.text-2xl { font-size: 1.5rem; line-height: 1.35; }
.text-3xl { font-size: 1.875rem; line-height: 1.25; }
.text-4xl { font-size: 2.25rem; line-height: 1.2; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-sans { font-family: var(--ms-font-text); }
.text-center { text-align: center; }
.underline { text-decoration-line: underline; }
.list-disc { list-style-type: disc; }
.resize-vertical { resize: vertical; }

/* Colors - neutrals */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-400 { color: #9AA0A8; }
.text-gray-500 { color: var(--text-muted); }
.text-gray-600 { color: #5A616B; }
.text-gray-700 { color: var(--text-secondary); }
.text-gray-800 { color: #2C3138; }
.text-gray-900 { color: var(--text-primary); }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: var(--bg-main); }
.bg-gray-800 { background-color: var(--panel-2); }
.hover\:bg-gray-50:hover { background-color: var(--bg-soft); }
.hover\:bg-gray-700:hover { background-color: var(--action-hover); }

/* Colors - accent (mapped to the monochrome palette) */
.text-red-600, .hover\:text-red-600:hover { color: var(--text-primary); }
.text-red-700, .hover\:text-red-700:hover { color: var(--action-hover); }
.hover\:text-red-800:hover { color: #000; }
.text-red-100 { color: var(--text-secondary); }
.bg-red-600 { background-color: var(--action-primary); }
.hover\:bg-red-700:hover { background-color: var(--action-hover); }
.text-green-700 { color: var(--text-primary); }
.text-yellow-400 { color: var(--text-primary); }
.text-yellow-700 { color: var(--text-secondary); }
.text-yellow-800 { color: var(--text-secondary); }
.bg-green-100 { background-color: var(--bg-soft); }
.bg-yellow-50 { background-color: var(--bg-soft); }
.group:hover .group-hover\:text-red-600 { color: var(--text-primary); }
.group:hover .group-hover\:text-red-700 { color: var(--action-hover); }
.group:hover .group-hover\:bg-red-200 { background-color: var(--action-secondary); }
.hover\:underline:hover { text-decoration-line: underline; }

/* Borders */
.border { border-width: 1px; border-style: solid; border-color: var(--border-light); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--border-light); }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: var(--border-light); }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-gray-100 { border-color: #EFF1F4; }
.border-gray-200 { border-color: var(--border-light); }
.border-gray-300 { border-color: #D3D7DD; }
.border-green-400 { border-color: #9AA0A8; }
.border-yellow-400 { border-color: var(--text-primary); }
.border-red-400 { border-color: #9AA0A8; }
.border-red-600 { border-color: var(--action-primary); }

/* Radius & shadows */
.rounded { border-radius: .375rem; }
.rounded-md { border-radius: .5rem; }
.rounded-lg { border-radius: .625rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 3px rgba(18, 20, 23, .06), 0 1px 2px rgba(18, 20, 23, .04); }
.shadow-lg { box-shadow: var(--shadow-med); }
.shadow-2xl { box-shadow: var(--shadow-strong); }
.hover\:shadow-md:hover { box-shadow: var(--shadow-med); }

/* Transform, transition, state */
.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)); }
.opacity-0 { opacity: 0; }
.scale-95 { transform: scale(.95); }
.transition-all { transition: all .3s ease; }
.transition-colors { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.transition-shadow { transition: box-shadow .2s ease; }
.duration-300 { transition-duration: .3s; }
.hover\:scale-105:hover { transform: scale(1.05); }
.focus\:outline-none:focus { outline: none; }
.focus\:border-transparent:focus { border-color: transparent; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(18, 20, 23, .35); outline: none; }
.focus\:ring-4:focus { box-shadow: 0 0 0 4px rgba(18, 20, 23, .25); outline: none; }
.focus\:ring-red-300:focus { box-shadow: 0 0 0 3px rgba(18, 20, 23, .25); outline: none; }
.focus\:ring-red-600:focus { box-shadow: 0 0 0 3px rgba(18, 20, 23, .4); outline: none; }

/* =====================================================================
   5. CARRIED-OVER COMPONENTS (recoloured to the monochrome palette)
   ===================================================================== */

/* ---- Prose (DB-generated content: infocategorias, legal pages) ---- */
.prose { line-height: 1.75; }
.prose p { margin: 0 0 1rem; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 1.4rem 0 1rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.2rem 0 .9rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .4rem; }
.prose-lg { font-size: 1.05rem; }

/* ---- Misc project classes ---- */
.stars { color: var(--text-primary); }
.divider { height: 1px; background: var(--border-light); margin: 1rem 0; }
.text-icono { color: var(--text-primary); }
.bg-header { background-color: var(--panel); }
.bg-servicios { background-color: var(--bg-soft); }
.destacado-verde { background-color: var(--action-primary); }
.business-name-link { text-decoration: underline; text-decoration-style: dotted; color: var(--text-primary); }
.business-name-link:hover { text-decoration-style: solid; }
.etiqueta-naranja-resumen-negocio {
    display: inline-block;
    background: var(--action-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 6px;
    letter-spacing: .2px;
    line-height: 1.4;
}

/* ---- Featured sectors block (city page) ---- */
.destacado-patologias {
    background-color: #fff;
    border-left: 4px solid var(--action-primary);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
}
.destacado-patologias__head { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }
.destacado-patologias__icon {
    width: 2.25rem; height: 2.25rem; border-radius: .5rem;
    background-color: var(--action-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.destacado-patologias__label {
    font-weight: 700; font-size: .78rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--text-primary); line-height: 1;
}
.destacado-patologias__pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.destacado-patologias__pill {
    font-size: .875rem; padding: .375rem .875rem; border-radius: 9999px;
    border: 1px solid var(--border-light); background-color: #fff; color: var(--text-secondary);
    white-space: nowrap; line-height: 1.3;
}
.destacado-patologias__pill:hover { border-color: var(--action-primary); color: var(--text-primary); }

/* ---- Legacy CTA buttons (inner pages) ---- */
.mi-elemento, .mi-elemento-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--action-primary);
    color: #fff;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}
.mi-elemento { padding: 8px 16px; }
.mi-elemento:hover, .mi-elemento-content:hover {
    transform: translateY(-1px);
    background: var(--action-hover);
    color: #fff;
}
.ms-cta-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}
.ms-cta-alt:hover {
    background-color: var(--bg-soft);
    color: var(--text-primary);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

/* ---- Business profile card (business.php) ---- */
.ms-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.ms-card.ms-card--header { background-color: var(--panel); border-color: var(--panel); }
.ms-card--header .ms-card__category { color: #B9BEC5; }
.ms-card--header .ms-card__title,
.ms-card--header .ms-card__subtitle,
.ms-card--header .ms-card__rating { color: #fff; }
.ms-card__banner { width: 100%; height: 280px; object-fit: cover; display: block; }
.ms-card__header {
    display: flex; flex-wrap: wrap; align-items: flex-start;
    justify-content: space-between; gap: 1.5rem; padding: 2rem;
}
.ms-card__heading { flex: 1 1 320px; min-width: 0; }
.ms-card__category {
    font-weight: 700; font-size: .78rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-primary); margin: 0 0 .5rem;
}
.ms-card__title { font-weight: 800; color: var(--text-primary); font-size: 1.875rem; margin: 0 0 .5rem; }
.ms-card__subtitle { font-weight: 400; color: var(--text-secondary); font-size: 1rem; margin: 0 0 .75rem; }
.ms-card--header .ms-card__subtitle { color: #C6CBD1; }
.ms-card__rating { display: flex; align-items: center; gap: .5rem; color: var(--text-secondary); font-size: .95rem; }
.ms-card--header .ms-card__rating { color: #C6CBD1; }
.ms-card__buttons { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; flex-shrink: 0; }
.ms-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; font-size: .95rem;
    padding: .7rem 1.4rem; border-radius: 12px;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ms-btn--primary { background: var(--action-primary); color: #fff; }
.ms-btn--primary:hover { transform: translateY(-1px); background: var(--action-hover); }
.ms-btn--outline { background-color: #fff; color: var(--text-primary); border-color: var(--border-light); }
.ms-btn--outline:hover { background-color: var(--bg-soft); border-color: #D3D7DD; transform: translateY(-1px); }
.ms-card--header .ms-btn--outline { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.ms-card--header .ms-btn--outline:hover { background: #fff; color: var(--text-primary); }
.ms-card__body { padding: 2rem; }
.ms-card__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.ms-card__main { min-width: 0; }
.ms-card__aside { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ms-card__section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-light); }
.ms-card__section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.ms-card__section-title {
    font-weight: 800; color: var(--text-primary); font-size: .95rem;
    text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem;
}
.ms-card__text { color: var(--text-secondary); line-height: 1.7; font-size: 1rem; }
.ms-card__text p { margin: 0 0 .75rem; }
.ms-card__text p:last-child { margin-bottom: 0; }
.ms-check-list { list-style: none; margin: 0 0 1rem; padding: 0 0 0 1.2rem; border-left: 4px solid var(--action-primary); }
.ms-check-list:last-child { margin-bottom: 0; }
.ms-check-list li { margin: 0 0 .85rem; line-height: 1.55; }
.ms-check-list li:last-child { margin-bottom: 0; }
.ms-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.ms-tags__pill {
    display: inline-block; font-size: .85rem; font-weight: 500;
    color: var(--text-primary); background-color: var(--bg-soft);
    border: 1px solid var(--border-light); padding: .35rem .85rem;
    border-radius: 9999px; line-height: 1.4;
}
.ms-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-light); }
.ms-map iframe { width: 100%; height: 300px; border: 0; display: block; }
.ms-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.ms-gallery__img {
    width: 100%; height: 160px; object-fit: cover;
    border-radius: 12px; display: block; transition: transform .2s ease;
}
.ms-gallery__img:hover { transform: scale(1.03); }
.ms-gallery--stack { grid-template-columns: 1fr; gap: .75rem; }
.ms-gallery--stack .ms-gallery__img { height: auto; aspect-ratio: 16 / 9; width: 100%; }

/* ---- "How we build this guide" block ---- */
.ms-selection { background-color: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 1rem; padding: 1.5rem 1.75rem; margin: 0 0 2rem; }
.ms-selection--about { max-width: 48rem; margin-left: auto; margin-right: auto; }
.ms-selection__title { font-weight: 800; color: var(--text-primary); font-size: 1.35rem; line-height: 1.3; margin: 0 0 .75rem; }
.ms-selection__text { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; margin: 0; }

/* ---- Side modules (contact details, opening hours...) ---- */
.ms-info-card {
    background-color: #fff; border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 1.25rem; overflow: hidden;
}
.ms-info-card__title {
    font-weight: 700; color: var(--text-primary); font-size: .95rem;
    margin: -1.25rem -1.25rem 1rem; padding: .75rem 1.25rem;
    background-color: var(--bg-soft); border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: .5rem;
}
.ms-info-card__title i { color: var(--text-primary); font-size: 1rem; }
.ms-info-card__row { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--border-light); }
.ms-info-card__row:last-child { border-bottom: none; }
.ms-info-card__row i { color: var(--text-primary); font-size: .9rem; margin-top: .15rem; flex-shrink: 0; width: 1rem; text-align: center; }
.ms-info-card__row-label { color: var(--text-muted); font-weight: 600; font-size: .85rem; display: block; margin-bottom: .1rem; }
.ms-info-card__row-value { color: var(--text-secondary); font-size: .88rem; line-height: 1.5; word-break: break-word; }
.ms-info-card__row-value a { color: var(--text-primary); text-decoration: none; transition: color .2s ease; }
.ms-info-card__row-value a:hover { color: var(--action-hover); text-decoration: underline; }
.ms-schedule { list-style: none; margin: 0; padding: 0; }
.ms-schedule__row {
    display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    column-gap: 1rem; align-items: baseline; padding: .5rem 0;
    border-bottom: 1px solid var(--border-light);
}
.ms-schedule__row:last-child { border-bottom: none; }
.ms-schedule__day { color: var(--text-secondary); font-weight: 600; font-size: .88rem; }
.ms-schedule__time { color: var(--text-secondary); font-size: .88rem; text-align: right; font-variant-numeric: tabular-nums; }
.ms-schedule__time--closed { color: var(--text-muted); font-style: italic; }
.ms-schedule__fallback { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; margin: 0; white-space: pre-line; }

/* ---- Hero / about sections (ms-hero used on about page) ---- */
.ms-hero { text-align: left; }
.ms-hero__title { color: var(--text-primary); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-size: 1.875rem; margin: 0 0 1rem; }
.ms-hero__highlight { color: var(--text-primary); font-weight: 800; }
.ms-hero__lead { color: var(--text-secondary); font-weight: 400; font-size: 1rem; margin: 0 0 1.5rem; }
@media (min-width: 768px) {
    .ms-hero__title { font-size: 2.5rem; }
    .ms-hero__lead { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
    .ms-hero__title { font-size: 3rem; }
    .ms-hero__lead { font-size: 1.25rem; }
}

/* ---- Value cards / section heads / explore (about page) ---- */
.ms-value {
    background-color: #fff; border: 1px solid var(--border-light); border-radius: 16px;
    padding: 1.5rem; text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease; height: 100%;
}
.ms-value:hover { transform: translateY(-2px); box-shadow: var(--shadow-med); }
.ms-value__icon {
    width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 9999px;
    background-color: var(--action-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.ms-value__icon i { font-size: 1.25rem; }
.ms-value__title { font-weight: 700; color: var(--text-primary); font-size: 1.05rem; margin: 0 0 .5rem; }
.ms-value__text { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; margin: 0; }
.ms-section-head { text-align: center; max-width: 48rem; margin: 0 auto 2.5rem; }
.ms-section-head__title { font-weight: 800; color: var(--text-primary); font-size: 1.875rem; margin: 0 0 .75rem; }
.ms-section-head__text { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; margin: 0; }
.ms-explore { background-color: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 2rem; text-align: center; }
.ms-explore__links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.25rem; }
.ms-explore__link {
    display: inline-flex; align-items: center; gap: .5rem;
    background-color: #fff; border: 1px solid var(--border-light); border-radius: 12px;
    padding: .7rem 1.2rem; color: var(--text-primary); font-weight: 600; font-size: .92rem;
    text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ms-explore__link:hover { background-color: var(--bg-soft); border-color: var(--action-primary); color: var(--text-primary); }
.ms-explore__link i { color: var(--text-primary); }

/* ---- Ranking bars (about / methodology page) ---- */
.ms-ranking {
    background-color: #fff; border: 1px solid var(--border-light); border-radius: 16px;
    box-shadow: var(--shadow-soft); padding: 2rem; max-width: 48rem; margin: 0 auto;
}
.ms-ranking__intro { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; margin: 0 0 1.75rem; }
.ms-ranking__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.ms-ranking__row { margin: 0; padding: 0; }
.ms-ranking__head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .4rem; }
.ms-ranking__pct { font-weight: 800; color: var(--text-primary); font-size: 1.05rem; min-width: 3rem; font-variant-numeric: tabular-nums; }
.ms-ranking__label { color: var(--text-secondary); font-weight: 600; font-size: .95rem; }
.ms-ranking__track { background-color: var(--bg-soft); border-radius: 9999px; height: .6rem; overflow: hidden; }
.ms-ranking__bar {
    display: block; height: 100%; width: 0; border-radius: 9999px;
    background: linear-gradient(90deg, var(--action-hover) 0%, var(--action-primary) 100%);
    transition: width 1.2s cubic-bezier(.16, 1, .3, 1);
}

/* ---- DB editorial content (city page info + FAQs) ---- */
.seccion-contenido-principal { line-height: 1.75; color: var(--text-secondary); }

.seccion-contenido-principal h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--text-primary);
    margin: 2.25rem 0 1rem;
    letter-spacing: -.3px;
}
.seccion-contenido-principal h2:first-child { margin-top: 0; }

.seccion-contenido-principal h3 {
    font-size: 1.3rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 .85rem;
}
.seccion-contenido-principal h3:first-child { margin-top: 0; }

.seccion-contenido-principal h4 {
    font-size: 1.12rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.6rem 0 .7rem;
}

.seccion-contenido-principal h5 {
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.4rem 0 .6rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .85rem;
}

.seccion-contenido-principal h6 {
    font-size: .9rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-muted);
    margin: 1.3rem 0 .5rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.seccion-contenido-principal p { margin: 0 0 1.1rem; }
.seccion-contenido-principal p:last-child { margin-bottom: 0; }

.seccion-contenido-principal ul,
.seccion-contenido-principal ol { margin: 0 0 1.1rem; padding-left: 1.5rem; }
.seccion-contenido-principal ul { list-style: disc; }
.seccion-contenido-principal ol { list-style: decimal; }
.seccion-contenido-principal li { margin-bottom: .45rem; }
.seccion-contenido-principal li:last-child { margin-bottom: 0; }
.seccion-contenido-principal li > ul,
.seccion-contenido-principal li > ol { margin: .45rem 0 0; }

.seccion-contenido-principal strong { color: var(--text-primary); font-weight: 700; }
.seccion-contenido-principal a { color: var(--text-primary); text-decoration: underline; text-decoration-style: dotted; }
.seccion-contenido-principal a:hover { text-decoration-style: solid; }

.seccion-contenido-principal blockquote {
    margin: 1.5rem 0;
    padding: .9rem 1.25rem;
    border-left: 4px solid var(--action-primary);
    background: var(--bg-soft);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
    font-style: italic;
}
.seccion-contenido-principal blockquote p:last-child { margin-bottom: 0; }

.seccion-contenido-principal table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .95rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.seccion-contenido-principal thead th {
    background: var(--panel);
    color: #fff;
    text-align: left;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--panel-2);
}

.seccion-contenido-principal tbody td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.seccion-contenido-principal tbody tr:last-child td { border-bottom: none; }
.seccion-contenido-principal tbody tr:nth-child(even) { background: var(--bg-main); }
.seccion-contenido-principal tbody tr:hover { background: var(--bg-soft); }
.seccion-contenido-principal tbody td:first-child { font-weight: 600; color: var(--text-primary); }

@media (max-width: 680px) {
    .seccion-contenido-principal h2 { font-size: 1.35rem; }
    .seccion-contenido-principal h3 { font-size: 1.15rem; }
    .seccion-contenido-principal table { font-size: .88rem; }
    .seccion-contenido-principal thead th,
    .seccion-contenido-principal tbody td { padding: .65rem .7rem; }
}

/* ---- Advertising banner 728x90 ---- */
.banner-728x90 {
    width: 728px; height: 90px; margin: 20px auto;
    display: block; text-align: center; border: 0;
    border-radius: 8px; overflow: hidden; position: relative;
}
.banner-728x90 a.banner-link { display: block; width: 100%; height: 100%; text-decoration: none; line-height: 0; }
.banner-728x90 img { width: 728px; height: 90px; object-fit: cover; display: block; transition: opacity .2s ease; }
.banner-728x90 img:hover { opacity: .9; }
.banner-728x90 a.banner-link:focus { outline: 3px solid var(--action-primary); outline-offset: 2px; }
@media (max-width: 1023px) and (min-width: 768px) {
    .banner-728x90 { width: 100%; max-width: 728px; height: auto; }
    .banner-728x90 img { width: 100%; height: auto; }
}
@media (max-width: 767px) {
    .banner-728x90 { width: 100%; max-width: 728px; height: auto; margin: 15px auto; }
    .banner-728x90 img { width: 100%; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .banner-728x90 img { transition: none; }
}
@media print {
    .banner-728x90 { display: none; }
}

/* =====================================================================
   6. RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
    .nav-links { display: none; }
    .menu-toggle { display: inline-flex; }
    .hero-grid, .how-grid, .dark-shell { grid-template-columns: 1fr; }
    .hero-visual { min-height: 430px; }
    .company { grid-template-columns: 1.4fr 1.6fr max-content; }
    .company-action { display: none; }
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-stats .stat:nth-child(2) { border-right: 0; }
    .hero-stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-light); }
    .dark-panel { border-left: 0; border-top: 1px solid var(--border-light); }
    .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-light); }
    .stats-grid--listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-grid--listing .stat:nth-child(2) { border-right: 1px solid var(--border-light); }
    .stats-grid--listing .stat:nth-child(-n+2) { border-bottom: none; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:p-4 { padding: 1rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:max-w-4xl { max-width: 56rem; }
    .md\:text-base { font-size: 1rem; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-5xl { font-size: 2.5rem; }
    .md\:w-72 { width: 18rem; }
    .md\:bottom-16 { bottom: 4rem; }
    .md\:bottom-6 { bottom: 1.5rem; }
    .md\:right-6 { right: 1.5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .ms-card__header { padding: 1.25rem; }
    .ms-card__title { font-size: 1.5rem; }
    .ms-card__buttons { width: 100%; }
    .ms-btn { flex: 1; justify-content: center; }
    .ms-card__body, .ms-card__grid { padding: 1.25rem; gap: 1.5rem; }
    .ms-card__grid { grid-template-columns: 1fr; }
    .ms-gallery { grid-template-columns: repeat(2, 1fr); }
    .ms-gallery__img { height: 140px; }
    .ms-gallery--stack { grid-template-columns: 1fr; }
    .ms-gallery--stack .ms-gallery__img { height: auto; }
    .ms-card__banner { height: 200px; }
    .ms-schedule { column-gap: .75rem; row-gap: .35rem; }
    .destacado-patologias { flex-direction: row; align-items: center; gap: 1.25rem; padding: 1rem 1.5rem; }
}

@media (max-width: 700px) {
    .container { width: min(var(--container), calc(100% - 24px)); }
    .topbar .inner { justify-content: center; text-align: center; }
    .top-links { display: none; }
    .nav { min-height: 66px; }
    .nav-actions .btn-ghost { display: inline-flex; }
    .hero { padding-top: 28px; }
    .hero-copy-wrap { padding-top: 24px; }
    .hero-statement, .hero h1 { font-size: 48px; }
    h1.eyebrow { font-size: 11px; }
    .hero p { font-size: 16px; }
    .search-box { grid-template-columns: 1fr; }
    .search-box .field { border-right: 0; }
    .search-box .btn { width: 100%; }
    .hero-visual { min-height: 360px; }
    .section { padding: 58px 0; }
    .dark-feature { padding: 58px 0; }
    .section-head { display: block; }
    .section-head p { margin-top: 12px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .category-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
        min-height: 0;
        padding: 14px 0;
    }
    .category-desc { grid-column: 1 / -1; padding-left: 40px; }
    .company {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 20px;
    }
    .company-meta { display: flex; gap: 12px; flex-wrap: wrap; }
    .dark-copy { padding: 30px 24px; }
    .dark-panel { padding: 20px; }
    .locations-grid { grid-template-columns: 1fr; }
    .stats-grid, .featured-grid, .categories, .footer-grid { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--border-light); }
    .stat:last-child { border-bottom: 0; }
    .cta { display: block; padding: 30px 24px; }
    .cta .btn, .cta-actions .btn { width: 100%; margin-top: 10px; }
    .cta-actions { width: 100%; }
    .ms-section-head__title { font-size: 1.5rem; }
    .ms-explore { padding: 1.5rem; }
    .ms-ranking { padding: 1.5rem; }
    .ms-ranking__pct { font-size: .95rem; min-width: 2.5rem; }
    .ms-ranking__label { font-size: .88rem; }
}

/* =====================================================================
   7. METHODOLOGY PAGE (monochrome adaptation of the provided layout)
   ===================================================================== */

/* Kicker label above section titles */
.mth-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Hero pill row */
.mth-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mth-pill {
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Principles cards use the shared .category card. Numbered icon override */
.mth-num { font-size: 15px; font-weight: 900; letter-spacing: .02em; }

/* ---- Selection funnel (on the dark .featured-wrap band) ---- */
.mth-funnel { margin-top: 46px; }
.mth-funnel svg { display: block; width: 100%; height: auto; max-width: 760px; margin: 0 auto; }
.mth-funnel-note { max-width: 820px; margin: 30px auto 0; text-align: center; color: #B9BEC5; font-size: 15px; }

/* ---- B2B Score ---- */
.mth-score-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.mth-score-total {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, #1A1D21 0%, #121417 100%);
    color: #fff;
    box-shadow: var(--shadow-strong);
}
.mth-score-total .mth-big { font-size: 72px; line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.mth-score-total h3 { color: #fff; margin: 6px 0 10px; font-size: 20px; }
.mth-score-total p { color: #C6CBD1; margin: 0; }
.mth-formula {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    font-size: 14px;
    color: #E8EAED;
    margin-top: 22px;
    line-height: 1.6;
}

.mth-weights { display: flex; flex-direction: column; gap: 14px; }
.mth-weight { padding: 18px 20px; border: 1px solid var(--border-light); border-radius: 18px; background: #fff; }
.mth-weight-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.mth-weight strong { font-size: 16px; color: var(--text-primary); }
.mth-weight .mth-pct { font-weight: 900; color: var(--text-primary); }
.mth-bar { height: 8px; background: var(--bg-soft); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.mth-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--action-primary), #6b7280); }
.mth-weight p { font-size: 14px; margin: 10px 0 0; color: var(--text-muted); }

/* ---- Six dimensions (metric rows) ---- */
.mth-metric { display: grid; grid-template-columns: 78px 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid var(--border-light); }
.mth-metric:last-child { border-bottom: 0; }
.mth-metric-num {
    width: 64px; height: 64px; border-radius: 18px;
    background: var(--action-secondary); color: var(--text-primary);
    display: grid; place-items: center; font-weight: 900; font-size: 18px;
}
.mth-metric h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.mth-metric > div > p { margin: 0; color: var(--text-muted); }
.mth-metric ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-secondary); }
.mth-metric li { margin: 5px 0; }

/* ---- Category context box (uses the soft .ms-selection look) ---- */
.mth-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

/* ---- Editorial + example two-column grids ---- */
.mth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mth-check { list-style: none; padding: 0; margin: 18px 0 0; }
.mth-check li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--border-light); color: var(--text-secondary); }
.mth-check li:before { content: "\2713"; position: absolute; left: 0; color: var(--text-primary); font-weight: 900; }
.mth-check li:first-child { border-top: 0; }

.mth-example { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; margin-top: 8px; }
.mth-panel { border-radius: var(--radius-xl); padding: 30px; }
.mth-panel--dark { background: var(--panel); color: #fff; }
.mth-panel--light { background: #fff; border: 1px solid var(--border-light); }
.mth-panel h3 { margin: 0 0 4px; font-size: 24px; }
.mth-panel--dark h3 { color: #fff; }
.mth-panel > p { margin: 0 0 8px; color: var(--text-muted); }
.mth-panel--dark > p { color: #C6CBD1; }
.mth-mini { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border-light); }
.mth-panel--dark .mth-mini { border-bottom-color: rgba(255, 255, 255, .12); }
.mth-mini:last-of-type { border-bottom: 0; }
.mth-result { margin-top: 18px; padding: 15px; border-radius: 14px; font-weight: 800; text-align: center; }
.mth-result--strong { background: #fff; color: var(--text-primary); }
.mth-result--soft { background: var(--bg-soft); color: var(--text-secondary); }

/* ---- FAQ accordion ---- */
.mth-faq { max-width: 900px; margin: 0 auto; }
.mth-faq details { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 0 20px; margin-bottom: 12px; }
.mth-faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 800; color: var(--text-primary); }
.mth-faq summary::-webkit-details-marker { display: none; }
.mth-faq details p { margin: 0 0 20px; color: var(--text-muted); }

@media (max-width: 900px) {
    .mth-score-grid, .mth-two, .mth-example { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .mth-metric { grid-template-columns: 1fr; }
}

/* =====================================================================
   8. ABOUT PAGE (monochrome adaptation of the provided layout)
   ===================================================================== */

/* Hero paragraph emphasis */
.hero p strong { color: var(--text-primary); font-weight: 700; }

/* Network illustration (hero right, dark panel) */
.abt-network {
    position: relative;
    min-height: 440px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .06), transparent 28%),
        linear-gradient(145deg, #1A1D21, #121417);
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, .08);
}
.abt-network-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; padding: 14px 14px 40px; }
.abt-network-caption {
    position: absolute; left: 24px; right: 24px; bottom: 20px;
    text-align: center; color: #B9BEC5; font-size: 12px;
    letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
}

/* Pullquote (inside a story card) */
.abt-pullquote {
    margin-top: 22px; padding-left: 18px;
    border-left: 3px solid var(--action-primary);
    font-size: 19px; line-height: 1.55; color: var(--text-primary); font-weight: 650;
}
.mth-panel--dark .abt-pullquote { border-left-color: rgba(255, 255, 255, .5); color: #fff; }

/* Journey (on the dark .featured-wrap band) */
.abt-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.abt-journey-step {
    position: relative; padding: 28px 22px; border-radius: 20px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); min-height: 205px;
}
.abt-journey-step .abt-num {
    display: inline-flex; width: 34px; height: 34px; border-radius: 11px;
    align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .1); color: #fff; font-weight: 900; margin-bottom: 18px;
}
.abt-journey-step h3 { margin: 0 0 8px; font-size: 21px; color: #fff; }
.abt-journey-step p { margin: 0; color: #C6CBD1; font-size: 14px; }
.abt-journey-step:not(:last-child)::after {
    content: "\2192"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; color: var(--text-primary); font-weight: 900; z-index: 4;
}

/* Beyond a directory: statement + layers */
.abt-beyond-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.abt-statement {
    padding: 40px; border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #1A1D21, #121417); color: #fff; box-shadow: var(--shadow-strong);
}
.abt-statement .abt-small { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: #B9BEC5; margin-bottom: 18px; }
.abt-statement blockquote { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; color: #fff; }
.abt-statement p { margin: 24px 0 0; color: #C6CBD1; }
.abt-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.abt-layer { border-radius: 20px; background: #fff; border: 1px solid var(--border-light); padding: 26px; }
.abt-layer .abt-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--text-muted); margin-bottom: 10px; }
.abt-layer h3 { margin: 0 0 8px; font-size: 20px; color: var(--text-primary); }
.abt-layer p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Values (2-column, numbered) */
.abt-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.abt-value { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 26px; border: 1px solid var(--border-light); border-radius: 20px; background: #fff; }
.abt-value-no { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--action-secondary); color: var(--text-primary); font-weight: 900; }
.abt-value h3 { margin: 0 0 7px; color: var(--text-primary); font-size: 20px; }
.abt-value p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Future (centered closing) */
.abt-future { text-align: center; max-width: 900px; margin: 0 auto; }
.abt-future p { font-size: 20px; color: var(--text-secondary); margin: 22px auto 0; max-width: 800px; }

@media (max-width: 960px) {
    .abt-journey { grid-template-columns: 1fr 1fr; }
    .abt-journey-step:nth-child(2)::after { display: none; }
    .abt-beyond-grid { grid-template-columns: 1fr; }
    .abt-network { min-height: 400px; }
}
@media (max-width: 700px) {
    .abt-journey, .abt-layers, .abt-values { grid-template-columns: 1fr; }
    .abt-journey-step::after { display: none !important; }
    .abt-network { min-height: 320px; }
    .abt-value { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; }
}
