:root {
    --ink: #0b2230;
    --deep: #071b24;
    --teal: #087f6b;
    --teal-dark: #076857;
    --soft: #eef5f3;
    --line: #dbe5e2;
    --muted: #60717a;
    --danger-bg: #fff0f0;
    --danger: #9d2222;
    --success-bg: #e8f7f0;
    --success: #176b4f;
    --white: #fff;
    --shadow: 0 18px 50px rgba(13, 36, 45, .12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f5f8f7;
}

button, input { font: inherit; }
a { color: var(--teal); }

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(18, 145, 119, .18), transparent 30%),
        linear-gradient(135deg, #061b24, #0a3540 52%, #eef5f3 52%);
    display: grid;
    place-items: center;
    padding: 32px;
}

.auth-shell {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 36px;
    align-items: center;
}

.auth-shell.single { grid-template-columns: 1fr; max-width: 760px; }

.brand-panel { color: var(--white); padding: 40px; }
.brand-panel h1 { font-size: clamp(2.3rem, 6vw, 4.7rem); line-height: .98; margin: 12px 0 24px; }
.brand-panel p { max-width: 520px; font-size: 1.08rem; line-height: 1.65; }

.eyebrow {
    margin: 0;
    letter-spacing: .12em;
    font-weight: 800;
    font-size: .76rem;
    color: #31a98f;
}

.auth-card, .welcome-card, .info-card, .next-step-card {
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: var(--shadow);
    border-radius: 20px;
}

.auth-card { padding: clamp(28px, 5vw, 54px); }
.auth-card.wide { max-width: 760px; margin-inline: auto; width: 100%; }
.auth-card h1, .auth-card h2 { margin: 8px 0; font-size: 2rem; }
.muted { color: var(--muted); line-height: 1.6; }
.tiny { margin-top: 20px; color: var(--muted); font-size: .86rem; }

label { display: block; margin: 18px 0 8px; font-weight: 700; }
input {
    width: 100%;
    border: 1px solid #c8d6d2;
    border-radius: 11px;
    padding: 13px 14px;
    background: #fff;
    color: var(--ink);
    outline: none;
}
input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8,127,107,.12); }

button, .button-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 11px;
    padding: 13px 18px;
    font-weight: 800;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.auth-card form > button { width: 100%; margin-top: 24px; }
