:root {
    --navy-950: #071630;
    --navy-900: #0b1f45;
    --navy-800: #12315f;
    --navy-700: #1b4f8f;
    --blue-500: #4f9cf9;
    --blue-100: #eaf3ff;
    --orange-500: #ff9d2e;
    --orange-100: #fff1df;
    --green-600: #14915f;
    --green-100: #e6f7ef;
    --red-600: #b63a3a;
    --red-100: #fff0f0;
    --violet-600: #7250d8;
    --violet-100: #f0ebff;
    --slate-900: #152238;
    --slate-700: #43516a;
    --slate-600: #5f6d84;
    --slate-500: #7b879b;
    --slate-300: #cfd7e3;
    --slate-200: #e1e7ef;
    --slate-100: #eef2f7;
    --slate-50: #f7f9fc;
    --white: #ffffff;
    --surface: #f5f8fc;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 8px 24px rgba(18, 49, 95, 0.06);
    --shadow-md: 0 18px 45px rgba(18, 49, 95, 0.10);
    --sidebar-w: 260px;
    --topbar-h: 74px;
    --mobile-nav-h: 72px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--surface);
}

body {
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--surface);
    color: var(--slate-900);
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(79, 156, 249, 0.34);
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    display: none;
}

.app-stage {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
    background: rgba(245, 248, 252, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(207, 215, 227, 0.8);
}

.topbar-kicker {
    display: block;
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.topbar strong {
    display: block;
    margin-top: 3px;
    color: var(--navy-950);
    font-size: 18px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button,
.avatar-button {
    border: 0;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--white);
    color: var(--navy-900);
    box-shadow: var(--shadow-sm);
    font-weight: 800;
}

.icon-button.bordered {
    box-shadow: none;
    border: 1px solid var(--slate-200);
}

.avatar-button {
    border-radius: 50%;
    background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
    color: var(--white);
}

.main {
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: 24px 16px calc(var(--mobile-nav-h) + 28px);
}

.section {
    width: 100%;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading h1 {
    margin-top: 6px;
    color: var(--navy-950);
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.page-heading .lead {
    max-width: 720px;
    margin-top: 10px;
}

.split-heading {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.eyebrow {
    color: var(--navy-700);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead,
.muted,
.helper-text {
    color: var(--slate-600);
    line-height: 1.6;
}

.helper-text {
    font-size: 13px;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.text-button,
.ghost-link {
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    transition: transform .16s ease, opacity .16s ease, background .16s ease;
}

.primary-btn {
    min-height: 46px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(11, 31, 69, 0.16);
}

.secondary-btn {
    min-height: 44px;
    padding: 11px 16px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    color: var(--navy-900);
}

.danger-btn {
    min-height: 44px;
    padding: 11px 16px;
    background: var(--red-100);
    color: var(--red-600);
    border: 1px solid #f3caca;
}

.text-button,
.ghost-link {
    background: transparent;
    color: var(--navy-700);
    padding: 8px 0;
}

.text-button.light {
    color: #dce9ff;
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover,
.text-button:hover {
    transform: translateY(-1px);
}

.panel,
.feature-card,
.summary-card,
.request-card,
.quote-card,
.job-card,
.market-card,
.profile-card,
.service-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.panel {
    padding: 20px;
    margin-bottom: 18px;
}

.soft-panel {
    background: linear-gradient(180deg, #fbfdff, #f2f6fb);
}

.panel h2,
.feature-card h2 {
    margin-top: 4px;
    color: var(--navy-950);
    font-size: 22px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-grid,
.content-grid,
.summary-grid,
.tool-grid {
    display: grid;
    gap: 16px;
}

.dashboard-grid,
.summary-grid {
    margin-bottom: 18px;
}

.feature-card {
    min-height: 180px;
    padding: 22px;
}

.feature-card-dark {
    color: var(--white);
    border-color: transparent;
    background: radial-gradient(circle at 85% 10%, rgba(79,156,249,.26), transparent 30%), linear-gradient(135deg, var(--navy-800), var(--navy-950));
    box-shadow: var(--shadow-md);
}

.feature-card-dark h2,
.feature-card-dark .feature-card-label,
.feature-card-dark .next-event-title {
    color: var(--white);
}

.feature-card-dark .next-event-subtitle,
.feature-card-dark .next-event-meta,
.feature-card-dark .next-event-empty {
    color: #d7e4f8;
}

.feature-card-label {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.next-event-empty {
    margin: 22px 0 18px;
    color: var(--slate-600);
}

.next-event-block {
    margin: 16px 0 14px;
}

.next-event-time {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.next-event-title {
    margin-top: 5px;
    font-size: 22px;
    font-weight: 900;
}

.next-event-subtitle,
.next-event-meta {
    margin-top: 4px;
    font-size: 14px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.metric-row > div {
    min-width: 0;
}

.metric-row strong {
    display: block;
    color: var(--navy-950);
    font-size: 30px;
    line-height: 1;
}

.metric-row span {
    display: block;
    margin-top: 6px;
    color: var(--slate-600);
    font-size: 12px;
}

.feature-card-dark .metric-row strong,
.feature-card-dark .metric-row span {
    color: var(--white);
}

.action-list,
.timeline-list,
.availability-list,
.tool-list,
.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-item,
.timeline-item,
.availability-item,
.tool-list button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--slate-100);
    text-align: left;
}

.action-item:last-child,
.timeline-item:last-child,
.availability-item:last-child,
.tool-list button:last-child {
    border-bottom: 0;
}

.action-icon,
.timeline-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--blue-100);
    color: var(--navy-700);
    font-weight: 900;
}

.action-copy,
.timeline-copy {
    min-width: 0;
    flex: 1;
}

.action-copy strong,
.timeline-copy strong,
.tool-list button span {
    display: block;
    color: var(--navy-950);
}

.action-copy small,
.timeline-copy small,
.tool-list button small {
    display: block;
    margin-top: 3px;
    color: var(--slate-500);
    line-height: 1.35;
}

.quick-ideas {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.quick-ideas button {
    min-height: 48px;
    padding: 12px 14px;
    text-align: left;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    color: var(--navy-900);
    border-radius: 12px;
    font-weight: 700;
}

.search-experience {
    max-width: 980px;
}

.request-composer {
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.composer-label {
    display: block;
    margin-bottom: 10px;
    color: var(--navy-900);
    font-weight: 900;
}

.request-composer textarea {
    min-height: 150px;
    border: 0;
    padding: 4px 0;
    font-size: clamp(20px, 4vw, 28px);
    line-height: 1.35;
    color: var(--navy-950);
    resize: vertical;
}

.request-composer textarea::placeholder {
    color: #98a4b6;
}

.request-composer textarea:focus {
    outline: 0;
}

.composer-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--slate-100);
}

.composer-footer span {
    color: var(--slate-500);
    font-size: 13px;
}

.advanced-request {
    margin-top: 16px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
}

.advanced-request summary {
    cursor: pointer;
    color: var(--navy-900);
    font-weight: 900;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 18px 0;
}

.compact-form {
    margin-bottom: 0;
}

.field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 800;
}

.field small {
    color: var(--slate-500);
    line-height: 1.4;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--slate-300);
    border-radius: 11px;
    padding: 11px 12px;
    background: var(--white);
    color: var(--slate-900);
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue-500);
    outline: none;
}

.clarification-panel {
    margin-top: 16px;
    padding: 18px;
    background: #f4f8ff;
    border: 1px solid #cbdcf7;
    border-radius: var(--radius-lg);
}

.clarification-header h3 {
    margin-top: 5px;
    color: var(--navy-950);
}

.clarification-panel > .muted {
    margin: 10px 0 14px;
}

.clarification-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.clarification-option {
    min-height: 44px;
    border: 1px solid #bfd1ed;
    border-radius: 11px;
    padding: 10px 14px;
    background: var(--white);
    color: var(--navy-900);
    font-weight: 800;
}

.clarification-option.secondary {
    color: var(--slate-600);
    background: var(--slate-50);
}

.summary-grid {
    grid-template-columns: 1fr;
}

.summary-card {
    padding: 18px;
}

.summary-card span {
    color: var(--slate-500);
    font-size: 13px;
}

.summary-card strong {
    display: block;
    margin-top: 7px;
    color: var(--navy-950);
    font-size: 30px;
}

.request-card,
.quote-card,
.job-card,
.market-card {
    padding: 18px;
    margin-bottom: 14px;
}

.request-card:hover,
.quote-card:hover,
.job-card:hover,
.market-card:hover {
    border-color: #b9c9dd;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.card-title {
    color: var(--navy-950);
    font-size: 20px;
    line-height: 1.25;
}

.card-description {
    margin: 14px 0;
    color: var(--slate-600);
    line-height: 1.55;
}

.card-meta,
.capabilities,
.verification-list,
.card-actions,
.service-builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-meta {
    margin-top: 10px;
}

.card-actions {
    margin-top: 16px;
}

.meta-chip,
.capability-chip,
.status-chip,
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.meta-chip {
    color: var(--slate-700);
    background: var(--slate-100);
}

.capability-chip {
    color: var(--navy-800);
    background: var(--blue-100);
}

.status-chip {
    color: var(--navy-800);
    background: var(--slate-100);
}

.status-good {
    color: var(--green-600);
    background: var(--green-100);
}

.status-warning {
    color: #9b5d12;
    background: var(--orange-100);
}

.status-danger {
    color: var(--red-600);
    background: var(--red-100);
}

.filter-bar {
    display: flex;
    gap: 8px;
    margin: -8px 0 18px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-chip {
    flex: 0 0 auto;
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    background: var(--white);
}

.filter-chip.active {
    color: var(--white);
    border-color: var(--navy-900);
    background: var(--navy-900);
}

.profile-card {
    overflow: hidden;
    margin-bottom: 18px;
}

.profile-header {
    padding: 24px;
    background: linear-gradient(180deg, #fff, #f9fbfe);
    border-bottom: 1px solid var(--slate-100);
}

.profile-header h3 {
    color: var(--navy-950);
    font-size: 28px;
}

.profile-body {
    padding: 22px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.profile-data {
    min-width: 0;
    padding: 14px;
    background: var(--slate-50);
    border-radius: 12px;
}

.profile-data span {
    display: block;
    color: var(--slate-500);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.profile-data strong {
    display: block;
    margin-top: 4px;
    color: var(--navy-950);
    overflow-wrap: anywhere;
}

.service-card,
.service-item {
    padding: 14px;
    background: var(--slate-50);
    border-radius: 13px;
}

.service-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--slate-200);
}

.service-card strong {
    color: var(--navy-950);
}

.profile-services {
    margin: 12px 0 18px;
}

.identity-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.identity-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tools-panel {
    margin-top: 18px;
}

.tool-grid {
    grid-template-columns: 1fr;
}

.tool-grid button {
    padding: 16px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 13px;
    text-align: left;
}

.tool-grid button strong {
    display: block;
    color: var(--navy-950);
}

.tool-grid button span {
    display: block;
    margin-top: 5px;
    color: var(--slate-500);
    line-height: 1.4;
}

.market-row {
    display: grid;
    gap: 12px;
}

.market-title {
    color: var(--navy-950);
    font-weight: 900;
}

.market-stat span {
    display: block;
    color: var(--slate-500);
    font-size: 11px;
}

.market-stat strong {
    display: block;
    margin-top: 4px;
    color: var(--navy-950);
    font-size: 20px;
}

.opportunity-high {
    border-left: 4px solid var(--orange-500);
}

/* AGENDA */
.agenda-shell {
    min-width: 0;
}

.agenda-toolbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
}

.agenda-toolbar h2 {
    margin-top: 3px;
    color: var(--navy-950);
    font-size: 18px;
    text-align: center;
}

.agenda-toolbar .eyebrow {
    display: block;
    text-align: center;
}

.week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(62px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 14px;
}

.week-day {
    min-width: 62px;
    min-height: 70px;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--slate-200);
    border-radius: 13px;
    background: var(--white);
    color: var(--slate-600);
}

.week-day span {
    font-size: 12px;
}

.week-day strong {
    color: var(--navy-950);
    font-size: 20px;
}

.week-day.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #cbd8ee;
}

.week-day.active strong {
    color: var(--white);
}

.agenda-layout {
    display: grid;
    gap: 16px;
}

.timeline-item {
    align-items: flex-start;
}

.timeline-time {
    flex: 0 0 56px;
    color: var(--slate-600);
    font-weight: 900;
    padding-top: 10px;
}

.timeline-content {
    min-width: 0;
    flex: 1;
    display: flex;
    gap: 11px;
    padding: 12px;
    border-radius: 13px;
    background: var(--slate-50);
}

.timeline-content.tone-green { background: var(--green-100); }
.timeline-content.tone-blue { background: var(--blue-100); }
.timeline-content.tone-orange { background: var(--orange-100); }
.timeline-content.tone-violet { background: var(--violet-100); }
.timeline-content.tone-slate { background: var(--slate-100); }

.timeline-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-actions button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.7);
    color: var(--navy-900);
}

.empty-state {
    padding: 26px 14px;
    text-align: center;
    color: var(--slate-500);
    background: var(--slate-50);
    border: 1px dashed var(--slate-300);
    border-radius: 13px;
}

.availability-item {
    align-items: center;
}

.availability-hours {
    min-width: 0;
    flex: 1;
}

.availability-hours strong {
    color: var(--navy-950);
}

.availability-hours small {
    display: block;
    margin-top: 2px;
    color: var(--green-600);
}

.agenda-side {
    min-width: 0;
}

/* MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: end center;
    padding: 14px;
    background: rgba(7, 22, 48, 0.52);
    backdrop-filter: blur(6px);
}

.modal-card {
    width: min(100%, 720px);
    max-height: 92vh;
    overflow-y: auto;
    padding: 20px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.modal-header,
.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header {
    justify-content: space-between;
    margin-bottom: 14px;
}

.modal-header h2 {
    color: var(--navy-950);
}

.modal-actions {
    margin-top: 18px;
    flex-wrap: wrap;
}

.modal-actions .spacer {
    flex: 1;
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    min-height: var(--mobile-nav-h);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
    border: 1px solid rgba(207, 215, 227, .9);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 42px rgba(7,22,48,.15);
    backdrop-filter: blur(18px);
}

.mobile-nav button {
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--slate-500);
    border-radius: 14px;
    padding: 7px 3px;
}

.mobile-nav button span,
.mobile-nav button small {
    display: block;
}

.mobile-nav button span {
    font-size: 20px;
    line-height: 1;
}

.mobile-nav button small {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 800;
}

.mobile-nav button.active {
    color: var(--navy-900);
    background: var(--blue-100);
}

/* LEGACY / BUILDERS */
.professional-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-builder {
    border-top: 1px solid var(--slate-200);
    margin-top: 16px;
    padding-top: 16px;
}

.quote-form {
    margin-top: 14px;
    padding: 15px;
    background: var(--slate-50);
    border-radius: 12px;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.progress-track {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--slate-200);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--blue-500);
}


/* =====================================================
   ROUTA 0.7.1 · BÚSQUEDA UNIFICADA
===================================================== */

.search-primary-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--slate-100);
}

