/* =========================================================
   Lamunidigital · Con la gente — sistema de diseño
   Colores tomados del ícono: marino (marco y texto), y las cuatro personas
   (verde, celeste, violeta, rojo) y tres aves (naranja, amarillo, verde).
   ========================================================= */
:root,
[data-bs-theme="light"] {
    --pcd-navy: #003079;
    --pcd-blue: #0072c6;      /* celeste del logo, oscurecido para texto y botones (contraste AA) */
    --pcd-sky: #019eea;
    --pcd-green: #2eaa13;
    --pcd-violet: #713093;
    --pcd-red: #fe1d1c;
    --pcd-orange: #fd580e;
    --pcd-yellow: #ffc004;
    --pcd-grad: linear-gradient(135deg, #003079 0%, #0072c6 58%, #019eea 100%);
    --pcd-grad-soft: linear-gradient(135deg, rgba(1, 158, 234, .09), rgba(113, 48, 147, .07));
    /* "Arco": las cuatro personas del ícono, en orden */
    --pcd-arco: linear-gradient(90deg, #2eaa13 0%, #2eaa13 22%, #019eea 30%, #019eea 47%, #713093 55%, #713093 72%, #fe1d1c 80%, #fe1d1c 100%);
    --pcd-arco-suave: linear-gradient(90deg, #2eaa13, #019eea 35%, #713093 68%, #fe1d1c);

    --bs-primary: #0072c6;
    --bs-primary-rgb: 0, 114, 198;
    --bs-success: #22820e;
    --bs-success-rgb: 34, 130, 14;
    --bs-info: #019eea;
    --bs-info-rgb: 1, 158, 234;
    --bs-warning: #fd580e;
    --bs-warning-rgb: 253, 88, 14;
    --bs-danger: #d1161a;
    --bs-danger-rgb: 209, 22, 26;
    --bs-link-color: #0072c6;
    --bs-link-color-rgb: 0, 114, 198;
    --bs-link-hover-color: #003079;
    --bs-link-hover-color-rgb: 0, 48, 121;
    --bs-body-bg: #f4f7fb;
    --bs-body-color: #13233d;
    --bs-secondary-color: #56657a;
    --bs-border-color: #dfe6f0;
    --bs-focus-ring-color: rgba(1, 158, 234, .35);

    --pcd-surface: #ffffff;
    --pcd-surface-2: #f7f9fc;
    --pcd-shadow: 0 1px 2px rgba(0, 48, 121, .06), 0 4px 16px rgba(0, 48, 121, .06);
    --pcd-shadow-lg: 0 10px 30px rgba(0, 48, 121, .14);
    --pcd-nav-bg: rgba(255, 255, 255, .9);
    --pcd-heading: #003079;
}

[data-bs-theme="dark"] {
    --bs-primary: #3fb4f2;
    --bs-primary-rgb: 63, 180, 242;
    --bs-link-color: #6cc6f5;
    --bs-link-color-rgb: 108, 198, 245;
    --bs-link-hover-color: #a5dcfa;
    --bs-link-hover-color-rgb: 165, 220, 250;
    --bs-success: #52c93a;
    --bs-success-rgb: 82, 201, 58;
    --bs-warning: #ff8a4c;
    --bs-warning-rgb: 255, 138, 76;
    --bs-danger: #ff5a59;
    --bs-danger-rgb: 255, 90, 89;
    --bs-body-bg: #0a1626;
    --bs-body-color: #dce6f2;
    --bs-secondary-color: #93a3b8;
    --bs-border-color: #22344d;
    --pcd-surface: #10203a;
    --pcd-surface-2: #0d1b31;
    --pcd-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --pcd-shadow-lg: 0 10px 30px rgba(0, 0, 0, .45);
    --pcd-nav-bg: rgba(10, 22, 38, .88);
    --pcd-heading: #e8f0fb;
    --pcd-grad: linear-gradient(135deg, #062a5e 0%, #0062ab 60%, #0187c9 100%);
    --pcd-grad-soft: linear-gradient(135deg, rgba(63, 180, 242, .12), rgba(160, 100, 200, .1));
}

/* =========================================================
   Alternativas de diseño (html[data-diseno]): tipografías, formas y superficies.
   Se eligen desde Panel municipal → Diseño. Son independientes del modo claro/oscuro.
   ========================================================= */
[data-diseno] {
    --pcd-sistema: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --pcd-fs-base: 1rem;
    --pcd-lh: 1.6;
    --pcd-lh-head: 1.2;
    --pcd-head-weight: 700;
    --pcd-head-tracking: -.02em;
    --pcd-btn-radius: .65rem;
    --pcd-radius-xl: 1.5rem;
    --pcd-link-decoration: none;
}
[data-diseno="institucional"] {
    --pcd-font-head: "Poppins", var(--pcd-sistema);
    --pcd-font-body: "Inter", var(--pcd-sistema);
    --bs-border-radius: .75rem; --bs-border-radius-sm: .5rem; --bs-border-radius-lg: 1rem;
}
[data-diseno="cercano"] {
    --pcd-font-head: "Nunito", var(--pcd-sistema);
    --pcd-font-body: "Nunito Sans", var(--pcd-sistema);
    --pcd-head-weight: 800;
    --pcd-head-tracking: -.01em;
    --pcd-lh: 1.65;
    --pcd-btn-radius: 999px;
    --pcd-radius-xl: 2rem;
    --bs-border-radius: 1rem; --bs-border-radius-sm: .75rem; --bs-border-radius-lg: 1.4rem;
    --pcd-grad: linear-gradient(135deg, #003079 0%, #0072c6 45%, #2eaa13 125%);
}
[data-diseno="accesible"] {
    --pcd-font-head: "Atkinson Hyperlegible", var(--pcd-sistema);
    --pcd-font-body: "Atkinson Hyperlegible", var(--pcd-sistema);
    --pcd-fs-base: 1.0625rem;                 /* 17px: más grande para leer sin esfuerzo */
    --pcd-lh: 1.7;
    --pcd-head-tracking: 0;
    --pcd-btn-radius: .5rem;
    --pcd-radius-xl: .75rem;
    --pcd-link-decoration: underline;
    --bs-border-radius: .5rem; --bs-border-radius-sm: .375rem; --bs-border-radius-lg: .625rem;
    --pcd-grad: linear-gradient(135deg, #003079, #0057a3);
    --pcd-grad-soft: none;
    --pcd-shadow: 0 0 0 1px var(--bs-border-color);
    --pcd-shadow-lg: 0 0 0 1px var(--bs-border-color), 0 6px 18px rgba(0, 0, 0, .12);
}
[data-diseno="accesible"][data-bs-theme="light"] { --bs-body-color: #0b1a2e; --bs-secondary-color: #3d4b5c; --bs-border-color: #c3ccd8; }
[data-diseno="editorial"] {
    --pcd-font-head: "Sora", var(--pcd-sistema);
    --pcd-font-body: "DM Sans", var(--pcd-sistema);
    --pcd-head-weight: 700;
    --pcd-head-tracking: -.035em;
    --pcd-btn-radius: .5rem;
    --pcd-radius-xl: 1.25rem;
    --bs-border-radius: .625rem; --bs-border-radius-sm: .4rem; --bs-border-radius-lg: .875rem;
    --pcd-shadow: 0 0 0 1px var(--bs-border-color);
    --pcd-shadow-lg: 0 0 0 1px var(--bs-border-color), 0 12px 32px rgba(0, 48, 121, .08);
}
[data-diseno="editorial"][data-bs-theme="light"] { --bs-body-bg: #fafbfc; }
[data-diseno] {
    --bs-body-font-family: var(--pcd-font-body);
    --bs-body-font-size: var(--pcd-fs-base);
    --bs-body-line-height: var(--pcd-lh);
    font-family: var(--pcd-font-body);
}

/* ---------- Tipografía ---------- */
html { scroll-behavior: smooth; }
body {
    min-height: 100vh; display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; font-optical-sizing: auto;
    font-feature-settings: "kern", "liga", "calt";
}
main { flex: 1; }

/* Escala fluida: crece suavemente del celular a la computadora */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .font-display, .display-5, .display-6 {
    font-family: var(--pcd-font-head);
    font-weight: var(--pcd-head-weight);
    line-height: var(--pcd-lh-head);
    letter-spacing: var(--pcd-head-tracking);
    color: var(--pcd-heading);
    text-wrap: balance;
}
.display-5 { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.5rem); line-height: 1.05; }
.display-6 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); line-height: 1.1; }
h1, .h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
h2, .h2 { font-size: clamp(1.45rem, 1.25rem + .9vw, 2rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); }
h4, .h4 { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.45rem); }
h5, .h5 { font-size: 1.125rem; line-height: 1.3; }
h6, .h6 { font-size: 1rem; line-height: 1.35; letter-spacing: 0; }
p, li, .card-body { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; max-width: 62ch; }
.small, small { font-size: .875em; }
.text-uppercase { letter-spacing: .07em; }
.texto-largo { max-width: 68ch; line-height: 1.7; }  /* descripciones y propuestas */
a { text-decoration: var(--pcd-link-decoration); text-underline-offset: .18em; }
main p a, main li a, .form-text a { text-decoration: underline; text-decoration-thickness: from-font; }

/* Números alineados en indicadores, tablas y contadores */
.kpi-num, .num-total, .apoyos-pill, .badge, .table, .contador, time, .tabular { font-variant-numeric: tabular-nums; }

.text-muted { color: var(--bs-secondary-color) !important; }
::selection { background: rgba(1, 158, 234, .25); }

/* Transiciones de página nativas (Chrome/Edge/Safari recientes) */
@view-transition { navigation: auto; }

.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 2000;
    background: var(--pcd-navy); color: #fff; padding: .5rem 1rem; border-radius: .5rem;
}
.skip-link:focus { top: 1rem; color: #fff; }
:focus-visible { outline: 3px solid var(--pcd-sky); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Superficies ---------- */
.card { --bs-card-bg: var(--pcd-surface); --bs-card-border-color: var(--bs-border-color); border-radius: var(--bs-border-radius-lg); }
.card.border-0, .shadow-sm { box-shadow: var(--pcd-shadow) !important; }
.card-header:first-child { border-radius: calc(var(--bs-border-radius-lg) - 1px) calc(var(--bs-border-radius-lg) - 1px) 0 0; }
.list-group { --bs-list-group-bg: var(--pcd-surface); --bs-list-group-border-color: var(--bs-border-color); border-radius: var(--bs-border-radius-lg); }
.table { --bs-table-bg: var(--pcd-surface); }
.table-light { --bs-table-bg: var(--pcd-surface-2); --bs-table-color: var(--bs-body-color); --bs-table-border-color: var(--bs-border-color); }
.dropdown-menu { --bs-dropdown-bg: var(--pcd-surface); border-radius: var(--bs-border-radius); box-shadow: var(--pcd-shadow-lg); border-color: var(--bs-border-color); }
.surface-soft { background: var(--pcd-grad-soft); }

/* ---------- Botones ---------- */
.btn { --bs-btn-font-weight: 600; border-radius: var(--pcd-btn-radius); letter-spacing: .005em; transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: 1.0625rem; }
.btn-primary {
    --bs-btn-bg: #0072c6; --bs-btn-border-color: #0072c6;
    --bs-btn-hover-bg: #005ea6; --bs-btn-hover-border-color: #005ea6;
    --bs-btn-active-bg: #003079; --bs-btn-active-border-color: #003079;
    --bs-btn-disabled-bg: #0072c6; --bs-btn-disabled-border-color: #0072c6;
    box-shadow: 0 4px 14px rgba(0, 114, 198, .25);
}
.btn-success {
    --bs-btn-bg: #22820e; --bs-btn-border-color: #22820e;
    --bs-btn-hover-bg: #1c6e0b; --bs-btn-hover-border-color: #1c6e0b;
    --bs-btn-active-bg: #165a09; --bs-btn-active-border-color: #165a09;
    box-shadow: 0 4px 14px rgba(34, 130, 14, .25);
}
.btn-outline-primary {
    --bs-btn-color: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary); --bs-btn-active-border-color: var(--bs-primary);
}
.btn-grad { background: var(--pcd-grad); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(0, 114, 198, .3); }
.btn-grad:hover { color: #fff; filter: brightness(1.06); }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }

.form-control, .form-select { border-radius: var(--bs-border-radius); border-color: var(--bs-border-color); background-color: var(--pcd-surface); }
.form-control:focus, .form-select:focus { border-color: var(--pcd-sky); box-shadow: 0 0 0 .25rem rgba(1, 158, 234, .2); }
.form-control-lg, .form-select-lg { border-radius: .8rem; }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.form-label { font-weight: 500; }

.nav-pills { --bs-nav-pills-link-active-bg: var(--bs-primary); --bs-nav-pills-border-radius: var(--pcd-btn-radius); }
.pagination { --bs-pagination-active-bg: var(--bs-primary); --bs-pagination-active-border-color: var(--bs-primary); --bs-pagination-bg: var(--pcd-surface); }

/* Badges de estado: fondo suave + punto de color */
.badge-estado {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; font-size: .75rem; padding: .35rem .65rem; border-radius: 999px;
    background: rgba(var(--c), .12); color: rgb(var(--c)); white-space: nowrap;
}
.badge-estado::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: rgb(var(--c)); }
[data-bs-theme="dark"] .badge-estado { background: rgba(var(--c), .2); color: rgb(var(--c-dark, var(--c))); }
.e-secondary { --c: 93, 107, 129; --c-dark: 160, 174, 192; }
.e-info { --c: 0, 107, 186; --c-dark: 63, 180, 242; }
.e-warning { --c: 186, 61, 0; --c-dark: 255, 138, 76; }
.e-success { --c: 31, 122, 13; --c-dark: 82, 201, 58; }
.e-danger { --c: 204, 21, 25; --c-dark: 255, 90, 89; }
.e-violet { --c: 113, 48, 147; --c-dark: 196, 150, 230; }
.e-primary { --c: 0, 114, 198; --c-dark: 108, 198, 245; }

/* ---------- Navegación ---------- */
.navbar-pcd {
    background: var(--pcd-nav-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--bs-border-color);
}
.navbar-pcd .nav-link { font-weight: 500; color: var(--bs-body-color); border-radius: .6rem; padding: .5rem .8rem !important; }
.navbar-pcd .nav-link:hover { background: rgba(var(--bs-primary-rgb), .07); color: var(--bs-primary); }
.navbar-pcd .nav-link.active { color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .1); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-lema { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }

/* Logotipo "Lamunidigital": La (marino) muni (celeste) digital (violeta) */
.marca { font-family: var(--pcd-font-head); font-weight: 800; letter-spacing: -.02em; color: var(--pcd-navy); white-space: nowrap; }
.marca .m-muni { color: var(--pcd-blue); }
.marca .m-digital { color: var(--pcd-violet); }
.brand .marca { font-size: 1.3rem; }
@media (max-width: 575.98px) {
    .brand img { height: 28px; }
    .brand .marca { font-size: 1.1rem; }
    .navbar-pcd .container { flex-wrap: nowrap; gap: .25rem; }
    .navbar-pcd .btn-sm { --bs-btn-padding-x: .6rem; }
}
[data-bs-theme="dark"] .marca { color: #fff; }
[data-bs-theme="dark"] .marca .m-muni { color: #5ec3f5; }
[data-bs-theme="dark"] .marca .m-digital { color: #c79be3; }
/* Sobre fondos oscuros (portada, ingreso): blanco + celeste claro + amarillo de las aves */
.marca.marca-clara { color: #fff; }
.marca.marca-clara .m-muni { color: #a9e2fd; }
.marca.marca-clara .m-digital { color: var(--pcd-yellow); }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--pcd-grad); color: #fff; font-weight: 600; font-size: .85rem; flex-shrink: 0;
}

/* Barra inferior (celular) */
.barra-movil {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
    display: flex; justify-content: space-around; align-items: flex-end;
    background: var(--pcd-nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--bs-border-color);
    padding: .4rem 0 calc(.45rem + env(safe-area-inset-bottom));
}
.barra-movil a { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .68rem; font-weight: 500; color: var(--bs-secondary-color); text-decoration: none; min-width: 60px; }
.barra-movil a i { font-size: 1.3rem; }
.barra-movil a[aria-current="page"] { color: var(--bs-primary); }
.barra-movil a.principal i {
    background: var(--pcd-grad); color: #fff; width: 54px; height: 54px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; margin-top: -26px; font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 114, 198, .4);
}
.barra-movil a.principal span { color: var(--bs-primary); font-weight: 600; }
@media (max-width: 991.98px) { body { padding-bottom: 76px; } }

/* ---------- Pie ---------- */
.footer-pcd { background: var(--pcd-surface); border-top: 1px solid var(--bs-border-color); }
.footer-pcd img { height: 48px; }

/* ---------- Toasts ---------- */
.toast-container { z-index: 1090; }
.toast { border: 0; border-radius: .9rem; box-shadow: var(--pcd-shadow-lg); background: var(--pcd-surface); overflow: hidden; }
.toast .toast-body { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; }
.toast .toast-icon { font-size: 1.25rem; line-height: 1; }
.toast { border-left: 4px solid rgb(var(--c, 0, 114, 198)); }

/* ---------- Hero / inicio ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff; border-radius: var(--pcd-radius-xl);
    background: var(--pcd-grad);
    box-shadow: var(--pcd-shadow-lg);
}
.hero::after {
    content: ""; position: absolute; right: -60px; bottom: -80px; width: 360px; height: 360px;
    background: url("../img/glifo.png?v=20261014") no-repeat center / contain; opacity: .14; pointer-events: none;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .lema { font-family: var(--pcd-font-head); font-weight: 500; letter-spacing: .02em; opacity: .9; }
.hero .btn-light { color: var(--pcd-navy); }
/* Empezar el reclamo con una foto: solo en pantallas táctiles, donde abre la cámara */
.foto-rapida { display: none; }
@media (pointer: coarse) {
    .foto-rapida { display: inline-flex; flex: none; align-items: center; justify-content: center; font-size: 1.35rem; padding-inline: .85rem; }
    .hero-reportar { padding-inline: .85rem; min-width: 0; }
}
.chip-cat {
    display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px;
    background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; font-size: .875rem; font-weight: 500;
    border: 1px solid rgba(255, 255, 255, .25); transition: background .15s;
}
.chip-cat:hover { background: rgba(255, 255, 255, .28); color: #fff; }

.kpi { display: flex; flex-direction: row; align-items: center; gap: .9rem; padding: 1rem 1.1rem; }
.kpi .kpi-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: rgba(var(--c), .12); color: rgb(var(--c)); flex-shrink: 0; }
.kpi .kpi-num { font-family: var(--pcd-font-head); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--pcd-heading); }
.kpi .kpi-label { font-size: .8rem; color: var(--bs-secondary-color); }

.paso-card { border: 0; border-radius: var(--bs-border-radius-lg); padding: 1.5rem; height: 100%; }
.paso-num {
    width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--pcd-grad); color: #fff; font-family: var(--pcd-font-head); font-weight: 700; font-size: 1.1rem;
}
.hover-lift { transition: transform .18s ease, box-shadow .18s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--pcd-shadow-lg) !important; }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-title h2 { margin: 0; font-size: 1.15rem; font-weight: 600; }

/* ---------- Autenticación ---------- */
.auth-wrap { max-width: 980px; margin: 0 auto; }
.auth-card { overflow: hidden; border: 0; border-radius: var(--pcd-radius-xl); box-shadow: var(--pcd-shadow-lg); }
.auth-side {
    background: var(--pcd-grad); color: #fff; padding: 2.5rem; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 280px; height: 280px; background: url("../img/glifo.png?v=20261014") no-repeat center / contain; opacity: .18; }
.auth-side h2 { color: #fff; }
.auth-side ul { list-style: none; padding: 0; margin: 0; }
.auth-side li { display: flex; gap: .6rem; margin-bottom: .7rem; opacity: .95; }
.auth-form { padding: 2.5rem; background: var(--pcd-surface); }
@media (max-width: 575.98px) { .auth-form { padding: 1.5rem; } }
.input-pass { position: relative; }
.input-pass .btn-ver { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--bs-secondary-color); padding: .4rem; }
.fuerza { height: 5px; border-radius: 3px; background: var(--bs-border-color); overflow: hidden; margin-top: .4rem; }
.fuerza span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* ---------- Asistente de reclamo ---------- */
.stepper { display: flex; gap: .5rem; margin-bottom: 1.75rem; counter-reset: paso; }
.stepper .st { flex: 1; display: flex; flex-direction: column; gap: .45rem; font-size: .8rem; font-weight: 500; color: var(--bs-secondary-color); }
.stepper .st::before { content: ""; height: 6px; border-radius: 3px; background: var(--bs-border-color); transition: background .3s; }
.stepper .st.hecho { color: var(--bs-primary); }
.stepper .st.hecho::before { background: var(--pcd-grad); }
.paso-anim { animation: entrar .28s ease; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.categoria-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.categoria-opcion label {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
    min-height: 118px; padding: .9rem .6rem; text-align: center; cursor: pointer; height: 100%;
    background: var(--pcd-surface); border: 2px solid var(--bs-border-color); border-radius: 1.1rem;
    font-weight: 500; font-size: .9rem; line-height: 1.2;
    transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.categoria-opcion label .emoji { font-size: 2.3rem; line-height: 1; transition: transform .2s; }
.categoria-opcion label:hover { border-color: var(--pcd-sky); transform: translateY(-2px); box-shadow: var(--pcd-shadow); }
.categoria-opcion label:hover .emoji { transform: scale(1.12); }
.categoria-opcion input:checked + label { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .08); box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .12); }
.categoria-opcion input:focus-visible + label { outline: 3px solid var(--pcd-sky); outline-offset: 2px; }

.acciones-paso { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 575.98px) {
    .acciones-paso {
        position: sticky; bottom: 76px; z-index: 5; margin: 1.5rem -12px 0; padding: .75rem 12px;
        background: var(--pcd-nav-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--bs-border-color);
    }
    .acciones-paso .btn { --bs-btn-padding-y: .7rem; --bs-btn-padding-x: 1rem; --bs-btn-font-size: 1rem; white-space: nowrap; }
    .acciones-paso [data-anterior] { flex: 0 0 auto; }
    .acciones-paso [data-siguiente], .acciones-paso [type="submit"] { flex: 1; }
}

.dropzone {
    border: 2px dashed var(--bs-border-color); border-radius: 1rem; padding: 1.5rem; text-align: center; cursor: pointer;
    background: var(--pcd-surface-2); transition: border-color .15s, background .15s; display: block;
}
.dropzone:hover, .dropzone.over { border-color: var(--pcd-sky); background: rgba(1, 158, 234, .06); }
.dropzone i { font-size: 2rem; color: var(--pcd-sky); }
.dropzone-sm { padding: .75rem 1rem; border-radius: .8rem; }
/* "Sacar foto" / "Elegir de la galería": solo en pantallas táctiles (en la compu no hay cámara que elegir) */
.solo-tactil { display: none; }
/* Recorrido "Cómo llegar" (panel → reclamo) */
.ruta-pasos { max-height: 220px; overflow-y: auto; padding-left: 1.2rem; }
.ruta-pasos li { margin-bottom: .25rem; }
/* Plazo de resolución de un reclamo (bandeja y resumen) */
.badge-plazo { display: inline-block; margin-top: .2rem; padding: .1rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.plazo-vencido { background: rgba(254, 29, 28, .12); color: #c41412; }
.plazo-pronto { background: rgba(253, 88, 14, .14); color: #b54100; }
/* Registros (Panel → Estado del sistema) */
.registro { max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--pcd-surface-2, rgba(0,0,0,.04)); padding: .75rem; border-radius: .6rem; font-size: .75rem; }
/* Calificación del vecino (1 a 5 estrellas): los radios van de 5 a 1 y se pintan hacia la izquierda */
.estrellas { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.estrellas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.estrellas label { font-size: 2.2rem; line-height: 1; color: var(--bs-border-color); cursor: pointer; transition: color .1s, transform .1s; }
.estrellas label:hover, .estrellas label:hover ~ label, .estrellas input:checked ~ label { color: #f5b301; }
.estrellas input:focus-visible + label { outline: 2px solid var(--bs-primary); border-radius: 4px; }
.estrellas label:active { transform: scale(.9); }
.calificacion-estrellas { color: #f5b301; letter-spacing: .05em; }
/* Hoja de ruta para cuadrillas (panel → bandeja → Hoja de ruta) */
.col-check { width: 2.2rem; }
.ruta-num, .ruta-pin { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
    background: #0072c6; color: #fff; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.ruta-pin { border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ruta-pin.alta { background: #c41412; }
.ruta-pin.hecha { background: #2eaa13; }
/* Recorrido dentro del sistema */
.ruta-nav { border-left: 5px solid #2eaa13 !important; }
.ruta-nav-indicacion { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.ruta-paradas .ruta-actual { outline: 2px solid #2eaa13; }
.ruta-paradas .ruta-hecha { opacity: .55; }
.ruta-paradas .ruta-hecha .ruta-num { background: #2eaa13; font-size: 0; }
.ruta-paradas .ruta-hecha .ruta-num::after { content: '✓'; font-size: .9rem; }
.ruta-check { font-size: 1.4rem; line-height: 1; }
/* Mapa a pantalla completa, por encima del menú y de la barra inferior */
body.ruta-completa { overflow: hidden; }
body.ruta-completa #ruta-mapa { position: fixed !important; inset: 0; height: auto !important; z-index: 1040; border-radius: 0; }
body.ruta-completa #ruta-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1041; margin: 0 !important; border-radius: 0 0 1rem 1rem; }
body.ruta-completa #ruta-completa-salir,
body.ruta-completa #ruta-iniciar { position: fixed; left: 12px; z-index: 1041; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
body.ruta-completa #ruta-completa-salir { bottom: calc(24px + env(safe-area-inset-bottom)); }
body.ruta-completa #ruta-iniciar { bottom: calc(76px + env(safe-area-inset-bottom)); }
.solo-imprimir { display: none; }
@media print {
    .no-imprimir, .admin-side, header, footer, nav, .navbar, #ruta-mapa, .flash-toast { display: none !important; }
    .solo-imprimir { display: block; }
    .ruta-check.solo-imprimir { display: inline; }
    .admin-layout, .admin-content { display: block !important; margin: 0 !important; padding: 0 !important; }
    .col-lg-5 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
    .ruta-paradas .card { border: 1px solid #ccc !important; break-inside: avoid; box-shadow: none !important; }
    body, .card, .card-body, .admin-content { background: #fff !important; color: #000 !important; }
    h1, h2, .fw-semibold, .fw-bold { color: #000 !important; }
    .text-muted, .ruta-tramo, #ruta-resumen { color: #333 !important; }
    a { color: #000 !important; text-decoration: none !important; }
    .ruta-num { background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Duplicados (panel → reclamo) */
.aviso-duplicado { border-left: 4px solid var(--bs-info) !important; }
.unir-duplicado summary { cursor: pointer; list-style: none; }
.unir-duplicado summary::-webkit-details-marker { display: none; }
.plazo-ok { background: transparent; color: var(--bs-secondary-color); padding-left: 0; font-weight: 500; }
[data-bs-theme="dark"] .plazo-vencido { color: #ff7b7a; }
[data-bs-theme="dark"] .plazo-pronto { color: #ffa36b; }
@media (pointer: coarse) { .botones-foto.solo-tactil { display: flex; } }
.dropzone-sm i { font-size: 1.4rem; margin-right: .35rem; vertical-align: middle; }
.previews { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.previews .pv { position: relative; }
.previews .pv button {
    position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--pcd-surface);
    background: #d1161a; color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; padding: 0;
}
.contador { font-size: .75rem; color: var(--bs-secondary-color); text-align: right; }

/* ---------- Mapas ---------- */
.mapa { height: 380px; border-radius: 1rem; z-index: 0; }
.mapa-grande { height: calc(100vh - 250px); min-height: 440px; border-radius: 1.25rem; z-index: 0; }
@media (max-width: 991.98px) { .mapa-grande { height: calc(100vh - 290px); } }
.leaflet-container { font-family: var(--bs-body-font-family); background: var(--pcd-surface-2); }
.leaflet-popup-content-wrapper { border-radius: .9rem; box-shadow: var(--pcd-shadow-lg); }
[data-bs-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.6); }
[data-bs-theme="dark"] .leaflet-popup-content-wrapper, [data-bs-theme="dark"] .leaflet-popup-tip { background: var(--pcd-surface); color: var(--bs-body-color); }
.pin {
    width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
    display: flex; align-items: center; justify-content: center; background: #fff;
    border: 3px solid rgb(var(--c, 0, 114, 198)); box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.pin span { transform: rotate(45deg); font-size: 1.05rem; line-height: 1; }
.marker-cluster-pcd {
    background: rgba(0, 114, 198, .25); border-radius: 50%;
    display: flex !important; align-items: center; justify-content: center;
}
.marker-cluster-pcd div {
    width: 34px; height: 34px; border-radius: 50%; background: var(--pcd-grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}
.mapa-leyenda { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8rem; }
.mapa-leyenda span { display: inline-flex; align-items: center; gap: .35rem; }
.mapa-leyenda i { width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--c)); display: inline-block; }
/* Mapa de calor (reclamos/mapa.php): su escala reemplaza a la leyenda de estados */
.mapa-calor-leyenda { display: none; align-items: center; gap: .5rem; color: var(--bs-secondary-color); }
.mapa-calor-leyenda i { width: 110px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #2b83ba, #abdda4, #ffffbf, #fdae61, #d7191c); }
.vista-calor .mapa-calor-leyenda { display: inline-flex; }
.vista-calor .leyenda-estados { display: none !important; }
.mapa-wrap { position: relative; }
.mapa-cargando { position: absolute; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; background: rgba(var(--bs-body-bg), .4); pointer-events: none; }

/* ---------- Progreso del reclamo ---------- */
.progreso { display: flex; justify-content: space-between; position: relative; margin: .5rem 0 1.5rem; }
.progreso::before { content: ""; position: absolute; top: 17px; left: var(--ini); right: var(--ini); height: 4px; background: var(--bs-border-color); border-radius: 2px; }
.progreso .barra { position: absolute; top: 17px; left: var(--ini); height: 4px; background: var(--pcd-grad); border-radius: 2px; transition: width .6s ease; }
.progreso .pp { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 500; color: var(--bs-secondary-color); text-align: center; }
.progreso .pp .dot {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--pcd-surface); border: 3px solid var(--bs-border-color); font-size: 1rem;
}
.progreso .pp.hecho .dot { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.progreso .pp.actual .dot { box-shadow: 0 0 0 6px rgba(var(--bs-primary-rgb), .18); }
.progreso .pp.hecho { color: var(--bs-body-color); }
.progreso.rechazado .pp.actual .dot { background: #d1161a; border-color: #d1161a; }

/* ---------- Conversación (chat) ---------- */
.chat { display: flex; flex-direction: column; gap: .75rem; }
.burbuja { max-width: 86%; padding: .7rem .95rem; border-radius: 1.1rem; box-shadow: var(--pcd-shadow); background: var(--pcd-surface); }
.burbuja .meta { font-size: .75rem; color: var(--bs-secondary-color); margin-bottom: .2rem; display: flex; gap: .5rem; justify-content: space-between; }
.burbuja.vecino { align-self: flex-end; background: rgba(var(--bs-primary-rgb), .1); border-bottom-right-radius: .3rem; }
.burbuja.municipio { align-self: flex-start; border-bottom-left-radius: .3rem; border-left: 3px solid var(--pcd-green); }
.burbuja.interno { align-self: stretch; max-width: 100%; background: rgba(255, 193, 7, .12); border: 1px dashed rgba(196, 65, 0, .45); box-shadow: none; }
.evento { align-self: center; font-size: .78rem; color: var(--bs-secondary-color); background: var(--pcd-surface-2); border: 1px solid var(--bs-border-color); padding: .35rem .8rem; border-radius: 999px; text-align: center; max-width: 95%; }
.evento .msg { display: block; color: var(--bs-body-color); font-size: .85rem; margin-top: .25rem; }
.evento:has(.fotos-mov) { border-radius: 1.1rem; }
.fotos-mov { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.evento .fotos-mov { justify-content: center; }
.fotos-mov .foto-miniatura { width: 76px; height: 76px; }

/* Vista previa del QR (panel → Código QR): fondo blanco también en modo oscuro */
.qr-vista { width: 100%; max-width: 380px; height: auto; border-radius: 1rem; box-shadow: var(--pcd-shadow); background: #fff; }
.chat-input { position: relative; }
.chat-input textarea { padding-right: 3.5rem; resize: none; border-radius: 1rem; }
.chat-input .btn { position: absolute; right: .45rem; bottom: .45rem; }

/* ---------- Tarjetas ---------- */
.foto-miniatura { width: 96px; height: 96px; object-fit: cover; border-radius: .8rem; cursor: zoom-in; transition: transform .15s; }
.foto-miniatura:hover { transform: scale(1.04); }
.tarjeta-reclamo { border: 0; border-left: 5px solid rgb(var(--c, 100, 116, 139)) !important; }
.tarjeta-reclamo.estado-nuevo { --c: 100, 116, 139; }
.tarjeta-reclamo.estado-recibido { --c: 0, 114, 198; }
.tarjeta-reclamo.estado-en_proceso { --c: 253, 88, 14; }
.tarjeta-reclamo.estado-resuelto { --c: 34, 130, 14; }
.tarjeta-reclamo.estado-rechazado { --c: 209, 22, 26; }
.icono-cat { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--pcd-grad-soft); flex-shrink: 0; }

.propuesta-card { border: 0; overflow: hidden; }
.propuesta-card .cover { height: 150px; object-fit: cover; width: 100%; }
.propuesta-card .cover-vacio { height: 90px; background: var(--pcd-grad-soft); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.apoyos-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(var(--bs-success-rgb), .12); color: rgb(var(--bs-success-rgb)); font-weight: 600; font-size: .85rem; }
.meta-progreso { height: 8px; border-radius: 4px; background: var(--bs-border-color); overflow: hidden; }
.meta-progreso span { display: block; height: 100%; background: var(--pcd-arco-suave); background-size: 100vw 100%; border-radius: 4px; }

.btn-apoyo { border-width: 2px; }
.btn-apoyo.apoyado { background: var(--bs-success); color: #fff; border-color: var(--bs-success); }
.btn-apoyo.pulso { animation: pulso .45s ease; }
@keyframes pulso { 50% { transform: scale(1.06); } }

.filtros-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.filtros-chips::-webkit-scrollbar { display: none; }
.filtros-chips a {
    flex-shrink: 0; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--bs-border-color);
    background: var(--pcd-surface); color: var(--bs-body-color); text-decoration: none; font-size: .85rem; font-weight: 500;
}
.filtros-chips a.activo { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }

.estado-vacio { text-align: center; padding: 3.5rem 1rem; }
.estado-vacio .ilus { width: 88px; height: 88px; border-radius: 28px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; background: var(--pcd-grad-soft); color: var(--bs-primary); }

/* Visor de fotos */
.visor .modal-content { background: transparent; border: 0; }
.visor img { max-height: 85vh; border-radius: 1rem; }

/* ---------- Panel municipal ---------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
.admin-side { position: sticky; top: 88px; background: var(--pcd-surface); border-radius: 1.25rem; padding: 1rem; box-shadow: var(--pcd-shadow); }
.admin-side .titulo { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-secondary-color); font-weight: 600; padding: .25rem .75rem .5rem; }
.admin-side a { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: var(--bs-border-radius); color: var(--bs-body-color); text-decoration: none; font-weight: 500; font-size: .92rem; }
.admin-side a:hover { background: rgba(var(--bs-primary-rgb), .07); color: var(--bs-primary); }
.admin-side a.active { background: var(--pcd-grad); color: #fff; box-shadow: 0 4px 14px rgba(0, 114, 198, .25); }
.admin-side a .badge { margin-left: auto; }
.admin-content { min-width: 0; }
@media (max-width: 991.98px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-side { position: static; display: flex; gap: .35rem; overflow-x: auto; padding: .5rem; border-radius: 1rem; scrollbar-width: none; }
    .admin-side .titulo { display: none; }
    .admin-side a { flex-shrink: 0; white-space: nowrap; }
}
.fila-click { cursor: pointer; }
.fila-click:hover td { background: rgba(var(--bs-primary-rgb), .04); }
.prioridad-alta { color: #d1161a; font-weight: 600; }

/* =========================================================
   Detalles propios de cada alternativa de diseño
   ========================================================= */

/* --- Cercano y amigable: formas redondas, acentos verdes --- */
[data-diseno="cercano"] .icono-cat, [data-diseno="cercano"] .kpi .kpi-icon, [data-diseno="cercano"] .paso-num { border-radius: 50%; }
[data-diseno="cercano"] .burbuja { border-radius: 1.4rem; }
[data-diseno="cercano"] .categoria-opcion label { border-radius: 1.5rem; }
[data-diseno="cercano"] .hero h1 { letter-spacing: -.005em; }

/* --- Máxima legibilidad: plano, alto contraste, objetivos táctiles grandes --- */
[data-diseno="accesible"] .btn { box-shadow: none !important; --bs-btn-padding-y: .55rem; min-height: 44px; }
[data-diseno="accesible"] .btn-lg { min-height: 52px; }
[data-diseno="accesible"] .btn:active { transform: none; }
[data-diseno="accesible"] :focus-visible { outline: 4px solid #ffbf47; outline-offset: 2px; box-shadow: 0 0 0 7px #0b1a2e; }
[data-diseno="accesible"] .card, [data-diseno="accesible"] .list-group { border: 1px solid var(--bs-border-color) !important; box-shadow: none !important; }
[data-diseno="accesible"] .hover-lift:hover { transform: none; }
[data-diseno="accesible"] .hero::after, [data-diseno="accesible"] .auth-side::after { opacity: .08; }
[data-diseno="accesible"] .badge-estado { font-size: .8rem; border: 1px solid rgba(var(--c), .45); }
[data-diseno="accesible"] .form-control, [data-diseno="accesible"] .form-select { border-width: 2px; min-height: 46px; }
[data-diseno="accesible"] .form-label { font-weight: 700; }
[data-diseno="accesible"] .text-muted { opacity: 1; }
[data-diseno="accesible"] .chip-cat, [data-diseno="accesible"] .filtros-chips a { font-size: .95rem; padding: .55rem 1rem; }
[data-diseno="accesible"] .barra-movil a { font-size: .75rem; }
[data-diseno="accesible"] .navbar-pcd .nav-link.active { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 3px; }

/* --- Editorial minimalista: claro, bordes finos, color solo en lo importante --- */
[data-diseno="editorial"] .hero {
    background: var(--pcd-surface); color: var(--bs-body-color);
    box-shadow: 0 0 0 1px var(--bs-border-color);
    background-image: radial-gradient(circle at 100% 0%, rgba(1, 158, 234, .14), transparent 45%), radial-gradient(circle at 0% 100%, rgba(46, 170, 19, .1), transparent 40%);
}
[data-diseno="editorial"] .hero h1, [data-diseno="editorial"] .hero h2, [data-diseno="editorial"] .hero h3 { color: var(--pcd-heading); }
[data-diseno="editorial"] .hero .lema { color: var(--bs-primary); opacity: 1; text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; font-weight: 600; }
[data-diseno="editorial"] .hero .btn-light { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
[data-diseno="editorial"] .hero .btn-outline-light { color: var(--bs-primary); border-color: var(--bs-border-color); }
[data-diseno="editorial"] .hero .btn-outline-light:hover { background: rgba(var(--bs-primary-rgb), .06); color: var(--bs-primary); }
[data-diseno="editorial"] .hero .chip-cat { background: var(--pcd-surface-2); color: var(--bs-body-color); border-color: var(--bs-border-color); }
[data-diseno="editorial"] .hero .chip-cat:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
[data-diseno="editorial"] .hero::after { opacity: .06; filter: invert(1) sepia(1) hue-rotate(180deg) saturate(4); }
[data-diseno="editorial"] .btn-primary, [data-diseno="editorial"] .btn-success, [data-diseno="editorial"] .btn-grad { box-shadow: none; }
[data-diseno="editorial"] .card, [data-diseno="editorial"] .list-group { border: 1px solid var(--bs-border-color) !important; box-shadow: none !important; }
[data-diseno="editorial"] .hover-lift:hover { transform: none; border-color: rgba(var(--bs-primary-rgb), .5) !important; box-shadow: none !important; }
[data-diseno="editorial"] .kpi .kpi-num { font-size: 1.9rem; letter-spacing: -.04em; }
[data-diseno="editorial"] .section-title h2, [data-diseno="editorial"] .admin-side .titulo { letter-spacing: -.02em; }
[data-diseno="editorial"] .admin-side a.active { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); box-shadow: none; }

/* =========================================================
   Tooltips: rectángulos redondeados con los colores de la marca
   ========================================================= */
.tooltip {
    --bs-tooltip-bg: #003079;
    --bs-tooltip-color: #fff;
    --bs-tooltip-border-radius: calc(var(--bs-border-radius) + .1rem);
    --bs-tooltip-padding-x: .8rem;
    --bs-tooltip-padding-y: .5rem;
    --bs-tooltip-font-size: .8125rem;
    --bs-tooltip-max-width: 280px;
    --bs-tooltip-opacity: 1;
    font-family: var(--pcd-font-body);
    font-weight: 500;
    line-height: 1.4;
    filter: drop-shadow(0 6px 14px rgba(0, 48, 121, .25));
}
.tooltip .tooltip-inner { text-align: left; text-wrap: pretty; }
.tooltip.fade { transition: opacity .12s ease; }
[data-bs-theme="dark"] .tooltip { --bs-tooltip-bg: #e8f0fb; --bs-tooltip-color: #0b1a2e; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
[data-diseno="accesible"] .tooltip { --bs-tooltip-font-size: .9375rem; --bs-tooltip-padding-y: .6rem; }

/* =========================================================
   Campanita de notificaciones
   ========================================================= */
.campana-contador { position: absolute; top: 2px; right: 0; font-size: .65rem; min-width: 18px; padding: .2em .4em; border: 2px solid var(--pcd-surface); }
.campana-menu { width: min(360px, calc(100vw - 24px)); overflow: hidden; }
.campana-lista { max-height: 380px; overflow-y: auto; }
.aviso { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; white-space: normal; border-bottom: 1px solid var(--bs-border-color); }
.aviso:last-child { border-bottom: 0; }
.aviso-icono { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--pcd-surface-2); color: var(--bs-secondary-color); }
.aviso.no-leida { background: rgba(var(--bs-primary-rgb), .06); }
.aviso.no-leida .aviso-icono { background: rgba(var(--bs-primary-rgb), .14); color: var(--bs-primary); }
.toast-actualizar { border-left-color: var(--bs-primary); }
.toast-actualizar .toast-body { align-items: center; }

/* =========================================================
   Inteligencia artificial
   ========================================================= */
.ia-chip {
    display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .03em; color: #fff; background: linear-gradient(135deg, #713093, #019eea);
}
.ia-card { background: linear-gradient(135deg, rgba(113, 48, 147, .07), rgba(1, 158, 234, .07)); border: 1px solid rgba(113, 48, 147, .18) !important; }
[data-bs-theme="dark"] .ia-card { background: linear-gradient(135deg, rgba(113, 48, 147, .16), rgba(1, 158, 234, .12)); }

/* Asistente virtual */
.btn-asistente {
    position: fixed; right: 18px; bottom: 22px; z-index: 1035;
    width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; font-size: 1.5rem;
    background: linear-gradient(135deg, #713093, #019eea); box-shadow: 0 10px 24px rgba(113, 48, 147, .35);
    display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.btn-asistente:hover { transform: scale(1.06); }
@media (max-width: 991.98px) { .btn-asistente { bottom: 92px; right: 14px; width: 52px; height: 52px; font-size: 1.3rem; } }
.asistente { --bs-offcanvas-width: 420px; --bs-offcanvas-bg: var(--bs-body-bg); }
.asistente .offcanvas-header { background: var(--pcd-surface); border-bottom: 1px solid var(--bs-border-color); }
.asistente-mensajes { overflow-y: auto; }
.asistente .burbuja { max-width: 92%; font-size: .9375rem; }
.puntos { display: inline-flex; gap: 4px; padding: .2rem 0; }
.puntos span { width: 7px; height: 7px; border-radius: 50%; background: var(--bs-secondary-color); animation: puntos 1s infinite ease-in-out; }
.puntos span:nth-child(2) { animation-delay: .15s; }
.puntos span:nth-child(3) { animation-delay: .3s; }
@keyframes puntos { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* =========================================================
   Decilo: reclamos y propuestas por voz (includes/hoja_voz.php, assets/js/voz.js)
   ========================================================= */
.voz-boton {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.1rem; border-radius: var(--pcd-btn-radius);
    border: 2px dashed rgba(var(--bs-primary-rgb), .45); background: rgba(var(--bs-primary-rgb), .06);
    color: var(--bs-primary); font-weight: 500; cursor: pointer;
    transition: background-color .15s, border-color .15s, transform .12s;
}
.voz-boton i { font-size: 1.2rem; }
.voz-boton:hover { background: rgba(var(--bs-primary-rgb), .12); border-color: var(--bs-primary); }
.voz-boton:active { transform: scale(.98); }
.voz-boton[hidden] { display: none; }

.voz-hoja {
    width: min(440px, calc(100vw - 24px)); margin: auto; padding: 1.25rem 1.25rem 1rem;
    border: 1px solid var(--bs-border-color); border-radius: var(--pcd-radius-xl);
    background: var(--pcd-surface); color: var(--bs-body-color);
    box-shadow: 0 30px 80px rgba(0, 48, 121, .35); text-align: center;
}
.voz-hoja::backdrop { background: rgba(1, 20, 45, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@media (max-width: 575.98px) {
    .voz-hoja {
        margin: auto 0 0; width: 100vw; max-width: 100vw;
        border-radius: var(--pcd-radius-xl) var(--pcd-radius-xl) 0 0;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}
.voz-cabecera { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.voz-cabecera h2 { margin: 0; font-size: 1.15rem; }
.voz-mic {
    position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 1.1rem auto .9rem;
    border-radius: 50%; border: 0; font-size: 2.2rem; cursor: pointer;
    background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary);
    transition: background-color .2s, color .2s;
}
.voz-hoja.escuchando .voz-mic { background: var(--pcd-grad); color: #fff; }
.voz-hoja.escuchando .voz-mic::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid var(--pcd-sky); animation: voz-pulso 1.3s ease-out infinite;
}
.voz-hoja.pensando .voz-mic::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 3px solid transparent; border-top-color: var(--pcd-sky); animation: voz-girar .9s linear infinite;
}
@keyframes voz-pulso { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
@keyframes voz-girar { to { transform: rotate(360deg); } }
.voz-estado { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--pcd-heading); text-wrap: balance; }
.voz-oido { min-height: 1.5em; margin: .4rem 0 0; font-style: italic; color: var(--bs-primary); text-wrap: pretty; }
.voz-ejemplos {
    list-style: none; margin: 1rem 0 0; padding: .75rem; border-radius: var(--bs-border-radius);
    background: var(--pcd-surface-2); display: grid; gap: .25rem; font-size: .85rem; color: var(--bs-secondary-color);
}
.voz-ejemplos-titulo { font-weight: 600; color: var(--bs-body-color); }
.voz-privacidad { margin: .75rem 0 0; font-size: .75rem; color: var(--bs-secondary-color); }

/* =========================================================
   Identidad Lamunidigital: el "arco" de las cuatro personas del ícono
   ========================================================= */
.navbar-pcd { position: sticky; }
.navbar-pcd::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
    background: var(--pcd-arco); pointer-events: none;
}
.footer-pcd { border-top: 0; position: relative; }
.footer-pcd::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--pcd-arco); }

/* Portada */
.hero-marca { font-size: 1.35rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.hero-marca .marca { font-size: 1.6rem; }
.hero-lema { font-family: var(--pcd-font-head); font-weight: 600; color: #fff; opacity: .9; }
.hero-icono { width: 100%; max-width: 280px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 20, 60, .35)); transform: rotate(-3deg); }
.hero::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--pcd-arco); z-index: 2;
}
[data-diseno="editorial"] .hero .hero-lema { color: var(--pcd-navy); }
[data-diseno="editorial"] .hero .marca.marca-clara { color: var(--pcd-navy); }
[data-diseno="editorial"] .hero .marca.marca-clara .m-muni { color: var(--pcd-blue); }
[data-diseno="editorial"] .hero .marca.marca-clara .m-digital { color: var(--pcd-violet); }

/* Ingreso y registro */
.auth-icono { filter: drop-shadow(0 10px 22px rgba(0, 20, 60, .35)); }
.lema-auth { font-family: var(--pcd-font-head); font-weight: 600; font-size: 1.1rem; color: var(--pcd-yellow); }
.auth-side::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--pcd-arco); z-index: 2; }

/* Pasos del asistente, barra de progreso y metas con los colores de las personas */
.stepper .st.hecho::before { background: var(--pcd-arco-suave); background-size: 300% 100%; }
.stepper .st:nth-child(1).hecho::before { background-position: 0 0; }
.stepper .st:nth-child(2).hecho::before { background-position: 50% 0; }
.stepper .st:nth-child(3).hecho::before { background-position: 100% 0; }
.progreso .barra { background: var(--pcd-arco-suave); }

/* Botón principal de la barra inferior y avatar: celeste → violeta, como las dos personas centrales */
.barra-movil a.principal i { background: linear-gradient(135deg, var(--pcd-blue), var(--pcd-violet)); }
.avatar { background: linear-gradient(135deg, var(--pcd-blue), var(--pcd-violet)); }
.paso-num { background: linear-gradient(135deg, var(--pcd-navy), var(--pcd-blue)); }
.paso-card:nth-child(1) .paso-num, .col-md-4:nth-child(1) .paso-num { background: var(--pcd-green); }
.col-md-4:nth-child(2) .paso-num { background: var(--pcd-blue); }
.col-md-4:nth-child(3) .paso-num { background: var(--pcd-violet); }

/* Aviso de vista previa de diseño */
.aviso-previa { background: #003079; color: #fff; }

/* Galería de alternativas (Panel → Diseño) */
.muestra-diseno { background: var(--bs-body-bg); color: var(--bs-body-color); border-radius: 1.25rem; padding: 1.25rem; border: 2px solid var(--bs-border-color); height: 100%; display: flex; flex-direction: column; font-size: var(--pcd-fs-base); line-height: var(--pcd-lh); }
.muestra-diseno.actual { border-color: var(--bs-primary); box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .15); }
.muestra-diseno .mini-hero { border-radius: var(--pcd-radius-xl); padding: 1.25rem; }
.muestra-diseno .mini-hero h3 { font-size: 1.45rem; }
.muestra-diseno .escala span { display: block; font-family: var(--pcd-font-head); font-weight: var(--pcd-head-weight); letter-spacing: var(--pcd-head-tracking); line-height: 1.15; color: var(--pcd-heading); }
.muestra-diseno .alfabeto { font-size: .9rem; color: var(--bs-secondary-color); word-break: break-all; }

.min-w-0 { min-width: 0; }
.opacity-90 { opacity: .9; }
.fw-medium { font-weight: 500 !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.aviso-titulo { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