button:hover, .button-link:hover { background: var(--teal-dark); }
.button-secondary { background: transparent; border: 1px solid #bdd0cb; color: var(--ink); }
.button-secondary:hover { background: var(--soft); }

.alert { border-radius: 11px; padding: 12px 14px; margin: 18px 0; line-height: 1.45; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f4c5c5; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #b9e4d2; }

.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(20px, 5vw, 64px);
    background: var(--deep);
    color: white;
}

.dashboard-shell { width: min(1180px, calc(100% - 36px)); margin: 36px auto 70px; }
.welcome-card { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 32px; }
.welcome-card h1 { margin: 8px 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.status-pill { background: var(--success-bg); color: var(--success); border-radius: 999px; padding: 10px 14px; font-weight: 800; white-space: nowrap; }

.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.info-card, .next-step-card { padding: 24px; }
.info-card span, .info-card small { display: block; color: var(--muted); }
.info-card strong { display: block; font-size: 1.2rem; margin: 10px 0 6px; }
.next-step-card { margin-top: 20px; }
code { background: #edf3f1; border-radius: 6px; padding: 2px 6px; }

@media (max-width: 820px) {
    .auth-page { background: linear-gradient(165deg, #061b24 0 37%, #eef5f3 37%); padding: 20px; }
    .auth-shell { grid-template-columns: 1fr; gap: 10px; }
    .brand-panel { padding: 26px 10px; }
    .brand-panel h1 { font-size: 2.65rem; }
    .grid-cards { grid-template-columns: 1fr; }
    .welcome-card { align-items: flex-start; flex-direction: column; }
    .two-columns { grid-template-columns: 1fr; gap: 0; }
}

/* Panel administrativo */
select, textarea {
    width: 100%;
    border: 1px solid #c8d6d2;
    border-radius: 11px;
    padding: 13px 14px;
    background: #fff;
    color: var(--ink);
    outline: none;
    font: inherit;
}
select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8,127,107,.12); }
button:disabled { opacity: .55; cursor: not-allowed; }
.button-small { padding: 9px 13px; font-size: .88rem; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-actions form { margin: 0; }

.admin-page { background: #f3f6f5; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.32) transparent; background: linear-gradient(180deg, #061c25, #082f37); color: #fff; padding: 26px 18px 18px; display: flex; flex-direction: column; z-index: 30; }
.admin-sidebar::-webkit-scrollbar { width: 8px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.38); background-clip: padding-box; }
.admin-brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; padding: 5px 12px 24px; }
.admin-brand span { font-weight: 900; letter-spacing: .04em; }
.admin-brand small { color: #a8c2c1; margin-top: 5px; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a { color: #cfe0df; text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(28, 160, 132, .34); }
.admin-sidebar-footer { flex: 0 0 auto; margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 12px 6px; display: grid; gap: 4px; }
.admin-sidebar-footer small { color: #a8c2c1; overflow-wrap: anywhere; }
.admin-sidebar-footer form { margin-top: 12px; }
.sidebar-logout { width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.sidebar-logout:hover { background: rgba(255,255,255,.15); }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 104px; padding: 24px clamp(22px, 4vw, 54px); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.admin-topbar h1 { margin: 5px 0 0; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.sidebar-toggle { display: none; width: 44px; height: 44px; padding: 0; background: var(--soft); color: var(--ink); }
.admin-content { padding: 30px clamp(22px, 4vw, 54px) 70px; }
.admin-page-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-stat-card, .admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(13,36,45,.055); }
.admin-stat-card { padding: 22px; display: flex; flex-direction: column; min-height: 158px; }
.admin-stat-card span, .admin-stat-card small { color: var(--muted); }
.admin-stat-card strong { font-size: 2.25rem; margin: 12px 0; }
.admin-stat-card a { margin-top: auto; font-weight: 800; text-decoration: none; }
.admin-two-column { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
.admin-panel { padding: 24px; }
.admin-next-panel { margin-top: 18px; }
.admin-panel h2 { margin: 5px 0 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.panel-heading h2 { font-size: 1.25rem; }
.text-link { font-weight: 800; text-decoration: none; white-space: nowrap; }
.compact-list { display: grid; }
.compact-list > a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.compact-list > a:first-child { border-top: 0; }
.compact-list span { display: flex; flex-direction: column; }
.compact-list small { color: var(--muted); margin-top: 4px; }
.activity-list { display: grid; gap: 17px; }
.activity-list > div { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: start; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 7px; }
.activity-list p { margin: 0; display: grid; gap: 4px; }
.activity-list small { color: var(--muted); }
.empty-state { padding: 28px; text-align: center; color: var(--muted); background: #f7faf9; border-radius: 12px; }

.form-panel { max-width: 920px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-wide { grid-column: 1 / -1; }
.field-help { display: block; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.danger-zone { margin-top: 18px; border-left: 4px solid #c77e32; }
.inline-password-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.inline-password-form button { margin-bottom: 0; height: 48px; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th { text-align: left; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 15px 14px; border-bottom: 1px solid #e8efed; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { color: var(--muted); margin-top: 5px; }
.actions-column { text-align: right !important; }
.table-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.table-actions form { margin: 0; }
.table-link, .table-button { border: 0; padding: 0; background: none; color: var(--teal); font-weight: 800; text-decoration: none; cursor: pointer; }
.table-button:hover { background: none; text-decoration: underline; }
.danger-text { color: #9d2222; }
.badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: .78rem; font-weight: 800; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-muted { background: #edf1f0; color: #62706f; }
.audit-details { max-width: 330px; overflow-wrap: anywhere; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }

@media (max-width: 1050px) {
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; left: 0; transform: translateX(-100%); width: 278px; transition: transform .2s ease; box-shadow: 15px 0 50px rgba(0,0,0,.25); }
    .sidebar-open .admin-sidebar { transform: translateX(0); }
    .sidebar-toggle { display: inline-flex; }
    .admin-content { padding-inline: 16px; }
    .admin-topbar { padding-inline: 16px; }
    .form-grid, .inline-password-form { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
    .admin-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
    .admin-table td { border: 0; padding: 8px 0 8px 42%; position: relative; min-height: 34px; }
    .admin-table td::before { content: attr(data-label); position: absolute; left: 0; width: 38%; color: var(--muted); font-weight: 800; font-size: .78rem; text-transform: uppercase; }
    .table-actions { justify-content: flex-start; }
    .audit-details { max-width: none; }
}

@media (max-width: 540px) {
    .admin-stat-grid { grid-template-columns: 1fr; }
    .panel-heading { align-items: flex-start; flex-direction: column; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions > * { width: 100%; }
    .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
}


/* Servicios y proyectos */
.admin-stat-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.admin-stat-grid-6 .admin-stat-card { min-height: 150px; }
.badge-info { background: #e8f2f8; color: #275f7a; }
.badge-warning { background: #fff3db; color: #8b5b07; }
.badge-danger { background: #ffe8e8; color: #982b2b; }
.badge-complete { background: #e8eef9; color: #3f5685; }
.project-stat-grid { margin-bottom: 18px; }
.project-form-panel, .update-panel { max-width: 1100px; }
.project-code-line { margin: 4px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.form-section { padding: 26px 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 4px; }
.form-section-heading { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; margin-bottom: 6px; }
.form-section-heading > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--teal); font-weight: 900; }
.form-section-heading h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.form-section-heading p { margin: 0; color: var(--muted); }
.check-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font-weight: 800; }
.check-line input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--teal); }
.visibility-field { align-self: end; padding-bottom: 3px; }
.progress-input-wrap input[type="range"] { padding: 0; border: 0; box-shadow: none; accent-color: var(--teal); }
.selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 10px; }
.selection-card { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; background: #fbfdfc; }
.selection-card:hover { border-color: #9bc9bd; background: var(--soft); }
.selection-card input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--teal); }
.selection-card span { display: grid; gap: 4px; }
.selection-card small { color: var(--muted); font-weight: 500; }
.compact-empty { padding: 16px; margin-top: 10px; }
.filter-panel { margin-bottom: 18px; }
.filter-grid { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(140px, .8fr)) auto; gap: 13px; align-items: end; }
.filter-grid label { margin-top: 0; }
.filter-actions { display: flex; gap: 8px; }
.filter-actions > * { white-space: nowrap; }
.table-progress { width: 110px; height: 8px; border-radius: 99px; overflow: hidden; background: #e8efed; }
.table-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #34ad91); border-radius: inherit; }
.project-table td small .badge { margin-top: 6px; }
.archived-row { opacity: .62; background: #f8faf9; }
.update-panel { margin-top: 18px; }
.update-timeline { margin-top: 28px; display: grid; }
.update-entry { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 0 0 24px; position: relative; }
.update-entry::before { content: ''; position: absolute; left: 6px; top: 15px; bottom: 0; width: 2px; background: var(--line); }
.update-entry:last-child::before { display: none; }
.update-marker { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); margin-top: 4px; z-index: 1; box-shadow: 0 0 0 4px #e8f5f1; }
.update-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.update-entry p { margin: 8px 0; color: #344c56; line-height: 1.62; }
.update-entry small { color: var(--muted); }
.project-compact-list { display: grid; }
.project-compact-list > a { display: grid; gap: 9px; padding: 15px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.project-compact-list > a:first-child { border-top: 0; }
.project-compact-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.project-compact-head > span { display: grid; gap: 4px; }
.project-compact-head small { color: var(--muted); }
.project-compact-list .table-progress { width: 100%; }
.project-compact-meta { display: flex; gap: 7px; flex-wrap: wrap; }

@media (max-width: 1320px) {
    .admin-stat-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .filter-grid { grid-template-columns: repeat(3, 1fr); }
    .filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 820px) {
    .admin-stat-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .selection-grid, .filter-grid { grid-template-columns: 1fr; }
    .filter-actions { grid-column: auto; flex-direction: column; }
    .filter-actions > * { width: 100%; }
    .table-progress { width: 100%; }
}

@media (max-width: 540px) {
    .admin-stat-grid-6 { grid-template-columns: 1fr; }
    .form-section-heading { grid-template-columns: 34px 1fr; }
    .form-section-heading > span { width: 32px; height: 32px; }
}

/* Vista del cliente V1 */
.client-page { background: #f2f6f5; }
.client-layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.client-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; background: linear-gradient(180deg, #061c25 0%, #08343b 70%, #0b4a45 100%); color: #fff; display: flex; flex-direction: column; z-index: 50; }
.client-brand { display: grid; gap: 5px; color: #fff; text-decoration: none; padding: 4px 13px 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.client-brand span { font-weight: 900; letter-spacing: .06em; }
.client-brand small { color: #a9c9c5; }
.client-nav { display: grid; gap: 6px; margin-top: 22px; }
.client-nav a, .client-nav-disabled { min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; color: #cee0dd; text-decoration: none; font-weight: 750; }
.client-nav a:hover, .client-nav a.active { color: #fff; background: rgba(42, 176, 147, .28); }
.client-nav-disabled { opacity: .48; cursor: not-allowed; }
.client-nav-disabled small { margin-left: auto; font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; }
.nav-symbol { width: 21px; text-align: center; font-size: 1.15rem; }
.client-sidebar-footer { margin-top: auto; padding: 20px 12px 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 5px; }
.client-sidebar-footer > span { font-weight: 800; }
.client-sidebar-footer small { color: #aac6c3; overflow-wrap: anywhere; }
.client-sidebar-footer form { margin-top: 12px; }
.client-logout { width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.17); }
.client-logout:hover { background: rgba(255,255,255,.16); }
.client-main { min-width: 0; }
.client-topbar { min-height: 86px; padding: 17px clamp(20px, 4vw, 52px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(10px); }
.client-topbar > div:first-of-type { display: grid; gap: 4px; }
.client-menu-toggle { display: none; width: 44px; height: 44px; padding: 0; background: var(--soft); color: var(--ink); }
.client-user-block { display: flex; align-items: center; gap: 11px; }
.client-avatar, .team-avatar { display: grid; place-items: center; border-radius: 50%; background: #dff1ec; color: var(--teal-dark); font-weight: 900; }
.client-avatar { width: 42px; height: 42px; }
.client-user-copy { display: grid; gap: 2px; }
.client-user-copy small { color: var(--muted); }
.client-content { padding: 30px clamp(20px, 4vw, 52px) 76px; }
.client-hero { min-height: 230px; padding: clamp(28px, 5vw, 48px); border-radius: 23px; background: radial-gradient(circle at 85% 18%, rgba(71,207,173,.24), transparent 28%), linear-gradient(135deg, #071d27, #0a4548); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: 0 20px 55px rgba(8, 40, 48, .16); overflow: hidden; }
.client-hero h1 { margin: 9px 0 13px; font-size: clamp(2.15rem, 4vw, 3.65rem); line-height: 1.02; }
.client-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: #d6e6e4; line-height: 1.65; }
.hero-status { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); white-space: nowrap; font-weight: 800; }
.status-orbit { width: 10px; height: 10px; border-radius: 50%; background: #4ce0ad; box-shadow: 0 0 0 6px rgba(76,224,173,.14); }
.client-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.client-stat-card { min-height: 145px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(13,36,45,.05); }
.client-stat-card > span, .client-stat-card small { color: var(--muted); }
.client-stat-card strong { margin: 11px 0 8px; font-size: 2.1rem; }
.client-stat-card small { margin-top: auto; line-height: 1.4; }
.client-stat-card.stat-alert { border-color: #ecc88a; background: #fffaf0; }
.client-section { margin-top: 34px; }
.client-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.client-section-heading h2 { margin: 5px 0 0; font-size: clamp(1.55rem, 2.5vw, 2rem); }
.client-section-heading > span, .client-panel-heading > span { color: var(--muted); font-weight: 800; }
.client-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.client-project-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 10px 32px rgba(13,36,45,.055); display: flex; flex-direction: column; min-width: 0; }
.client-project-card:hover { transform: translateY(-2px); box-shadow: 0 15px 38px rgba(13,36,45,.09); transition: .18s ease; }
.project-card-top, .detail-badges { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.project-card-top > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-service { display: inline-flex; color: var(--teal-dark); background: #e9f6f2; border-radius: 999px; padding: 6px 10px; font-size: .77rem; font-weight: 850; }
.project-card-title { margin: 21px 0 20px; }
.project-card-title > span, .project-detail-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); font-size: .8rem; }
.project-card-title h3 { margin: 7px 0 5px; font-size: 1.31rem; line-height: 1.25; }
.project-card-title small { color: var(--muted); }
.project-progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: .89rem; }
.client-progress { height: 9px; border-radius: 99px; background: #e7efed; overflow: hidden; }
.client-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #42b995); }
.client-progress.large { height: 12px; margin: 13px 0 10px; }
.project-card-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding: 20px 0; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-card-meta > div { min-width: 0; }
.project-card-meta span, .project-card-meta small, .project-latest-update span, .project-latest-update small { display: block; color: var(--muted); font-size: .78rem; }
.project-card-meta strong { display: block; margin-top: 6px; font-size: .91rem; overflow-wrap: anywhere; }
.project-card-meta small { margin-top: 4px; line-height: 1.35; }
.project-latest-update { padding: 16px; margin-top: 17px; border-radius: 12px; background: #f4f8f7; }
.project-latest-update strong { display: block; margin: 6px 0; line-height: 1.4; }
.project-open-link { display: flex; justify-content: space-between; align-items: center; padding-top: 19px; margin-top: auto; font-weight: 850; text-decoration: none; }
.project-open-link span { font-size: 1.25rem; }
.client-empty-state { padding: 42px 28px; background: #fff; border: 1px dashed #b9cbc7; border-radius: 17px; text-align: center; }
.client-empty-state.compact { padding: 25px; }
.client-empty-state h3 { margin: 8px 0; }
.client-empty-state p { max-width: 650px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.empty-symbol { font-size: 2.1rem; color: var(--teal); }
.future-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.future-module-grid article { padding: 23px; border-radius: 16px; background: #eaf2f0; border: 1px solid #d6e4e0; }
.future-module-grid article > span { color: var(--teal); font-weight: 900; }
.future-module-grid h3 { margin: 15px 0 7px; }
.future-module-grid p { margin: 0; color: var(--muted); line-height: 1.5; }
.client-breadcrumb { display: flex; gap: 9px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.client-breadcrumb a { text-decoration: none; font-weight: 800; }
.project-detail-hero { padding: clamp(27px, 4vw, 42px); border-radius: 22px; background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); gap: 28px; align-items: center; box-shadow: 0 12px 34px rgba(13,36,45,.055); }
.project-detail-hero h1 { margin: 8px 0 7px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.07; }
.project-detail-code { margin: 20px 0 0; }
.project-detail-client { margin: 0; color: var(--muted); font-weight: 700; }
.detail-progress-card { padding: 21px; border-radius: 16px; background: #f1f7f5; }
.detail-progress-card > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.detail-progress-card strong { font-size: 2rem; }
.detail-progress-card small { color: var(--muted); }
.project-tabs { display: flex; gap: 8px; margin: 18px 0; padding: 6px; border-radius: 13px; background: #e8efed; overflow-x: auto; }
.project-tabs span { padding: 10px 16px; border-radius: 9px; color: var(--muted); font-weight: 800; white-space: nowrap; cursor: not-allowed; }
.project-tabs span.active { background: #fff; color: var(--ink); box-shadow: 0 4px 13px rgba(13,36,45,.07); cursor: default; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(285px, .65fr); gap: 18px; }
.detail-grid-updates { margin-top: 18px; }
.client-panel { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 9px 28px rgba(13,36,45,.045); }
.client-panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 20px; }
.client-panel-heading h2 { margin: 5px 0 0; font-size: 1.35rem; }
.long-copy { margin: 0; color: #344d56; line-height: 1.75; }
.service-context { margin-top: 24px; padding: 20px; background: #f3f8f6; border-radius: 13px; }
.service-context > span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.service-context strong { display: block; margin: 7px 0; }
.service-context p { margin: 0; color: var(--muted); line-height: 1.6; }
.project-facts { margin: 0; display: grid; }
.project-facts > div { padding: 13px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }
.project-facts > div:first-child { border-top: 0; padding-top: 0; }
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; text-align: right; font-weight: 800; }
.client-timeline { display: grid; }
.client-timeline-entry { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; padding-bottom: 26px; }
.client-timeline-entry::before { content: ''; position: absolute; left: 7px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.client-timeline-entry:last-child::before { display: none; }
.timeline-marker { width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px #e6f4f0; z-index: 1; }
.timeline-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.timeline-heading h3 { margin: 0; font-size: 1.05rem; }
.client-timeline-entry p { margin: 9px 0; color: #38515a; line-height: 1.65; }
.client-timeline-entry small { color: var(--muted); }
.client-team-list { display: grid; }
.client-team-list > div { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.client-team-list > div:first-child { border-top: 0; padding-top: 0; }
.team-avatar { width: 40px; height: 40px; flex: 0 0 auto; font-size: .82rem; }
.client-team-list > div > span:last-child { display: grid; gap: 4px; }
.client-team-list small { color: var(--muted); line-height: 1.35; }
.client-overlay { display: none; }

@media (max-width: 1180px) {
    .client-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .client-project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .client-layout { grid-template-columns: 1fr; }
    .client-sidebar { position: fixed; left: 0; width: 278px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 50px rgba(0,0,0,.28); }
    .client-sidebar-open .client-sidebar { transform: translateX(0); }
    .client-sidebar-open .client-overlay { display: block; position: fixed; inset: 0; background: rgba(4,22,29,.48); z-index: 40; }
    .client-menu-toggle { display: inline-flex; flex: 0 0 auto; }
    .client-topbar { justify-content: flex-start; }
    .client-user-block { margin-left: auto; }
    .project-detail-hero, .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .client-content { padding-inline: 15px; padding-top: 18px; }
    .client-topbar { padding-inline: 15px; }
    .client-topbar > div:nth-child(2) { display: none; }
    .client-user-copy { display: none; }
    .client-hero { min-height: 0; align-items: flex-start; flex-direction: column; border-radius: 17px; }
    .client-stat-grid { grid-template-columns: 1fr; }
    .project-card-meta { grid-template-columns: 1fr; }
    .client-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .future-module-grid { grid-template-columns: 1fr; }
    .project-detail-hero { border-radius: 16px; }
    .client-panel { padding: 20px; }
    .project-facts > div { display: grid; gap: 5px; }
    .project-facts dd { text-align: left; }
}

/* Cronograma y diagrama de Gantt */
.project-tabs a {
    padding: 10px 16px;
    border-radius: 9px;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}
.project-tabs a:hover { background: rgba(255,255,255,.65); color: var(--ink); }
.project-tabs a.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 13px rgba(13,36,45,.07);
}

.schedule-page-actions { gap: 10px; }
.schedule-project-selector { margin-bottom: 18px; }
.schedule-project-selector form {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, .65fr);
    gap: 24px;
    align-items: end;
}
.schedule-project-selector label { margin-top: 0; }
.schedule-project-context {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f1f7f5;
}
.schedule-project-context span,
.schedule-project-context small { color: var(--muted); }
.schedule-project-context strong { margin: 4px 0; }
.schedule-form-panel { max-width: 1050px; }
.schedule-stat-grid { margin-bottom: 18px; }
.schedule-stat-grid .stat-alert { border-color: #ecc88a; background: #fffaf0; }
.schedule-gantt-panel { margin-bottom: 18px; }
.schedule-list-panel { margin-top: 18px; }
.schedule-table td strong,
.schedule-table td small { display: block; }
.schedule-table td small { margin-top: 5px; color: var(--muted); line-height: 1.35; }
.schedule-table tr.is-inactive { opacity: .58; }
.checkbox-field label { display: inline-flex; align-items: center; gap: 10px; }
.checkbox-field input { width: auto; }

.gantt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: .86rem;
}
.gantt-toolbar > div { display: flex; align-items: center; gap: 7px; }
.gantt-toolbar strong { color: var(--ink); }
.gantt-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    scrollbar-color: #9db5af #edf3f1;
}
.gantt-board {
    min-width: var(--gantt-min-width, 980px);
    display: grid;
    grid-template-columns: minmax(280px, 31%) minmax(700px, 69%);
    align-items: stretch;
}
.gantt-head {
    min-height: 72px;
    background: #f3f7f6;
    border-bottom: 1px solid var(--line);
}
.gantt-label-head {
    padding: 16px 18px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gantt-label-head small { color: var(--muted); margin-top: 4px; }
.gantt-timeline-head { position: relative; overflow: hidden; }
.gantt-month-band {
    height: 37px;
    position: relative;
    border-bottom: 1px solid var(--line);
}
.gantt-month-band span {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding-left: 11px;
    border-right: 1px solid #d3dfdc;
    color: #24414b;
    font-size: .8rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
}
.gantt-week-band { height: 35px; position: relative; }
.gantt-week-band span {
    position: absolute;
    top: 9px;
    transform: translateX(5px);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 750;
}
.gantt-label-cell,
.gantt-timeline-cell {
    min-height: 64px;
    border-bottom: 1px solid #e6eeec;
}
.gantt-label-cell {
    position: relative;
    padding: 11px 14px;
    border-right: 1px solid var(--line);
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    background: #fff;
}
.gantt-label-cell.is-phase { background: #edf6f3; }
.gantt-label-cell.is-child { padding-left: 34px; }
.gantt-label-cell strong { display: block; line-height: 1.3; font-size: .91rem; }
.gantt-label-cell small { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; line-height: 1.35; }
.gantt-label-cell .badge { margin-top: 7px; width: fit-content; }
.gantt-type-symbol { color: var(--teal); font-weight: 900; text-align: center; }
.gantt-timeline-cell {
    position: relative;
    background: repeating-linear-gradient(90deg, #fff 0, #fff 6.8%, #fbfdfc 6.8%, #fbfdfc 13.6%);
    overflow: hidden;
}
.gantt-grid-line {
    position: absolute;
    inset-block: 0;
    width: 1px;
    background: #e5ecea;
    pointer-events: none;
}
.gantt-today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d97236;
    z-index: 5;
    pointer-events: none;
}
.gantt-today-line small {
    position: absolute;
    top: 4px;
    left: 6px;
    color: #a94e1c;
    font-size: .66rem;
    font-weight: 900;
}
.gantt-today-line.row-line { opacity: .55; }
.gantt-bar {
    position: absolute;
    top: 17px;
    height: 30px;
    min-width: 7px;
    border-radius: 8px;
    background: #7ec5b2;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(20,82,70,.15);
    z-index: 3;
}
.gantt-bar i {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    background: var(--teal);
    opacity: .9;
}
.gantt-bar em {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-style: normal;
    font-size: .7rem;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.gantt-phase { height: 22px; top: 21px; border-radius: 4px; background: #326b72; }
.gantt-phase i { background: #174952; }
.gantt-milestone {
    width: 20px !important;
    min-width: 20px;
    height: 20px;
    top: 22px;
    border-radius: 3px;
    transform: translateX(-10px) rotate(45deg);
    background: #0f7c68;
    overflow: visible;
}
.gantt-milestone i { display: none; }
.gantt-health-attention { background: #dcad57; }
.gantt-health-attention i { background: #ba7a15; }
.gantt-health-delayed { background: #d78686; }
.gantt-health-delayed i { background: #a94040; }
.gantt-health-completed,
.gantt-is-completed { background: #75b99b; }
.gantt-is-completed i { background: #2c8763; }
.gantt-is-internal { border: 2px dashed #6a7f87; opacity: .78; }
.gantt-empty {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

.schedule-client-hero { min-height: 210px; }
.schedule-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.schedule-overview-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(13,36,45,.055);
    display: flex;
    flex-direction: column;
}
.schedule-overview-card h2 { margin: 7px 0 5px; font-size: 1.35rem; line-height: 1.25; }
.schedule-card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 20px 0 15px;
}
.schedule-card-stats div {
    padding: 12px 8px;
    border-radius: 11px;
    background: #f2f7f5;
    text-align: center;
}
.schedule-card-stats strong { display: block; font-size: 1.25rem; }
.schedule-card-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.schedule-date-range {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.schedule-date-range span { display: block; color: var(--muted); font-size: .77rem; }
.schedule-date-range strong { display: block; margin-top: 5px; }
.schedule-detail-hero { margin-bottom: 0; }
.schedule-client-stats { margin-bottom: 18px; }
.client-gantt-panel { margin-top: 18px; }
.schedule-mobile-list-panel { margin-top: 18px; }
.schedule-task-list { display: grid; gap: 12px; }
.schedule-task-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
}
.schedule-task-card.is-phase { background: #edf6f3; border-color: #c9e0da; }
.schedule-task-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.schedule-task-card-head > div > span { color: var(--teal); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.schedule-task-card h3 { margin: 6px 0 0; font-size: 1.05rem; }
.schedule-task-card > p { color: #38515a; line-height: 1.6; }
.schedule-task-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.schedule-task-meta span { padding: 10px; border-radius: 10px; background: #fff; }
.schedule-task-meta small { display: block; color: var(--muted); font-size: .72rem; }
.schedule-task-meta strong { display: block; margin-top: 5px; font-size: .87rem; }

@media (max-width: 1100px) {
    .schedule-overview-grid { grid-template-columns: 1fr; }
    .schedule-card-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .schedule-project-selector form { grid-template-columns: 1fr; }
    .schedule-task-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .schedule-page-actions { flex-direction: column; }
    .schedule-page-actions .button-link { width: 100%; }
    .gantt-toolbar { align-items: flex-start; flex-direction: column; }
    .gantt-board { grid-template-columns: 250px minmax(700px, 1fr); }
    .gantt-label-cell.is-child { padding-left: 24px; }
    .schedule-task-card-head { flex-direction: column; }
    .schedule-task-meta { grid-template-columns: 1fr; }
}

/* Módulo documental V1 */
.alert-warning { background: #fff8e7; color: #805b12; border: 1px solid #eed7a0; }
.button-danger { background: #a63333; }
.button-danger:hover { background: #852626; }
.empty-copy { color: var(--muted); line-height: 1.6; }
.checkbox-inline { display: flex; align-items: center; gap: 9px; margin: 14px 0; }
.checkbox-inline input { width: auto; }
.admin-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.document-project-picker { margin-bottom: 18px; }
.project-select-form { display: grid; grid-template-columns: minmax(260px, 720px); }
.project-select-form label { margin-top: 0; }
.document-stat-grid { margin-bottom: 18px; }
.document-table td:first-child { min-width: 260px; }
.document-table td small, .document-metadata-grid small { display: block; margin-top: 5px; color: var(--muted); }
.document-detail-admin .panel-heading { align-items: flex-start; }
.document-metadata-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.document-metadata-grid > div { padding: 15px; background: #f4f8f7; border: 1px solid #e3ece9; border-radius: 12px; }
.document-metadata-grid span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 7px; }
.document-metadata-grid strong { display: block; overflow-wrap: anywhere; }
.document-description { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.document-description h3 { margin: 0 0 8px; }
.document-description p { margin: 0; color: #38515a; line-height: 1.68; }
.approval-confirmation { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--success-bg); color: var(--success); border: 1px solid #b9e4d2; font-weight: 750; }
.document-admin-columns { align-items: start; margin-top: 18px; }
.version-list { display: grid; gap: 10px; }
.version-row { padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; background: #fff; }
.version-row.is-current { border-color: #8bc7b7; background: #f0faf7; }
.version-row > div { min-width: 0; }
.version-row strong, .version-row span, .version-row small { display: block; }
.version-row span { margin-top: 5px; overflow-wrap: anywhere; }
.version-row small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.version-row p { margin: 9px 0 0; color: #40565f; line-height: 1.55; }
.compact-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.compact-form h3 { margin: 0 0 8px; }
.add-version-form button, .compact-form > button { margin-top: 16px; }
.approval-history, .comment-thread { display: grid; gap: 10px; }
.approval-history { margin-bottom: 15px; }
.approval-history-item, .comment-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.approval-history-item strong, .approval-history-item small { display: block; margin-top: 7px; }
.approval-history-item small, .comment-item small { color: var(--muted); }
.approval-history-item p, .comment-item p { margin: 9px 0; line-height: 1.6; color: #38515a; }
.comment-item.is-internal { border-style: dashed; background: #f4f4f5; }
.comment-item > div { display: flex; justify-content: space-between; gap: 12px; }
.comment-item > div span { color: var(--muted); font-size: .82rem; }
.repository-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.repository-admin-card { border: 1px solid var(--line); border-radius: 15px; padding: 18px; display: flex; justify-content: space-between; gap: 18px; background: #fbfdfc; }
.repository-admin-card.is-inactive { opacity: .56; }
.repository-admin-card h3 { margin: 7px 0; }
.repository-admin-card p:not(.eyebrow) { margin: 0 0 12px; color: var(--muted); line-height: 1.55; }
.repository-admin-card small { color: var(--muted); }
.repository-icon { float: right; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #e6f4f0; color: var(--teal); font-weight: 900; }
.compact-hero { min-height: 190px; }
.document-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.document-project-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(13,36,45,.05); display: grid; gap: 20px; }
.document-project-card h2 { margin: 7px 0; }
.document-project-card > div > span { color: var(--muted); }
.document-card-counts { display: flex; flex-wrap: wrap; gap: 9px; }
.document-card-counts span { padding: 9px 11px; border-radius: 10px; background: #f1f6f4; color: var(--muted); }
.document-card-counts strong { color: var(--ink); }
.document-card-counts .count-alert { background: #fff3dc; color: #815b0e; }
.document-module-hero { grid-template-columns: minmax(0, 1fr) auto; }
.document-client-stats { margin: 18px 0; }
.client-stat-alert { border-color: #e5c783 !important; background: #fffaf0 !important; }
.client-document-list { display: grid; gap: 12px; }
.client-document-card { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfdfc; }
.document-file-icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: #e5f3ef; color: var(--teal-dark); font-size: .75rem; font-weight: 900; letter-spacing: .04em; }
.client-document-copy { min-width: 0; }
.client-document-copy .detail-badges { justify-content: flex-start; margin-bottom: 8px; }
.client-document-copy h3 { margin: 5px 0 7px; }
.client-document-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.document-inline-meta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 11px; color: var(--muted); font-size: .82rem; }
.client-document-actions { display: grid; gap: 8px; min-width: 125px; }
.repository-client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.repository-client-card { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #fff, #f4f8f7); }
.repository-client-card h3 { margin: 8px 0; }
.repository-client-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.58; }
.repository-drive-mark { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #e8f3ef; color: var(--teal); font-weight: 900; }
.repository-instructions { margin: 16px 0; padding: 13px; border-radius: 11px; background: #edf4f2; }
.repository-instructions p { margin: 6px 0 0; color: #455c64; line-height: 1.5; }
.document-detail-hero-client { padding: clamp(26px, 4vw, 42px); border-radius: 22px; background: #fff; border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 25px; box-shadow: 0 12px 34px rgba(13,36,45,.055); }
.document-detail-hero-client h1 { margin: 9px 0 7px; font-size: clamp(2rem, 4vw, 3rem); }
.document-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; margin-top: 18px; align-items: start; }
.document-detail-main { display: grid; gap: 18px; }
.document-detail-aside { display: grid; gap: 18px; position: sticky; top: 104px; }
.client-document-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.client-comment-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.client-comment-form button { margin-top: 14px; }
.approval-action-panel p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.approval-buttons { display: grid; gap: 9px; margin-top: 14px; }
.document-security-note p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }

@media (max-width: 1080px) {
    .admin-grid-two, .repository-admin-grid, .document-project-grid, .repository-client-grid { grid-template-columns: 1fr; }
    .document-detail-layout { grid-template-columns: 1fr; }
    .document-detail-aside { position: static; }
}

@media (max-width: 760px) {
    .document-metadata-grid, .client-document-metadata { grid-template-columns: 1fr; }
    .client-document-card { grid-template-columns: 46px minmax(0, 1fr); }
    .document-file-icon { width: 46px; height: 46px; }
    .client-document-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .document-detail-hero-client, .document-module-hero { display: flex; flex-direction: column; align-items: flex-start; }
    .repository-admin-card { flex-direction: column; }
    .version-row { flex-direction: column; }
}

/* Módulo de indicadores y tableros */
.indicator-admin-actions { gap: 10px; flex-wrap: wrap; }
.indicator-project-selector { margin-bottom: 18px; }
.indicator-project-selector form,
.indicator-context-form { display: grid; grid-template-columns: minmax(240px, 1.6fr) minmax(220px, 1fr); gap: 16px; align-items: end; }
.indicator-project-selector label,
.indicator-context-form label,
.dashboard-filter-form label { margin-top: 0; }
.indicator-project-summary { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 18px; }
.indicator-project-summary h2 { margin: 6px 0; }
.indicator-summary-counts { display: flex; gap: 12px; flex-wrap: wrap; }
.indicator-summary-counts span { min-width: 92px; padding: 13px 16px; border-radius: 12px; background: var(--soft); color: var(--muted); text-align: center; }
.indicator-summary-counts strong { display: block; color: var(--ink); font-size: 1.45rem; }
.dashboard-admin-list { display: grid; gap: 12px; }
.dashboard-admin-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #fbfdfc; }
.dashboard-admin-card.selected { border-color: rgba(8,127,107,.55); box-shadow: 0 0 0 3px rgba(8,127,107,.08); }
.dashboard-admin-card h3 { margin: 10px 0 6px; }
.dashboard-admin-card p { margin: 0 0 7px; color: var(--muted); }
.dashboard-admin-card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dashboard-admin-card-actions form { margin: 0; }
.check-stack { display: grid; gap: 10px; margin-top: 18px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.check-row input { width: auto; }
[data-fixed-site-field][hidden] { display: none; }
.readonly-field { min-height: 48px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: #f5f8f7; color: var(--muted); }

.indicator-load-hero,
.indicator-module-hero { padding: clamp(25px, 4vw, 42px); border-radius: 22px; background: linear-gradient(125deg, #082b34, #0d615a); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 28px; box-shadow: 0 16px 38px rgba(13,36,45,.12); }
.indicator-load-hero h1,
.indicator-module-hero h1 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 3.2rem); }
.indicator-load-hero p:not(.eyebrow),
.indicator-module-hero p:not(.eyebrow) { margin: 0; color: #d6e9e6; line-height: 1.6; max-width: 760px; }
.indicator-load-hero .button-secondary,
.indicator-module-hero .button-secondary,
.fullscreen-dashboard-header .button-secondary { border-color: rgba(255,255,255,.38); color: #fff; background: rgba(255,255,255,.08); }
.indicator-load-hero .button-secondary:hover,
.indicator-module-hero .button-secondary:hover,
.fullscreen-dashboard-header .button-secondary:hover { background: rgba(255,255,255,.16); }
.indicator-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.indicator-hero-meta span { padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.1); color: #eaf5f2; font-size: .84rem; }
.indicator-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; min-width: max-content; }
.indicator-context-panel { margin: 18px 0; }
.indicator-value-form-panel { margin-top: 18px; }
.indicator-value-form-panel form { max-width: 960px; }

.indicator-project-tabs { margin-bottom: 18px; }
.dashboard-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.dashboard-switcher a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); text-decoration: none; font-weight: 800; }
.dashboard-switcher a:hover,
.dashboard-switcher a.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.dashboard-filter-panel { margin: 18px 0; padding-top: 18px; padding-bottom: 15px; }
.dashboard-filter-form { display: grid; grid-template-columns: minmax(190px, 1.35fr) minmax(150px, .8fr) minmax(150px, .8fr) auto; gap: 12px; align-items: end; }
.dashboard-filter-action button { min-height: 48px; }
.dashboard-updated { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }
.dashboard-updated strong { color: var(--ink); }

.dashboard-widget-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dashboard-widget { grid-column: span 4; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 28px rgba(13,36,45,.065); overflow: hidden; display: flex; flex-direction: column; min-height: 270px; }
.dashboard-widget-small { grid-column: span 3; }
.dashboard-widget-medium { grid-column: span 4; }
.dashboard-widget-large { grid-column: span 6; }
.dashboard-widget-full { grid-column: 1 / -1; }
.dashboard-widget-header { padding: 20px 20px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dashboard-widget-header h2 { margin: 6px 0 0; font-size: 1.12rem; }
.indicator-quality { flex: 0 0 auto; border-radius: 999px; padding: 6px 9px; font-size: .7rem; font-weight: 900; }
.quality-verified { background: var(--success-bg); color: var(--success); }
.quality-estimated { background: #eef3ff; color: #355a8a; }
.quality-pending { background: #fff4df; color: #926017; }
.dashboard-widget-body { flex: 1; padding: 10px 20px 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.dashboard-kpi-value { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.dashboard-kpi-caption { margin-top: 10px; color: var(--muted); }
.dashboard-widget-meta { padding: 12px 20px 16px; border-top: 1px solid #edf2f0; color: var(--muted); font-size: .77rem; display: flex; gap: 8px 16px; flex-wrap: wrap; }
.dashboard-widget-empty { min-height: 145px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.dashboard-widget-empty .empty-symbol { font-size: 1.8rem; color: #7ea79e; }
.dashboard-widget-empty p { margin: 6px 0 0; }
.indicator-progress-track { height: 12px; margin-top: 22px; background: #e7efed; border-radius: 999px; overflow: hidden; }
.indicator-progress-bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #31a98f); }
.dashboard-chart { width: 100%; height: 260px; display: block; }
.dashboard-mini-table-wrap { overflow-x: auto; }
.dashboard-mini-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.dashboard-mini-table th,
.dashboard-mini-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid #e7eeec; }
.dashboard-mini-table th { color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .04em; }
.dashboard-loading-card { align-items: center; justify-content: center; color: var(--muted); min-height: 250px; }
.dashboard-loader { width: 34px; height: 34px; border: 4px solid #dceae6; border-top-color: var(--teal); border-radius: 50%; animation: dashboard-spin .8s linear infinite; }
.dashboard-loading-card p { margin: 12px 18px 0; text-align: center; }
@keyframes dashboard-spin { to { transform: rotate(360deg); } }
.dashboard-fetch-error { grid-column: 1 / -1; padding: 26px; border: 1px solid #f0c5c5; border-radius: 16px; background: var(--danger-bg); color: var(--danger); }
.dashboard-fetch-error p { margin: 7px 0 0; }
.dashboard-empty-placeholder { grid-column: 1 / -1; }
.dashboard-more-link { margin-top: 18px; display: flex; justify-content: center; }

.fullscreen-dashboard-page { min-height: 100vh; background: #edf3f1; }
.fullscreen-dashboard-header { min-height: 112px; padding: 20px clamp(20px, 3vw, 48px); background: linear-gradient(115deg, #061c25, #0a4c4b); color: #fff; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.fullscreen-brand { display: flex; flex-direction: column; color: #fff; text-decoration: none; }
.fullscreen-brand strong { letter-spacing: .04em; }
.fullscreen-brand small { margin-top: 5px; color: #a9c8c4; }
.fullscreen-dashboard-title { text-align: center; }
.fullscreen-dashboard-title h1 { margin: 5px 0; font-size: clamp(1.6rem, 3vw, 2.55rem); }
.fullscreen-dashboard-title span { color: #c8dfdc; }
.fullscreen-dashboard-main { padding: 22px clamp(18px, 3vw, 48px) 50px; }
.fullscreen-filter-bar { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.fullscreen-filter-bar .dashboard-filter-form { flex: 1; }
.fullscreen-filter-bar .dashboard-updated { white-space: nowrap; }
.fullscreen-widget-grid .dashboard-widget { min-height: 310px; }
.fullscreen-widget-grid .dashboard-chart { height: 310px; }

@media (max-width: 1180px) {
    .dashboard-widget-small { grid-column: span 4; }
    .dashboard-widget-medium { grid-column: span 6; }
    .dashboard-widget-large { grid-column: span 6; }
    .fullscreen-dashboard-header { grid-template-columns: 180px minmax(0, 1fr) auto; }
}

@media (max-width: 900px) {
    .indicator-project-selector form,
    .indicator-context-form,
    .dashboard-filter-form { grid-template-columns: 1fr 1fr; }
    .dashboard-filter-action { align-self: end; }
    .dashboard-filter-action button { width: 100%; }
    .dashboard-widget-small,
    .dashboard-widget-medium,
    .dashboard-widget-large { grid-column: span 6; }
    .indicator-project-summary,
    .indicator-module-hero,
    .indicator-load-hero { align-items: flex-start; flex-direction: column; }
    .indicator-hero-actions { justify-content: flex-start; min-width: 0; }
    .fullscreen-dashboard-header { grid-template-columns: 1fr auto; }
    .fullscreen-dashboard-title { grid-column: 1 / -1; grid-row: 2; text-align: left; }
    .fullscreen-filter-bar { display: block; }
    .fullscreen-filter-bar .dashboard-updated { margin-top: 14px; white-space: normal; }
}

@media (max-width: 620px) {
    .indicator-project-selector form,
    .indicator-context-form,
    .dashboard-filter-form { grid-template-columns: 1fr; }
    .dashboard-admin-card { align-items: flex-start; flex-direction: column; }
    .dashboard-widget-small,
    .dashboard-widget-medium,
    .dashboard-widget-large,
    .dashboard-widget-full { grid-column: 1 / -1; }
    .dashboard-widget { min-height: 240px; }
    .dashboard-chart { height: 230px; }
    .indicator-summary-counts { width: 100%; }
    .indicator-summary-counts span { flex: 1; }
    .indicator-hero-actions { width: 100%; }
    .indicator-hero-actions .button-link { width: 100%; }
    .fullscreen-dashboard-header { display: flex; flex-wrap: wrap; }
    .fullscreen-dashboard-title { order: 3; width: 100%; }
    .fullscreen-back { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-loader { animation: none; }
}
.dashboard-widget-grid > .dashboard-widget-empty { grid-column: 1 / -1; min-height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.admin-context-selector { display: grid; grid-template-columns: minmax(260px, 720px); margin-bottom: 18px; }
.admin-context-selector label { margin-top: 0; }

/* Comunicación y mensajes */
.client-nav a { position: relative; }
.nav-unread-badge {
    min-width: 23px;
    height: 23px;
    margin-left: auto;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f3c96b;
    color: #17313a;
    font-size: .7rem;
    font-weight: 950;
    line-height: 1;
}
.nav-unread-badge[hidden] { display: none; }
.admin-nav-with-badge { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-nav-with-badge .nav-unread-badge { margin-left: 0; }
.future-module-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-help { display: block; margin: 7px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; font-weight: 500; }
.full-width { width: 100%; }
.client-empty-state.compact-empty { padding: 28px 22px; }
.compact-list { margin: 8px 0 0; padding-left: 20px; gap: 4px; }

.messages-hero {
    padding: clamp(26px, 4vw, 42px);
    border-radius: 22px;
    background: linear-gradient(115deg, #06212b, #0a5550);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: 0 16px 40px rgba(7, 40, 48, .16);
}
.messages-hero h1 { margin: 8px 0; font-size: clamp(2rem, 4vw, 3.1rem); }
.messages-hero p:last-child { max-width: 720px; margin: 0; color: #d1e4e1; line-height: 1.65; }
.messages-hero .button-link { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.34); white-space: nowrap; }
.messages-hero .button-link:hover { background: rgba(255,255,255,.22); }

.message-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 18px 0; }
.message-stat-grid article { min-height: 112px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(13,36,45,.045); display: flex; flex-direction: column; justify-content: space-between; }
.message-stat-grid span { color: var(--muted); }
.message-stat-grid strong { margin-top: 10px; font-size: 2rem; }
.message-stat-grid .message-stat-unread { border-color: #d8bc72; background: #fffaf0; }

.message-compose-panel { margin-bottom: 18px; }
.message-project-picker { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 12px; align-items: end; padding: 16px; margin-bottom: 18px; border-radius: 13px; background: #f2f7f5; }
.message-project-picker label { margin: 0; }
.message-project-picker button { min-height: 48px; }
.message-compose-form > label { margin-top: 18px; }
.message-recipient-fieldset { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.message-recipient-fieldset legend { padding: 0 8px; font-weight: 850; }
.message-recipient-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 15px; }
.message-recipient-card { margin: 0; padding: 12px; border: 1px solid #d7e3df; border-radius: 12px; background: #fff; display: grid; grid-template-columns: auto 40px minmax(0, 1fr); gap: 10px; align-items: center; cursor: pointer; }
.message-recipient-card:hover { border-color: #92b9af; background: #f7fbfa; }
.message-recipient-card input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.message-recipient-card > span:last-child { min-width: 0; display: grid; gap: 3px; }
.message-recipient-card small { color: var(--muted); font-size: .76rem; font-weight: 500; overflow-wrap: anywhere; }

.message-inbox-panel { margin-top: 18px; }
.message-inbox-heading { align-items: center; }
.message-box-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.message-box-tabs a { padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 850; }
.message-box-tabs a:hover, .message-box-tabs a.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.message-filter-form { display: grid; grid-template-columns: minmax(190px, 1.2fr) minmax(210px, 1fr) minmax(140px, .55fr) auto; gap: 12px; align-items: end; margin-bottom: 18px; padding: 15px; border-radius: 13px; background: #f3f7f6; }
.message-filter-form label { margin: 0; }
.message-filter-form button { min-height: 48px; }
.message-thread-list { display: grid; }
.message-thread-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 18px 8px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.message-thread-card:first-child { border-top: 0; }
.message-thread-card:hover { margin-inline: -8px; padding-inline: 16px; border-radius: 13px; background: #f3f8f6; }
.message-thread-card.is-unread { background: #f2faf7; }
.message-thread-card.is-unread:hover { background: #e9f6f1; }
.message-thread-icon { width: 34px; height: 34px; border-radius: 50%; background: #e7f2ef; color: var(--teal); display: grid; place-items: center; font-size: .82rem; }
.message-thread-card.is-unread .message-thread-icon { background: var(--teal); color: #fff; }
.message-thread-copy { min-width: 0; }
.message-thread-title-row { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.message-thread-title-row h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.message-thread-title-row time { flex: 0 0 auto; color: var(--muted); font-size: .76rem; }
.message-thread-badges { display: flex; gap: 7px; flex-wrap: wrap; margin: 9px 0; }
.message-unread-pill { padding: 5px 8px; border-radius: 999px; background: #f5d98e; color: #5f4714; font-size: .7rem; font-weight: 900; }
.message-thread-copy p { margin: 0 0 7px; color: #36515a; line-height: 1.48; }
.message-thread-copy > small { color: var(--muted); }

.conversation-header { padding: 25px; border-radius: 18px; border: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 22px; box-shadow: 0 9px 28px rgba(13,36,45,.05); }
.conversation-header h1 { margin: 7px 0; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.conversation-header > div:first-child > p:last-child { margin: 0; color: var(--muted); }
.conversation-header-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.conversation-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.conversation-actions form { margin: 0; }
.conversation-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 18px; margin-top: 18px; align-items: start; }
.conversation-panel { padding: 0; overflow: hidden; }
.conversation-stream { min-height: 420px; max-height: 610px; padding: 24px; overflow-y: auto; background: linear-gradient(180deg, #f7faf9, #eef5f3); scroll-behavior: smooth; }
.message-bubble-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.message-bubble-row.is-own { flex-direction: row-reverse; }
.message-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #dcebe7; color: var(--teal-dark); display: grid; place-items: center; font-size: .74rem; font-weight: 900; }
.message-bubble-row.is-own .message-avatar { background: #0d8d76; color: #fff; }
.message-bubble { width: min(78%, 760px); padding: 13px 15px; border: 1px solid #d8e4e1; border-radius: 15px 15px 15px 4px; background: #fff; box-shadow: 0 5px 16px rgba(13,36,45,.045); }
.message-bubble-row.is-own .message-bubble { border-color: #9fcec2; border-radius: 15px 15px 4px 15px; background: #e7f6f1; }
.message-bubble header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.message-bubble header strong { font-size: .88rem; }
.message-bubble header small { color: var(--muted); font-size: .69rem; text-align: right; }
.message-bubble p { margin: 0; color: #26434c; line-height: 1.58; overflow-wrap: anywhere; }
.message-reply-form { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: #fff; }
.message-reply-form label { margin: 0 0 8px; }
.message-reply-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 12px; }
.message-reply-actions small { color: var(--muted); line-height: 1.4; }
.conversation-closed-notice { padding: 22px 24px; border-top: 1px solid var(--line); background: #f8f5ee; }
.conversation-closed-notice p { margin: 6px 0 0; color: var(--muted); }
.conversation-side-panel { position: sticky; top: 20px; }
.conversation-side-note { margin: 18px 0; padding: 15px; border-radius: 12px; background: #eef5f3; }
.conversation-side-note p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }

@media (max-width: 1050px) {
    .message-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .conversation-layout { grid-template-columns: 1fr; }
    .conversation-side-panel { position: static; }
}

@media (max-width: 820px) {
    .messages-hero, .conversation-header { align-items: flex-start; flex-direction: column; }
    .conversation-actions { justify-content: flex-start; }
    .message-filter-form { grid-template-columns: 1fr 1fr; }
    .message-filter-form button { width: 100%; }
    .message-recipient-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .message-stat-grid { grid-template-columns: 1fr; }
    .message-project-picker, .message-filter-form { grid-template-columns: 1fr; }
    .message-project-picker button { width: 100%; }
    .message-inbox-heading { align-items: flex-start; flex-direction: column; }
    .message-thread-card { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
    .message-thread-icon { width: 30px; height: 30px; }
    .message-thread-title-row { display: block; }
    .message-thread-title-row time { display: block; margin-top: 5px; }
    .conversation-stream { min-height: 340px; max-height: 520px; padding: 16px 12px; }
    .message-bubble { width: 88%; }
    .message-bubble header { display: grid; gap: 3px; }
    .message-bubble header small { text-align: left; }
    .message-reply-form { padding: 17px 15px; }
    .message-reply-actions { align-items: stretch; flex-direction: column; }
    .message-reply-actions button { width: 100%; }
    .conversation-actions { width: 100%; }
    .conversation-actions form, .conversation-actions button { width: 100%; }
}

/* =========================================================
   Incremento 007: identidad visual, perfil e inicio ejecutivo
   ========================================================= */
:root {
    --status-ok: #0a8f72;
    --status-ok-bg: #e5f7f1;
    --status-info: #287ca7;
    --status-info-bg: #eaf4fa;
    --status-attention: #a96b00;
    --status-attention-bg: #fff3d7;
    --status-critical: #b33a3a;
    --status-critical-bg: #fdeaea;
    --status-complete: #395c8f;
    --status-complete-bg: #e9eff9;
    --status-neutral: #66737a;
    --status-neutral-bg: #eef1f2;
}

.badge-status-ok { background: var(--status-ok-bg); color: #06705a; border: 1px solid #b9e6d9; }
.badge-status-info { background: var(--status-info-bg); color: #236887; border: 1px solid #c5deec; }
.badge-status-attention { background: var(--status-attention-bg); color: #835300; border: 1px solid #f0d28d; }
.badge-status-critical { background: var(--status-critical-bg); color: #982d2d; border: 1px solid #efbcbc; }
.badge-status-complete { background: var(--status-complete-bg); color: #2e507d; border: 1px solid #cbd8ec; }
.badge-status-neutral { background: var(--status-neutral-bg); color: #536168; border: 1px solid #d9dfe1; }

.auth-brand-logo { width: min(320px, 100%); min-height: 62px; display: flex; align-items: center; margin-bottom: 26px; }
.auth-brand-logo img { display: block; max-width: 100%; max-height: 84px; object-fit: contain; object-position: left center; }
.auth-brand-logo strong { color: #fff; font-size: 1.45rem; letter-spacing: .05em; }

.brand-primary { min-height: 38px; display: flex; align-items: center; }
.brand-primary img { display: block; max-width: 190px; max-height: 52px; object-fit: contain; object-position: left center; }
.client-brand .brand-primary img { filter: none; }
.admin-brand .brand-primary img { filter: none; }
.sidebar-client-identity { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 850; }
.sidebar-client-identity img { width: 40px; height: 40px; padding: 4px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.92); }
.client-topbar-context { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-client-logo { width: 44px; height: 44px; padding: 4px; object-fit: contain; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.client-profile-link { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.client-user-copy { display: grid; gap: 2px; text-align: left; }
.client-user-copy small { color: var(--muted); font-size: .75rem; }
.client-avatar, .admin-mini-avatar, .portal-avatar, .team-avatar, .message-avatar, .recent-message-avatar {
    overflow: hidden;
}
.client-avatar img, .admin-mini-avatar img, .portal-avatar img, .team-avatar img, .message-avatar img, .recent-message-avatar img {
    width: 100%; height: 100%; display: block; object-fit: cover;
}
.admin-user-mini { display: flex; align-items: center; gap: 10px; }
.admin-user-mini > span:last-child { min-width: 0; display: grid; gap: 2px; }
.admin-user-mini small { overflow-wrap: anywhere; }
.admin-mini-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-weight: 900; }
.admin-profile-shortcut { padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 800; background: #fff; }

.impersonation-banner { position: sticky; top: 0; z-index: 1200; display: flex; justify-content: center; align-items: center; gap: 20px; padding: 9px 18px; background: #fff1c9; color: #664700; border-bottom: 1px solid #e2c46e; }
.impersonation-banner form { margin: 0; }
.impersonation-banner button { width: auto; padding: 7px 12px; background: #6b5000; color: #fff; }

.media-preview { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #f7faf9; }
.media-preview img { width: 96px; height: 72px; padding: 4px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.entity-image, .entity-logo, .entity-photo { width: 54px; height: 42px; padding: 3px; object-fit: contain; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.entity-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; padding: 0; }
.identity-preview-card { display: grid; gap: 18px; max-width: 580px; }
.identity-preview-card .brand-demo { min-height: 100px; padding: 20px; display: flex; align-items: center; background: var(--deep); border-radius: 16px; }
.identity-preview-card .brand-demo img { max-width: 280px; max-height: 78px; object-fit: contain; }
.profile-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.profile-card { text-align: center; }
.profile-large-avatar { width: 128px; height: 128px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #dcebe7; color: var(--teal-dark); font-size: 2rem; font-weight: 900; }
.profile-large-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-form-stack { display: grid; gap: 18px; }

.dashboard-welcome { margin-bottom: 18px; }
.dashboard-welcome h1 { margin: 7px 0 4px; font-size: clamp(1.85rem, 3.8vw, 2.75rem); line-height: 1.05; }
.dashboard-welcome p:last-child { margin: 0; color: var(--muted); }
.dashboard-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.dashboard-kpi-card { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(13,36,45,.045); display: grid; align-content: space-between; gap: 8px; }
.dashboard-kpi-label { color: #344b55; font-size: .83rem; font-weight: 800; }
.dashboard-kpi-main { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.dashboard-kpi-main > strong { font-size: 2rem; line-height: 1; }
.dashboard-kpi-card small { color: var(--muted); }
.dashboard-progress-ring { --progress: 0; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--progress) * 1%), #e6eeec 0); position: relative; }
.dashboard-progress-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.dashboard-mini-bars { width: 98px; height: 42px; display: flex; align-items: end; gap: 4px; }
.dashboard-mini-bars i { flex: 1; height: 25%; border-radius: 3px 3px 0 0; background: #55b9a6; }
.dashboard-mini-bars i:nth-child(2) { height: 45%; } .dashboard-mini-bars i:nth-child(3) { height: 38%; } .dashboard-mini-bars i:nth-child(4) { height: 62%; } .dashboard-mini-bars i:nth-child(5) { height: 50%; } .dashboard-mini-bars i:nth-child(6) { height: 82%; }

.attention-strip { margin-bottom: 22px; padding: 14px 16px; border: 1px solid #edd9a0; border-radius: 14px; background: #fffdf7; box-shadow: 0 7px 20px rgba(82,62,9,.035); }
.attention-strip-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 10px; font-size: .85rem; }
.attention-strip-heading > div { display: flex; align-items: center; gap: 8px; }
.attention-strip-heading > span { color: var(--muted); font-size: .77rem; }
.attention-icon, .attention-item-symbol { border-radius: 50%; display: grid; place-items: center; background: #f4c13c; color: #684800; font-weight: 950; }
.attention-icon { width: 24px; height: 24px; }
.attention-items { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 2px; }
.attention-item { min-width: 180px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; color: var(--ink); text-decoration: none; }
.attention-item-symbol { width: 24px; height: 24px; margin-top: 2px; }
.attention-item > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.attention-item strong { font-size: .76rem; line-height: 1.35; }
.attention-item small, .attention-item em { color: var(--muted); font-size: .68rem; font-style: normal; }
.attention-item .badge { grid-column: 2; justify-self: start; font-size: .62rem; }
.attention-empty { display: flex; align-items: center; gap: 9px; color: #42635a; }
.attention-empty span { color: var(--status-ok); font-weight: 900; }
.attention-empty p { margin: 0; font-size: .82rem; }

.dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, .65fr); gap: 18px; align-items: start; }
.dashboard-section-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.dashboard-section-title h2 { margin: 0; font-size: 1.15rem; }
.dashboard-section-title a { font-size: .76rem; font-weight: 850; text-decoration: none; }
.dashboard-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.dashboard-project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(13,36,45,.045); }
.dashboard-project-image { height: 126px; display: block; position: relative; overflow: hidden; background: linear-gradient(135deg, #dcebe7, #b9d9d1); color: var(--teal-dark); text-decoration: none; }
.dashboard-project-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.dashboard-project-image:hover img { transform: scale(1.035); }
.dashboard-project-image > span { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2rem; font-weight: 900; }
.dashboard-project-image .badge { position: absolute; top: 10px; right: 10px; }
.dashboard-project-body { padding: 15px; }
.dashboard-project-body h3 { min-height: 44px; margin: 5px 0 3px; font-size: 1rem; line-height: 1.35; }
.dashboard-project-body h3 a { color: var(--ink); text-decoration: none; }
.dashboard-project-body > small { display: block; color: var(--muted); margin-bottom: 10px; }
.dashboard-next-milestone { display: grid; gap: 3px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.dashboard-next-milestone span, .dashboard-next-milestone small { color: var(--muted); font-size: .7rem; }
.dashboard-next-milestone strong { font-size: .78rem; line-height: 1.4; }
.dashboard-side-column { display: grid; gap: 14px; }
.dashboard-side-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(13,36,45,.04); }
.dashboard-side-card h2 { margin: 0 0 12px; font-size: 1rem; }
.recent-activity-list { display: grid; margin-bottom: 14px; }
.recent-activity-list > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.recent-activity-list > div:first-child { border-top: 0; padding-top: 0; }
.activity-symbol { color: var(--teal); font-weight: 900; }
.recent-activity-list > div > span:last-child { display: grid; gap: 2px; }
.recent-activity-list strong { font-size: .78rem; }
.recent-activity-list small, .recent-activity-list em { color: var(--muted); font-size: .69rem; font-style: normal; }
.contact-card { display: grid; gap: 5px; }
.contact-card h2, .contact-card p { margin: 0; }
.contact-card p { color: var(--muted); font-size: .78rem; }
.contact-card a { margin-top: 5px; font-size: .78rem; overflow-wrap: anywhere; }

.dashboard-modules-section { margin-top: 26px; }
.dashboard-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(280px, 1.2fr); gap: 15px; }
.dashboard-module-card { min-height: 210px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 8px 24px rgba(13,36,45,.04); display: flex; flex-direction: column; align-items: flex-start; }
a.dashboard-module-card:hover { transform: translateY(-2px); border-color: #a9cdc4; box-shadow: 0 12px 28px rgba(13,36,45,.075); }
.module-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #e8f4f1; color: var(--teal); font-weight: 900; }
.dashboard-module-card h3 { margin: 14px 0 10px; font-size: 1rem; }
.dashboard-module-card > strong { font-size: 2rem; }
.dashboard-module-card > p { margin: 4px 0; color: #36515a; }
.dashboard-module-card > small { margin-top: auto; color: var(--muted); }
.dashboard-module-card .module-text-value { font-size: 1rem; line-height: 1.4; }
.dashboard-messages-card { min-height: 280px; }
.messages-card-heading { display: flex; gap: 11px; align-items: center; }
.messages-card-heading h3 { margin: 0 0 3px; }
.messages-card-heading p { margin: 0; color: var(--muted); font-size: .75rem; }
.dashboard-recent-messages { width: 100%; display: grid; gap: 7px; margin: 13px 0; }
.dashboard-recent-messages > a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 9px; padding: 8px; border: 1px solid #e2e9e7; border-radius: 10px; background: #fbfcfc; color: var(--ink); text-decoration: none; }
.recent-message-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #dcebe7; color: var(--teal-dark); font-size: .72rem; font-weight: 900; }
.dashboard-recent-messages > a > span:last-child { min-width: 0; display: grid; gap: 2px; }
.dashboard-recent-messages strong { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-recent-messages strong small { color: var(--muted); font-weight: 600; }
.dashboard-recent-messages p { margin: 0; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-recent-messages em { color: var(--muted); font-size: .64rem; font-style: normal; }
.dashboard-messages-card .button-link { margin-top: auto; }

.document-project-card.has-thumbnail { grid-template-columns: 92px minmax(0, 1fr) auto auto; align-items: center; }
.document-project-thumb { width: 92px; height: 70px; overflow: hidden; border-radius: 12px; background: #e4f0ed; display: grid; place-items: center; }
.document-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.document-project-copy { min-width: 0; }
.document-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.document-list-header, .document-list-row { display: grid; grid-template-columns: minmax(260px, 1.55fr) minmax(150px, .75fr) minmax(170px, .9fr) minmax(150px, .72fr) minmax(150px, .65fr); gap: 12px; align-items: center; }
.document-list-header { padding: 12px 15px; background: #f0f5f3; color: #52646c; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.document-list-row { padding: 14px 15px; border-top: 1px solid var(--line); background: #fff; }
.document-list-row:first-child { border-top: 0; }
.document-list-row:hover { background: #fbfdfc; }
.document-name-cell { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; align-items: center; min-width: 0; }
.document-name-cell .document-file-icon { width: 44px; height: 44px; font-size: .63rem; }
.document-name-cell > span:last-child, .document-list-row > div { min-width: 0; }
.document-name-cell strong { display: block; margin-bottom: 3px; }
.document-name-cell small, .document-list-row > div > small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.document-status-cell { display: flex; gap: 5px; flex-wrap: wrap; }
.document-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.message-avatar img, .team-avatar img { border-radius: inherit; }

@media (max-width: 1180px) {
    .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .attention-items { grid-template-columns: repeat(5, minmax(190px, 1fr)); }
    .document-list-header { display: none; }
    .document-list-row { grid-template-columns: minmax(250px, 1fr) minmax(170px, .7fr) minmax(190px, .8fr); }
    .document-list-row > div:nth-child(4), .document-list-row > div:nth-child(5) { padding-left: 55px; }
}

@media (max-width: 900px) {
    .dashboard-main-grid { grid-template-columns: 1fr; }
    .dashboard-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-layout { grid-template-columns: 1fr; }
    .document-project-card.has-thumbnail { grid-template-columns: 76px minmax(0, 1fr); }
    .document-project-card.has-thumbnail .document-card-counts, .document-project-card.has-thumbnail > .button-link { grid-column: 2; }
    .document-project-thumb { width: 76px; height: 64px; }
}

@media (max-width: 680px) {
    .dashboard-kpi-grid, .dashboard-project-grid, .dashboard-module-grid, .dashboard-side-column { grid-template-columns: 1fr; }
    .dashboard-kpi-card { min-height: 118px; }
    .dashboard-project-image { height: 170px; }
    .attention-strip-heading { align-items: flex-start; flex-direction: column; }
    .client-topbar-context .eyebrow, .client-user-copy { display: none; }
    .topbar-client-logo { width: 38px; height: 38px; }
    .impersonation-banner { align-items: stretch; flex-direction: column; gap: 7px; }
    .impersonation-banner button { width: 100%; }
    .document-project-card.has-thumbnail { grid-template-columns: 64px minmax(0, 1fr); }
    .document-project-thumb { width: 64px; height: 58px; }
    .document-list-row { grid-template-columns: 1fr; gap: 10px; padding: 15px; }
    .document-list-row > div:not(.document-name-cell) { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; padding-left: 0; }
    .document-list-row > div:not(.document-name-cell)::before { content: attr(data-label); color: var(--muted); font-size: .67rem; font-weight: 850; text-transform: uppercase; }
    .document-status-cell { display: grid; }
    .document-row-actions { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
    .auth-brand-logo { min-height: 48px; }
}
.profile-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.profile-hero h1 { margin: 6px 0; }
.profile-hero p:last-child { margin: 0; color: var(--muted); }
.profile-avatar-large { width: 112px; height: 112px; flex: 0 0 112px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #dcebe7; color: var(--teal-dark); font-size: 1.8rem; font-weight: 900; }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.media-upload-row { display: flex; align-items: center; gap: 16px; }
.media-preview-avatar { width: 78px; height: 78px; flex: 0 0 78px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 900; }
.media-preview-avatar img { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; object-fit: cover; }
.table-entity-with-image { display: flex; align-items: center; gap: 10px; }
.table-entity-with-image img, .table-image-fallback { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 9px; object-fit: contain; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; font-size: .72rem; font-weight: 900; }
.table-entity-with-image .round { border-radius: 50%; object-fit: cover; }
.table-entity-with-image > span:last-child { min-width: 0; display: grid; gap: 3px; }
.table-entity-with-image small { color: var(--muted); overflow-wrap: anywhere; }
.impersonate-details { position: relative; }
.impersonate-details summary { cursor: pointer; color: var(--teal); font-weight: 800; }
.impersonate-details form { position: absolute; right: 0; z-index: 20; width: min(310px, 80vw); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.impersonate-details label { margin: 0 0 8px; font-size: .78rem; }
.impersonate-details small { display: block; margin: 8px 0; color: var(--muted); }
.impersonate-details button { width: 100%; }
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } .profile-hero { align-items: flex-start; } .profile-avatar-large { width: 88px; height: 88px; flex-basis: 88px; } .media-upload-row { align-items: flex-start; flex-direction: column; } }
.schedule-card-thumbnail { height: 112px; margin: -1px -1px 14px; display: grid; place-items: center; overflow: hidden; border-radius: 15px 15px 0 0; background: #e4f0ed; color: var(--teal); text-decoration: none; }
.schedule-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.schedule-card-thumbnail span { font-size: 1.8rem; font-weight: 900; }
.identity-settings-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: center; }
.identity-preview { min-height: 150px; padding: 24px; border-radius: 16px; display: grid; place-items: center; text-align: center; }
.identity-preview-dark { background: var(--deep); color: #fff; }
.identity-preview img { max-width: 100%; max-height: 100px; object-fit: contain; }
.identity-preview small { display: block; margin-top: 7px; opacity: .72; }
.identity-location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.identity-location-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfa; }
.identity-location-grid p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.media-preview-logo { width: 126px; min-height: 76px; flex: 0 0 126px; }
.media-preview-card { width: 132px; min-height: 86px; flex: 0 0 132px; }
.inline-remove-media { margin-top: 12px; }
@media (max-width: 850px) { .identity-settings-grid { grid-template-columns: 1fr; } .identity-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .identity-location-grid { grid-template-columns: 1fr; } }

/* Incremento 009: tarjetas verticales del resumen de Documentos */
.document-project-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    align-items: stretch;
    justify-content: start;
    gap: 22px;
}
.document-project-card.has-thumbnail.document-project-card-vertical {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    min-height: 100%;
}
.document-project-card-vertical .document-project-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    background: linear-gradient(135deg, #e4f0ed, #d5e7e2);
}
.document-project-card-vertical .document-project-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.document-project-card-vertical .document-project-thumb > span {
    font-size: 2rem;
    color: var(--teal-dark);
}
.document-project-card-vertical .document-project-copy {
    padding: 20px 20px 13px;
}
.document-project-card-vertical .document-project-copy .eyebrow {
    margin: 0 0 8px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.document-project-card-vertical .document-project-copy h2 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}
.document-project-code {
    margin: 8px 0 0;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .76rem;
    overflow-wrap: anywhere;
}
.document-project-card-vertical .document-card-counts {
    padding: 0 20px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.document-project-card-vertical .document-card-counts span {
    min-width: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border-radius: 11px;
    background: #f1f6f4;
}
.document-project-card-vertical .document-card-counts strong {
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1;
}
.document-project-card-vertical .document-card-counts small {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.3;
}
.document-project-card-vertical .document-card-counts .count-alert {
    grid-column: 1 / -1;
    background: #fff3dc;
}
.document-project-card-vertical .document-card-counts .count-alert strong,
.document-project-card-vertical .document-card-counts .count-alert small {
    color: #815b0e;
}
.document-project-card-vertical .document-project-open {
    width: auto;
    margin: auto 20px 20px;
    justify-content: center;
    text-align: center;
}
@media (max-width: 760px) {
    .document-project-grid {
        grid-template-columns: 1fr;
    }
    .document-project-card-vertical .document-project-thumb {
        aspect-ratio: 16 / 8.8;
    }
}

/* Incremento 010: dashboards HTML autocontenidos */
.html-dashboard-security-note {
    display: grid;
    gap: 5px;
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid #b9ddd6;
    border-left: 5px solid var(--teal);
    border-radius: 12px;
    background: #f1faf8;
}
.html-dashboard-security-note.compact { margin-bottom: 20px; }
.html-dashboard-security-note strong { color: var(--ink); }
.html-dashboard-security-note p { margin: 0; color: var(--muted); line-height: 1.55; }
.current-file-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3f6f6;
    color: var(--muted);
}
.html-dashboard-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.html-dashboard-admin-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}
.html-dashboard-admin-card.is-archived { opacity: .72; background: #f7f8f8; }
.html-dashboard-admin-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.html-dashboard-admin-card-top > div { display: flex; flex-wrap: wrap; gap: 6px; }
.html-dashboard-version {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf4f3;
    color: var(--teal-dark);
    font-size: .78rem;
    font-weight: 900;
}
.html-dashboard-admin-card h3 { margin: 16px 0 7px; font-size: 1.18rem; }
.html-dashboard-admin-card > p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.html-dashboard-file-meta {
    display: grid;
    gap: 9px;
    margin: auto 0 18px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
}
.html-dashboard-file-meta div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
.html-dashboard-file-meta dt { color: var(--muted); font-size: .8rem; font-weight: 800; }
.html-dashboard-file-meta dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: .88rem; }
.html-dashboard-admin-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}
.html-dashboard-admin-actions form { margin: 0; }

.html-dashboard-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 22px;
    background: linear-gradient(125deg, #082b34, #0d615a);
    color: #fff;
    box-shadow: 0 16px 38px rgba(13,36,45,.12);
}
.html-dashboard-portal-header h1 {
    margin: 7px 0 9px;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
}
.html-dashboard-portal-header > div > p:not(.eyebrow) {
    max-width: 820px;
    margin: 0;
    color: #d6e9e6;
    line-height: 1.6;
}
.html-dashboard-portal-header .button-secondary {
    flex: 0 0 auto;
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #fff;
}
.html-dashboard-portal-header .button-secondary:hover { background: rgba(255,255,255,.2); }
.html-dashboard-context-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 18px;
    color: #d6e9e6;
    font-size: .86rem;
}
.html-dashboard-context-meta span { display: inline-flex; gap: 5px; }
.html-dashboard-context-meta strong { color: #fff; }
.html-dashboard-project-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.html-dashboard-project-selector label { margin: 0; white-space: nowrap; }
.html-dashboard-project-selector select { margin: 0; min-width: min(520px, 100%); }
.html-dashboard-viewer-panel {
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(13,36,45,.07);
}
.html-dashboard-viewer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: #f8fbfa;
}
.html-dashboard-viewer-toolbar > div {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 1px 9px;
}
.html-dashboard-viewer-toolbar .status-dot {
    grid-row: 1 / span 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #25bf98;
    box-shadow: 0 0 0 5px rgba(37,191,152,.13);
}
.html-dashboard-viewer-toolbar strong { color: var(--ink); }
.html-dashboard-viewer-toolbar small,
.html-dashboard-viewer-toolbar > span { color: var(--muted); font-size: .8rem; }
.html-dashboard-frame {
    display: block;
    width: 100%;
    height: clamp(620px, 76vh, 980px);
    border: 0;
    background: #fff;
}

@media (max-width: 900px) {
    .html-dashboard-admin-grid { grid-template-columns: 1fr; }
    .html-dashboard-portal-header { align-items: flex-start; flex-direction: column; }
    .html-dashboard-project-selector { align-items: stretch; flex-direction: column; }
    .html-dashboard-project-selector select { min-width: 0; width: 100%; }
}

@media (max-width: 560px) {
    .html-dashboard-portal-header { border-radius: 16px; }
    .html-dashboard-context-meta { flex-direction: column; gap: 6px; }
    .html-dashboard-viewer-toolbar { align-items: flex-start; flex-direction: column; }
    .html-dashboard-frame { height: 72vh; min-height: 520px; }
    .html-dashboard-file-meta div { grid-template-columns: 1fr; gap: 2px; }
}

/* =========================================================
   Incremento 011 · Solicitudes de documentos de trabajo
   ========================================================= */
.work-request-panel { scroll-margin-top: 18px; }
.work-request-intro { margin: -5px 0 17px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.work-request-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.work-request-heading-actions > span { color: var(--muted); font-size: .77rem; font-weight: 800; }

.work-request-status-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.work-request-status-summary > span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fbfdfc; color: #40545d; font-size: .72rem; font-weight: 750; }
.work-request-status-summary strong { color: var(--ink); font-size: .8rem; }

.work-request-signal { width: 12px; height: 12px; flex: 0 0 12px; display: inline-block; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(20,45,54,.2); }
.work-request-signal-planned { background: #8a969b !important; color: #8a969b !important; }
.work-request-signal-pending { background: #e0ae24 !important; color: #e0ae24 !important; }
.work-request-signal-urgent { background: #c93e3e !important; color: #c93e3e !important; box-shadow: 0 0 0 2px rgba(201,62,62,.18); }
.work-request-signal-partial { background: #e47e22 !important; color: #e47e22 !important; }
.work-request-signal-incorrect { background: #9f2f4b !important; color: #9f2f4b !important; box-shadow: 0 0 0 2px rgba(159,47,75,.17); }
.work-request-signal-completed { background: #178b70 !important; color: #178b70 !important; }

.work-request-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.work-request-list-header,
.work-request-list-row { display: grid; grid-template-columns: minmax(270px, 1.55fr) minmax(175px, .85fr) minmax(135px, .62fr) minmax(165px, .78fr) minmax(210px, 1fr); gap: 12px; align-items: center; }
.work-request-list-header { padding: 12px 15px; background: #f0f5f3; color: #52646c; font-size: .69rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.work-request-list-row { position: relative; padding: 14px 15px; border-top: 1px solid var(--line); border-left: 4px solid transparent; background: #fff; }
.work-request-list-row:first-child { border-top: 0; }
.work-request-list-row:hover { background: #fbfdfc; }
.work-request-list-row.is-inactive { opacity: .57; filter: grayscale(.25); }
.work-request-row-urgent { border-left-color: #c93e3e; }
.work-request-row-incorrect { border-left-color: #9f2f4b; }
.work-request-row-partial { border-left-color: #e47e22; }
.work-request-row-pending { border-left-color: #e0ae24; }
.work-request-row-planned { border-left-color: #8a969b; }
.work-request-row-completed { border-left-color: #178b70; }
.work-request-name-cell { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; }
.work-request-name-cell .work-request-signal { margin-top: 4px; }
.work-request-name-cell strong { display: block; margin-bottom: 3px; line-height: 1.35; }
.work-request-name-cell small,
.work-request-list-row > div > small { display: block; color: var(--muted); font-size: .71rem; line-height: 1.45; }
.work-request-list-row > div { min-width: 0; }
.work-request-list-row > div > strong { display: block; margin-bottom: 3px; font-size: .77rem; }
.work-request-list-row > div:last-child { font-size: .75rem; line-height: 1.45; color: #40535b; }
.admin-work-request-header,
.admin-work-request-row { grid-template-columns: minmax(280px, 1.65fr) minmax(130px, .62fr) minmax(175px, .85fr) minmax(120px, .56fr) minmax(90px, .45fr); }
.work-request-form { max-width: none; }

.work-request-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.work-request-summary-grid article { min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; align-content: space-between; gap: 5px; box-shadow: 0 7px 20px rgba(13,36,45,.035); }
.work-request-summary-grid span { color: #40545d; font-size: .78rem; font-weight: 800; }
.work-request-summary-grid strong { font-size: 1.8rem; line-height: 1; }
.work-request-summary-grid small { color: var(--muted); line-height: 1.35; }
.work-request-summary-critical { border-color: #efc5c5 !important; background: #fffafa !important; }
.work-request-summary-critical strong { color: #a73535; }
.work-request-summary-complete { border-color: #c6e5dc !important; background: #fbfefd !important; }
.work-request-summary-complete strong { color: #14765f; }

.attention-item.is-work-request { padding: 7px; border: 1px solid #eee2bd; border-radius: 10px; background: rgba(255,255,255,.72); }
.attention-item-symbol.work-request-signal { width: 24px; height: 24px; margin-top: 2px; border: 6px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(20,45,54,.16); }
.attention-item.is-work-request .badge { margin-top: 2px; }

@media (max-width: 1180px) {
    .work-request-list-header { display: none; }
    .work-request-list-row,
    .admin-work-request-row { grid-template-columns: minmax(260px, 1.4fr) minmax(150px, .7fr) minmax(180px, .8fr); }
    .work-request-list-row > div:nth-child(4),
    .work-request-list-row > div:nth-child(5) { padding-left: 28px; }
}

@media (max-width: 900px) {
    .work-request-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work-request-heading-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
    .work-request-summary-grid { grid-template-columns: 1fr; }
    .work-request-list-row,
    .admin-work-request-row { grid-template-columns: 1fr; gap: 10px; padding: 15px 14px; }
    .work-request-list-row > div:not(.work-request-name-cell) { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px; align-items: start; padding-left: 28px; }
    .work-request-list-row > div:not(.work-request-name-cell)::before { content: attr(data-label); color: var(--muted); font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
    .work-request-list-row > div:nth-child(4),
    .work-request-list-row > div:nth-child(5) { padding-left: 28px; }
    .work-request-heading-actions { width: 100%; justify-content: space-between; }
}
.badge-work-planned { background: #edf1f2; color: #59666b; border: 1px solid #d8dfe1; }
.badge-work-pending { background: #fff4cf; color: #806000; border: 1px solid #ead17b; }
.badge-work-urgent { background: #ffe5e5; color: #a52c2c; border: 1px solid #efb4b4; }
.badge-work-partial { background: #fff0df; color: #99500f; border: 1px solid #efc493; }
.badge-work-incorrect { background: #f9e4eb; color: #84243e; border: 1px solid #e4afbf; }
.badge-work-completed { background: #e3f5ef; color: #0e6f59; border: 1px solid #b8dfd3; }

/* =========================================================
   Incremento 012 · Catálogo y promoción contextual de servicios
   ========================================================= */
.form-subheading{margin-top:10px;padding-top:18px;border-top:1px solid var(--border,#d9e5e2)}
.form-subheading h3{margin:3px 0 0;color:#092231;font-size:20px}
.admin-guidance-box{margin:18px 0 0;padding:17px 19px;background:#edf6f3;border:1px solid #d4e6e0;border-radius:10px;color:#31524c}
.admin-guidance-box strong{display:block;margin-bottom:5px;color:#0b594d}
.admin-guidance-box p{margin:0;line-height:1.55}
.table-cell-note,.table-cell-link{display:block;margin-top:5px;font-size:12px;color:#71817f}
.table-cell-link{color:#087d69;font-weight:700}
.inline-status-form{display:flex;align-items:center;gap:8px;min-width:260px}
.inline-status-form select{min-width:160px}

.services-catalog-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.42fr);gap:28px;align-items:stretch;margin-bottom:24px;padding:30px;background:linear-gradient(135deg,#061e27,#0c3f43);border-radius:18px;color:#fff;box-shadow:0 18px 45px rgba(6,30,39,.13)}
.services-catalog-hero h1{margin:4px 0 12px;color:#fff;font-size:36px;line-height:1.15}
.services-catalog-hero>div>p:last-child{max-width:760px;margin:0;color:#d2e1de;font-size:17px;line-height:1.65}
.services-catalog-hero .eyebrow{color:#7ed9bd}
.services-catalog-hero-note{display:flex;flex-direction:column;justify-content:center;padding:22px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:14px}
.services-catalog-hero-note strong{margin-bottom:8px;font-size:17px}
.services-catalog-hero-note span{color:#d8e5e2;line-height:1.55}
.service-category-filter{display:flex;gap:8px;overflow-x:auto;margin:0 0 26px;padding:7px;background:#fff;border:1px solid #dbe5e2;border-radius:12px;scrollbar-width:thin}
.service-category-filter a{flex:0 0 auto;padding:10px 14px;border-radius:8px;color:#526661;font-size:13px;font-weight:700;white-space:nowrap}
.service-category-filter a:hover,.service-category-filter a.active{color:#fff;background:#0f8f78}
.service-catalog-section{margin-top:0}
.service-offer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.service-offer-grid-featured{grid-template-columns:repeat(3,minmax(0,1fr))}
.service-offer-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dbe5e2;border-radius:16px;box-shadow:0 12px 32px rgba(6,30,39,.065);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.service-offer-card:hover{transform:translateY(-4px);border-color:#9bcfc1;box-shadow:0 20px 45px rgba(6,30,39,.11)}
.service-offer-image{position:relative;display:flex;align-items:center;justify-content:center;height:176px;overflow:hidden;background:linear-gradient(135deg,#dff1ec,#b8ded2)}
.service-offer-image img{width:100%;height:100%;object-fit:cover}
.service-offer-fallback{display:flex;align-items:center;justify-content:center;width:82px;height:82px;border-radius:24px;color:#fff;background:#0f8f78;font-size:27px;font-weight:800;box-shadow:0 12px 25px rgba(15,143,120,.25)}
.service-offer-badge{position:absolute;top:14px;left:14px;padding:7px 10px;border-radius:999px;color:#fff;background:#0f8f78;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;box-shadow:0 5px 13px rgba(0,0,0,.13)}
.service-offer-badge.is-contracted{background:#3c6da8}
.service-offer-body{display:flex;flex:1;flex-direction:column;padding:23px}
.service-offer-category{margin:0 0 7px;color:#0f8f78;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.service-offer-card h3{margin:0 0 11px;color:#092231;font-size:21px;line-height:1.28}
.service-offer-summary{margin:0 0 16px;color:#5d716c;line-height:1.62}
.service-offer-benefit{display:flex;flex-direction:column;gap:4px;margin:0 0 15px;padding:13px 14px;background:#eef7f4;border-left:3px solid #32b59a;border-radius:0 8px 8px 0}
.service-offer-benefit strong{color:#0a5f51;font-size:11px;letter-spacing:.07em;text-transform:uppercase}
.service-offer-benefit span{color:#38534d;font-size:13.5px;line-height:1.5}
.service-offer-reason{margin:0 0 17px;color:#50635e;font-size:13.5px;line-height:1.52}
.service-offer-reason strong{color:#223b36}
.service-offer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:17px;border-top:1px solid #e4ece9}
.service-offer-actions .button-link{padding:10px 13px;font-size:12px;text-align:center}
.service-detail-link{color:#0b7463;font-size:12px;font-weight:800;white-space:nowrap}
.service-detail-link:hover{color:#061e27}
.service-recommendation-heading{align-items:flex-end}
.service-recommendation-heading>div>p:last-child{max-width:720px;margin:8px 0 0;color:#667a75;line-height:1.55}
.dashboard-service-recommendations,.project-service-recommendations{margin-top:30px}
.service-catalog-footer-cta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;margin-top:30px;padding:28px 30px;background:#eaf4f0;border:1px solid #d6e6e0;border-radius:16px}
.service-catalog-footer-cta h2{margin:4px 0 8px;color:#092231}
.service-catalog-footer-cta p:last-child{margin:0;max-width:760px;color:#5f746e;line-height:1.6}
.service-inquiry-compose-note{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px;padding:15px 17px;background:#edf7f4;border:1px solid #d4e9e3;border-radius:10px}
.service-inquiry-compose-note>span{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 auto;border-radius:10px;color:#fff;background:#0f8f78;font-size:18px}
.service-inquiry-compose-note strong{display:block;color:#0b584c}
.service-inquiry-compose-note p{margin:4px 0 0;color:#5d706c;font-size:13px;line-height:1.45}

@media (max-width:1180px){
  .service-offer-grid,.service-offer-grid-featured{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .services-catalog-hero{grid-template-columns:1fr}
  .service-catalog-footer-cta{grid-template-columns:1fr}
  .service-recommendation-heading{align-items:flex-start;gap:14px}
}
@media (max-width:680px){
  .services-catalog-hero{padding:24px 20px}
  .services-catalog-hero h1{font-size:30px}
  .service-offer-grid,.service-offer-grid-featured{grid-template-columns:1fr}
  .service-offer-image{height:165px}
  .service-offer-actions{align-items:stretch;flex-direction:column}
  .service-detail-link{text-align:center}
  .service-catalog-footer-cta{padding:24px 20px}
  .inline-status-form{align-items:stretch;flex-direction:column;min-width:0}
  .inline-status-form select{min-width:0;width:100%}
}
@media (prefers-reduced-motion:reduce){
  .service-offer-card{transition:none}
  .service-offer-card:hover{transform:none}
}