.search-primary-fields .field label {
    color: var(--navy-900);
    font-weight: 900;
}

.active-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--navy-800);
    font-size: 12px;
    font-weight: 800;
}

.active-filter-empty {
    color: var(--slate-500);
    font-size: 12px;
}

.advanced-search-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.search-preview {
    margin-top: 18px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #cfdced;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.search-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.search-preview-head h2 {
    margin-top: 5px;
    color: var(--navy-950);
    font-size: clamp(21px, 4vw, 28px);
}

.search-preview-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.search-preview-criteria span {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-700);
    font-size: 12px;
    font-weight: 800;
}

.search-match-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 12px 0 14px;
    padding: 14px;
    border-radius: 14px;
    background: var(--navy-900);
    color: #dfeaff;
}

.search-match-summary strong {
    color: var(--white);
    font-size: 28px;
}

.search-provider-list {
    display: grid;
    gap: 10px;
}

.search-provider-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    background: var(--white);
}

.search-provider-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--navy-900);
    color: var(--white);
    font-weight: 900;
}

.search-provider-copy {
    min-width: 0;
    flex: 1;
}

.search-provider-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.search-provider-copy small {
    display: block;
    margin-top: 4px;
    color: var(--slate-500);
}

.match-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-600);
    font-size: 11px;
    font-weight: 900;
}

.match-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.match-reasons span {
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--slate-50);
    color: var(--slate-600);
    font-size: 11px;
}

.search-preview-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* =====================================================
   ROUTA 0.7.1 · AGENDA MENSUAL + RITMO
===================================================== */

.agenda-quick-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.agenda-today-btn {
    justify-self: start;
}

.week-day small {
    min-height: 16px;
    color: var(--slate-500);
    font-size: 10px;
    font-weight: 800;
}

.week-day.active small {
    color: #dce8fa;
}

.month-calendar-panel {
    padding: 16px;
    overflow: hidden;
}

.month-weekdays,
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.month-weekdays {
    margin-bottom: 6px;
}

.month-weekdays span {
    padding: 6px 2px;
    color: var(--slate-500);
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.month-day {
    position: relative;
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 2px;
    padding: 7px;
    border: 1px solid var(--slate-200);
    border-radius: 11px;
    background: var(--white);
    color: var(--navy-950);
    text-align: left;
}

.month-day:hover {
    border-color: #b6c8e1;
    background: #fbfdff;
}

.month-day.outside-month {
    opacity: .42;
    background: var(--slate-50);
}

.month-day.selected {
    border-color: var(--navy-900);
    box-shadow: inset 0 0 0 1px var(--navy-900);
    background: #f3f7fd;
}

.month-day.today .month-day-number {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--white);
}

.month-day-number {
    font-weight: 900;
    font-size: 13px;
}

.month-day-rhythm {
    justify-self: end;
    font-size: 13px;
}

.month-day-dots {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: end;
}

.month-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.event-dot { background: var(--blue-500); }
.reminder-dot { background: var(--orange-500); }

.month-day small {
    position: absolute;
    right: 6px;
    bottom: 5px;
    color: var(--slate-500);
    font-size: 9px;
    font-weight: 900;
}

.rhythm-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
    padding: 18px;
    border: 1px solid #d9e2ef;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.rhythm-copy p {
    margin-top: 9px;
    color: var(--slate-600);
    line-height: 1.55;
}

.rhythm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.rhythm-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.rhythm-calm { background: #eef8f2; color: #27734f; }
.rhythm-balanced { background: #fff8db; color: #8b6814; }
.rhythm-active { background: var(--blue-100); color: var(--navy-700); }
.rhythm-intense { background: var(--orange-100); color: #99561a; }
.rhythm-bright { background: var(--violet-100); color: var(--violet-600); }
.rhythm-achievement { background: var(--green-100); color: var(--green-600); }

.rhythm-summary {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

.reminder-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 12px;
}

.reminder-list {
    display: grid;
    gap: 8px;
}

.reminder-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
}

.reminder-item.completed span {
    color: var(--slate-500);
    text-decoration: line-through;
}

.reminder-check,
.reminder-delete {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.reminder-check {
    border: 1px solid var(--slate-300);
    background: var(--white);
    color: var(--green-600);
    font-weight: 900;
}

.reminder-item.completed .reminder-check {
    background: var(--green-100);
    border-color: #bde6d2;
}

.reminder-delete {
    border: 0;
    background: transparent;
    color: var(--slate-500);
    font-size: 20px;
}

.note-panel textarea {
    min-height: 120px;
}

.note-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.compact-empty {
    padding: 14px 10px;
}

@media (min-width: 640px) {
    .search-primary-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-provider-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agenda-quick-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .agenda-today-btn {
        justify-self: end;
        margin-bottom: 14px;
    }

    .month-calendar-panel {
        padding: 20px;
    }

    .month-weekdays,
    .month-grid {
        gap: 8px;
    }

    .month-day {
        min-height: 78px;
        padding: 9px;
    }

    .month-day-number {
        font-size: 14px;
    }

    .rhythm-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .main {
        padding: 30px 24px calc(var(--mobile-nav-h) + 34px);
    }

    .form-grid,
    .quote-grid,
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .composer-footer,
    .identity-panel,
    .identity-controls {
        flex-direction: row;
        align-items: center;
    }

    .composer-footer,
    .identity-panel {
        justify-content: space-between;
    }

    .identity-controls select {
        min-width: 250px;
    }

    .service-item {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .modal-backdrop {
        place-items: center;
    }
}

@media (min-width: 880px) {
    .app-shell {
        display: grid;
        grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    }

    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 24px 18px;
        background: var(--navy-950);
        color: var(--white);
        overflow-y: auto;
    }

    .brand {
        margin-bottom: 24px;
    }

    .brand-mark {
        color: var(--white);
        font-size: 30px;
        font-weight: 1000;
        letter-spacing: .07em;
    }

    .brand-mark::after {
        content: "";
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 3px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 9px solid var(--orange-500);
    }

    .brand p {
        margin-top: 5px;
        color: #90a3c2;
        font-size: 12px;
    }

    .mode-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 5px;
        margin-bottom: 22px;
        border-radius: 12px;
        background: rgba(255,255,255,.06);
    }

    .mode-btn {
        min-height: 38px;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: #9eb0cd;
        font-size: 12px;
        font-weight: 800;
    }

    .mode-btn.active {
        background: var(--white);
        color: var(--navy-950);
    }

    .menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .menu button {
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 46px;
        padding: 11px 12px;
        border: 0;
        border-radius: 11px;
        background: transparent;
        color: #b5c3d9;
        text-align: left;
        font-weight: 700;
    }

    .menu button span {
        width: 20px;
        text-align: center;
        font-size: 17px;
    }

    .menu button:hover,
    .menu button.active {
        background: rgba(255,255,255,.09);
        color: var(--white);
    }

    .sidebar-footer {
        margin-top: auto;
        padding-top: 22px;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .sidebar-footer .ghost-link {
        color: #dce8fa;
    }

    .sidebar-footer span {
        display: block;
        margin-top: 7px;
        color: #7286a6;
        font-size: 11px;
    }

    .topbar {
        padding-inline: 30px;
    }

    .main {
        padding: 36px 30px 60px;
    }

    .mobile-nav {
        display: none !important;
    }

    .split-heading {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
    }

    .content-grid.two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .summary-grid > :last-child:nth-child(odd) {
        grid-column: auto;
    }

    .tool-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .agenda-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
        align-items: start;
    }

    .agenda-side {
        position: sticky;
        top: calc(var(--topbar-h) + 18px);
    }

    .market-row {
        grid-template-columns: minmax(260px, 2fr) repeat(3, 1fr);
        align-items: center;
    }

    .profile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .main {
        padding-inline: 44px;
    }

    .panel,
    .feature-card {
        padding: 24px;
    }
}

/* Dos espacios: la navegación y las acciones conservan el mismo significado en ambos. */
body[data-mode="cliente"] {
    --role-accent: #087d88;
    --role-accent-dark: #0b5f75;
    --role-soft: #e5f7f6;
    --role-banner: #0b5f75;
    --surface: #f4faf9;
}

body[data-mode="profesional"] {
    --role-accent: #b96719;
    --role-accent-dark: #1c2940;
    --role-soft: #fff0dc;
    --role-banner: #1c2940;
    --surface: #f8f7f4;
}

.role-banner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
    color: #fff;
    background: var(--role-banner);
    border-bottom: 4px solid var(--role-accent);
}

.role-banner-copy { display: flex; flex-direction: column; gap: 4px; }
.role-banner-eyebrow { font-size: 10px; font-weight: 900; letter-spacing: .15em; opacity: .76; }
.role-banner-copy strong { font-size: 21px; line-height: 1.15; }
.role-banner-copy small { max-width: 500px; font-size: 12px; line-height: 1.4; opacity: .83; }
.role-banner-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.15); }
.role-banner-switch button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: #fff; font-size: 12px; font-weight: 800; }
.role-banner-switch button.active { background: #fff; color: var(--role-accent-dark); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.role-banner-switch button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

body[data-mode] .topbar { background: rgba(255,255,255,.94); }
body[data-mode] .topbar-kicker,
body[data-mode] .eyebrow,
body[data-mode] .text-button { color: var(--role-accent-dark); }
body[data-mode] .primary-btn { background: var(--role-accent-dark); box-shadow: 0 10px 24px rgba(7,22,48,.13); }
body[data-mode] .mobile-nav button.active { background: var(--role-soft); color: var(--role-accent-dark); }
body[data-mode] .feature-card-dark { background: radial-gradient(circle at 90% 8%, rgba(255,255,255,.18), transparent 36%), var(--role-banner); }
body[data-mode] .feature-card-dark .text-button.light { color: #fff; }
body[data-mode] .avatar-button { background: var(--role-banner); }
body[data-mode] .page-heading h1 { color: var(--role-accent-dark); }
body[data-mode] .sidebar { background: var(--role-banner); }
body[data-mode] .brand-mark::after { border-bottom-color: var(--role-accent); }
body[data-mode] .mode-btn.active { color: var(--role-accent-dark); }
body[data-mode] .menu button.active { background: rgba(255,255,255,.15); border-left: 3px solid var(--role-accent); padding-left: 9px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }

@media (min-width: 640px) {
    .role-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 17px 24px; }
    .role-banner-switch { min-width: 280px; }
}

@media (min-width: 880px) {
    .role-banner { padding-inline: 30px; }
    .role-banner-switch { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Bienvenida y elección de espacio */
[hidden] { display: none !important; }
.welcome-screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; background: #f3f7f8; color: #1c2940; text-align: center; }
.welcome-brand { font-size: 20px; font-weight: 800; letter-spacing: .16em; margin-bottom: 40px; }
.welcome-screen h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; }
.welcome-intro { color: #536576; margin: 0 0 36px; }
.welcome-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: 850px; }
.entry-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 310px; padding: 36px; border: 0; border-radius: 24px; text-align: left; color: #fff; cursor: pointer; box-shadow: 0 12px 30px #1c294018; transition: transform .18s ease, box-shadow .18s ease; font: inherit; }
.entry-busco { background: #0b6370; }
.entry-ofrezco { background: #1c2940; }
.entry-card strong { font-size: clamp(28px, 4vw, 38px); letter-spacing: .04em; }
.entry-symbol { font-size: 38px; line-height: 1; }
.entry-ofrezco .entry-symbol, .entry-ofrezco .entry-action { color: #f1c17b; }
.entry-action { margin-top: auto; font-weight: 700; }
.entry-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px #1c294025; }
.entry-card:focus-visible { outline: 4px solid #c47a20; outline-offset: 5px; }
@media (max-width: 600px) { .welcome-screen { padding: 32px 20px; } .welcome-brand { margin-bottom: 28px; } .welcome-options { grid-template-columns: 1fr; gap: 16px; } .entry-card { min-height: 220px; padding: 26px; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .entry-card { transition: none; } }

.welcome-screen { justify-content: flex-start; padding-top: 54px; }
.portal-content { width: 100%; max-width: 1050px; margin-top: 64px; text-align: left; }
.portal-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.portal-values article { padding: 26px; background: #fff; border: 1px solid #dce6e9; border-radius: 18px; }
.portal-values article > span { color: #0b6370; font-weight: 800; }
.portal-content h2 { font-size: 25px; line-height: 1.35; margin: 10px 0 14px; }
.portal-content h3 { margin: 12px 0; font-size: 19px; }
.portal-content p { line-height: 1.75; color: #526373; margin: 0; }
.portal-mission { margin: 40px 0; padding: 42px; background: #e2efef; border-radius: 24px; }
.portal-mission h2 { font-size: clamp(25px,3vw,34px); }
.portal-kicker { color: #0b6370; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.portal-how, .portal-categories { margin: 40px 0; }
.category-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.category-tags span { padding: 12px 18px; background: #fff; border: 1px solid #dce6e9; border-radius: 30px; }
.portal-trust { padding: 30px; border-radius: 20px; border: 1px solid #dce6e9; background: #fff; }
.portal-trust .portal-note { margin-top: 18px; font-size: 13px; }
.portal-footer { margin-top: 36px; padding: 24px 0; font-size: 13px; color: #526373; text-align: center; }
@media(max-width:700px) { .portal-values { grid-template-columns: 1fr; } .portal-content { margin-top: 40px; } .portal-mission { padding: 26px; } .topbar-actions { flex-wrap: wrap; gap: 6px; } .topbar-actions .secondary-btn { padding: 8px 10px; font-size: 12px; } }
/* Consolidación 0.8.1: mismas superficies, navegación y tonos que 0.7.7 */
[hidden]{display:none!important}.sync-notice{min-height:24px;color:#0b6370}.error-notice,#authError,#dialogError{color:#a32727}.card-description{white-space:pre-wrap}.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.card-item{padding:22px;border:1px solid #dce6e9;border-radius:16px;background:#fff;overflow-wrap:anywhere}.card-item h3{margin:12px 0}.card-item p{line-height:1.6}.card-item .card-item{margin-top:16px;border-radius:12px}.card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.status-pill{display:inline-block;padding:5px 10px;border-radius:30px;background:#e2efef;color:#19464e;font-size:13px}.panel{margin-top:20px}.service-picker{max-height:360px;overflow:auto;border:1px solid #dce6e9;border-radius:12px;padding:12px;margin:15px 0}.service-option{display:flex;gap:10px;align-items:flex-start;padding:10px;border-bottom:1px solid #edf1f3;min-height:44px}.service-option input,.check-line input{width:auto!important;flex-shrink:0;margin:3px!important}.check-line{display:inline-flex;gap:10px;align-items:center;min-height:44px;padding:8px}.service-option[hidden]{display:none!important}#selectedServices{line-height:1.7;color:#0b6370}.reminder-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}dialog{border:1px solid #dce6e9;border-radius:18px;padding:28px;max-width:650px;width:calc(100% - 32px);max-height:85vh;overflow:auto;color:#1c2940;background:#fff}dialog::backdrop{background:#10263b99}dialog .field{margin:14px 0}dialog .muted{margin-top:20px}details{margin:18px 0}summary{padding:12px;cursor:pointer}#dayDetail form{margin-top:20px}.calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.month-day{min-height:90px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:10px;background:#fff;border:1px solid #dce6e9;border-radius:10px;cursor:pointer;color:#1c2940}.month-day.selected{background:#e2efef;border-color:#0b6370}.month-day.today strong{text-decoration:underline}.calendar-count,.calendar-reminder{font-size:12px}.agenda-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}.mobile-nav{display:none}#pageTitle:focus{outline:none}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #bb7822;outline-offset:3px}.role-banner-copy small{color:inherit}.quote-form{margin-top:18px}
@media(max-width:879px){.sidebar{display:none}.app-shell{display:block}.app-stage{margin-left:0}.main{padding-bottom:120px}.mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;padding:8px 4px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dce6e9;z-index:20}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:8px;background:transparent;min-height:48px;font-size:11px;padding:5px 1px;color:#33465c;overflow-wrap:anywhere}.mobile-nav button.active{background:#e2efef;color:#0b6370}.topbar{gap:10px;flex-wrap:wrap}.topbar-actions{gap:6px;flex-wrap:wrap}.topbar-actions button{min-height:44px}.role-banner{margin:12px}.cards-grid{grid-template-columns:1fr}.month-day{min-height:64px;padding:5px;gap:4px}.calendar-count,.calendar-reminder{font-size:11px}.form-grid{grid-template-columns:1fr!important}.field input,.field select,.field textarea{font-size:16px}.service-option{min-height:48px}.month-weekday{font-size:12px}.main{padding:18px 12px 120px}.agenda-toolbar .secondary-btn{padding:9px;font-size:12px}.split-heading{flex-wrap:wrap}.portal-values{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.workspace-tabs{display:flex;gap:8px;overflow:auto;margin:22px 0;padding:5px}.workspace-tabs button{flex-shrink:0}.workspace-tabs .selected{background:#0b6370;color:white}.workspace-message{padding:18px 0;border-bottom:1px solid #dce6e9}.workspace-message small{color:#667787}fieldset{border:1px solid #dce6e9;border-radius:12px;margin:16px 0;padding:12px}

.profile-photo{width:96px;height:96px;object-fit:cover;border-radius:16px}dialog{max-width:min(640px,94vw);max-height:90vh;overflow:auto}
/* 0.9.3 · Encuentros, perfiles y opciones que se abren en su contexto. */
body[data-mode]{--surface-glow:#d9eeed;--interactive:#0b6370;--warm-highlight:#e7bc76}
body[data-mode] .app-stage{background:radial-gradient(ellipse at 90% 8%,#e5f0ef 0,transparent 45%),linear-gradient(180deg,#f5f8f8,#f9faf7)}
body[data-mode] .main{max-width:1320px;margin-inline:auto}
body[data-mode] .role-banner{position:relative;isolation:isolate;overflow:hidden;margin:20px 28px 0;border-radius:24px;padding:28px 32px;background:linear-gradient(115deg,#0b6370,#184955);box-shadow:0 14px 36px #18495518}
body[data-mode='profesional'] .role-banner{background:linear-gradient(115deg,#1c2940,#37445b)}
body[data-mode] .role-banner::after{content:'';position:absolute;width:230px;height:230px;right:4%;top:-115px;border:1px solid #ffffff30;border-radius:50%;box-shadow:0 0 0 35px #ffffff08,0 0 0 70px #ffffff05;z-index:-1}
body[data-mode] .role-banner-copy{display:flex;flex-direction:column;gap:12px}
body[data-mode] .role-banner-copy strong{font-size:clamp(24px,3vw,34px);line-height:1.25}
body[data-mode] .role-banner-copy small{line-height:1.65;max-width:65ch;color:#edf5f3}
#pageContent p,#pageContent li,.inline-panel p{line-height:1.75;margin-block:14px}
#pageContent h2,#pageContent h3,.inline-panel h2{line-height:1.35;margin-block:0 18px}
#pageContent .panel,#pageContent .card-item{border-radius:22px;padding:28px;border-color:#dce8e8;box-shadow:0 9px 28px #1c294008}
#pageContent .cards-grid,#pageContent .dashboard-grid{gap:24px}
#pageContent .card-item>button,#pageContent .panel>button{margin:8px 10px 8px 0}
#pageContent .card-item>p+button{margin-top:12px}
#pageContent .section-title{margin:36px 0 22px}
.form-grid{gap:24px}
.field{min-width:0;margin-block:12px}
.field label{display:block;line-height:1.5;margin-bottom:10px}
.field input,.field textarea,.field select{line-height:1.5;border-radius:13px;padding:13px 15px;width:100%;box-sizing:border-box}
.field textarea{resize:vertical}
.primary-btn,.secondary-btn,.text-button,[data-route],summary{transition:box-shadow .18s ease,background .18s ease,color .18s ease,text-shadow .18s ease}
.primary-btn:hover,.primary-btn:focus-visible{box-shadow:0 0 0 5px #7dc5c326,0 10px 26px #0b637030;text-shadow:0 0 12px #ffffff44}
.secondary-btn:hover,.secondary-btn:focus-visible,.text-button:hover,.text-button:focus-visible{box-shadow:0 0 0 4px #88c8c326;color:#0b6370;text-shadow:0 0 15px #0b637024}
.primary-btn,.secondary-btn{line-height:1.5}
.inline-panel{display:block;position:relative;box-sizing:border-box;width:100%;max-width:100%;padding:30px;margin:24px 0;border:1px solid #b7d9d6;border-left:4px solid var(--interactive,#0b6370);border-radius:20px;color:#1c2940;background:linear-gradient(130deg,#f1f9f8,#fff);box-shadow:0 10px 28px #0b63700c;scroll-margin-top:110px}
.inline-panel:focus-within{border-color:#77b6b1}
.inline-panel h2:focus{outline:none}
.inline-panel>button,.inline-panel form>button{margin:10px 12px 0 0}
.inline-panel .field{margin-block:18px}
.inline-panel [role='alert']{color:#a32727}
#authDialog{max-width:850px;text-align:left;margin:32px auto;padding:36px}
#authDialog .field{margin:20px 0}
#authDialog button{margin:8px 10px 8px 0}
#authDialog a{display:inline-block;margin:8px 12px 8px 0}
.profile-hero{position:relative;display:flex;align-items:center;gap:28px;padding:36px;border-radius:28px;border:1px solid #d3e5e3;background:radial-gradient(ellipse at 95% 15%,#d5ebe7,transparent 65%),linear-gradient(115deg,#edf7f5,#fbfcf8);overflow:hidden;isolation:isolate}
.profile-portrait{flex-shrink:0;display:grid;place-items:center;width:116px;height:116px;border-radius:50%;padding:7px;background:#ffffffcc;border:1px solid #b7d9d3;box-shadow:0 0 0 10px #ffffff44,0 12px 30px #0b637012}
.profile-portrait img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.profile-portrait>span{font-size:54px;color:#0b6370}
.profile-hero-copy{position:relative;z-index:1;max-width:65ch}
#pageContent .profile-hero h2{font-size:clamp(26px,3vw,38px);margin:12px 0;color:#183a45}
#pageContent .profile-hero p{margin:12px 0 20px;color:#526876}
.profile-orbit{position:absolute;right:30px;top:16px;color:#a3cec7;font-size:90px;opacity:.4;z-index:-1}
.profile-style-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin:24px 0 30px;color:#526876}
.style-options{display:flex;gap:10px;flex-wrap:wrap}
.style-options button{font:inherit;border:1px solid #d3e5e3;border-radius:40px;background:#fff;color:#33465c;padding:11px 18px;cursor:pointer;min-height:44px}
.style-options button[aria-pressed='true']{background:#e4f2ef;color:#0b6370;border-color:#81b8ae;box-shadow:0 0 0 4px #b9dfd12b}
.profile-section{margin:18px 0;border:1px solid #dce8e8;border-radius:22px;background:#fff;box-shadow:0 7px 22px #1c294005;overflow:clip}
.profile-section summary{display:flex;align-items:center;gap:18px;list-style:none;padding:24px 28px;color:#1c2940;min-height:44px}
.profile-section summary::-webkit-details-marker{display:none}
.profile-section summary>span:nth-child(2){flex:1;min-width:0}
.profile-section summary strong{display:block;font-size:20px;line-height:1.4}
.profile-section summary small{display:block;color:#627581;font-size:14px;line-height:1.65;margin-top:7px}
.profile-section summary:hover,.profile-section summary:focus-visible{background:#f1f8f6;text-shadow:0 0 20px #4fafa525}
.section-icon{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:15px;color:#0b6370;background:#eaf4f1;font-size:25px}
.section-chevron{font-size:24px;transition:transform .18s ease;color:#6f918e}
.profile-section[open] .section-chevron{transform:rotate(180deg)}
.profile-section[open]>summary{border-bottom:1px solid #e5efec}
.profile-section-body{padding:26px 28px 30px}
.profile-section .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 26px}
.profile-section .profile-photo{margin:6px 0 16px;width:112px;height:112px;border-radius:22px}
.profile-section input[type='file']{padding:12px;background:#f5f9f7}
.profile-save{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;margin:30px 0;padding:24px 28px;border-radius:22px;background:#e7f2ee}
.profile-save p{max-width:60ch;color:#526876}
.profile-save .primary-btn{min-height:50px;flex-shrink:0}
.action-links{display:flex;flex-wrap:wrap;gap:14px}
.contact-status{padding:12px 0;overflow-wrap:anywhere}
.contact-status .status-pill{margin:8px 0 8px 10px}
body[data-interface-style='calido'][data-mode]{--interactive:#775228;--surface-glow:#f5e5c7}
body[data-interface-style='calido'][data-mode] .app-stage{background:radial-gradient(ellipse at 90% 8%,#f5eadb,transparent 50%),linear-gradient(180deg,#faf7f0,#fbfaf6)}
body[data-interface-style='calido'] .profile-hero{border-color:#eadcc6;background:radial-gradient(ellipse at 95% 15%,#f2dfba,transparent 65%),linear-gradient(115deg,#fbf4e7,#fffaf1)}
body[data-interface-style='calido'] .profile-orbit{color:#c39855}
body[data-interface-style='calido'] .profile-portrait{border-color:#dfc794}
body[data-interface-style='calido'] .section-icon{color:#775228;background:#faf0dc}
body[data-interface-style='calido'] .profile-section summary:hover{background:#fcf7ec}
body[data-interface-style='calido'] .profile-save{background:#f6eddc}
body[data-interface-style='calido'] .style-options button[aria-pressed='true']{background:#fbefd8;border-color:#caac72;color:#775228}
body[data-interface-style='calido'] .inline-panel{border-color:#d5bc8d;background:linear-gradient(130deg,#fdf7ea,#fff)}
body[data-interface-style='calido'] .secondary-btn:hover{color:#775228;box-shadow:0 0 0 4px #dabd7c2b}
@media(max-width:879px){body[data-mode] .role-banner{margin:14px 12px 0;padding:25px 22px;border-radius:22px}.profile-hero{padding:28px 22px;gap:20px;align-items:flex-start}.profile-portrait{width:86px;height:86px}.profile-hero-copy{min-width:0}.profile-section summary{padding:22px 18px;gap:13px}.profile-section-body{padding:20px 18px}.section-icon{width:42px;height:42px}.profile-section summary strong{font-size:18px}.profile-save{padding:22px 18px}.inline-panel{padding:24px 18px;scroll-margin-top:90px}#pageContent .panel,#pageContent .card-item{padding:24px 20px}.mobile-nav{grid-template-columns:repeat(4,minmax(0,1fr))}.mobile-nav:has(button:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}.mobile-nav button{font-size:12px;line-height:1.4;gap:5px}}
@media(max-width:460px){.profile-hero{flex-direction:column}.profile-hero h2{overflow-wrap:anywhere}.profile-style-bar>span{font-size:14px}.style-options button{padding:10px 15px}.profile-save .primary-btn{width:100%}.action-links{flex-direction:column}.action-links button{width:100%}.inline-panel>button,.inline-panel form>button{max-width:100%}.profile-section summary small{font-size:13px}.profile-section summary strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){.inline-panel,.section-chevron,.primary-btn,.secondary-btn,summary{transition:none!important;scroll-behavior:auto!important}}

.cards-grid>.inline-panel{grid-column:1/-1}.action-links>.inline-panel{flex-basis:100%}
/* Evitar que las barras oculten controles al abrir o enfocar un desplegable. */
html{scroll-padding-block:110px 120px}
button,input,textarea,select,summary{scroll-margin-block:110px 120px}
@media(max-width:879px){.topbar{position:static!important;top:auto}html{scroll-padding-top:24px}button,input,textarea,select,summary{scroll-margin-top:24px}}
