


.home-showcase {
    
    /* max-width: 1400px; */
    margin: 0 auto;
    /* padding: clamp(1rem, 2vw, 2rem); */
}

.showcase-heading {
    margin-bottom: 1.25rem;
}

.showcase-heading h1 {
    margin: .2rem 0;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.showcase-heading p,
.summary-card p,
.feature-card p,
.celebration-card p {
    margin: 0;
    color: var(--alternate);
}

.eyebrow,
.card-code {
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.showcase-section {
    margin-bottom: 1rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--separator);
    border-radius: 1rem;
    background: var(--foreground);
    box-shadow: 0 10px 30px rgba(20, 45, 42, .04);
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title-row h2 {
    margin: .15rem 0 0;
    font-size: 1.15rem;
}

.control-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.showcase-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: min(100%, 22rem);
    padding: .55rem .8rem;
    border: 1px solid var(--separator);
    border-radius: 2rem;
}

.showcase-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem var(--primary-soft);
}

.showcase-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--body);
}

.showcase-search kbd {
    padding: .15rem .35rem;
    color: var(--alternate);
    border: 1px solid var(--separator);
    background: var(--background-light);
    font: inherit;
    font-size: .68rem;
}

.showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.showcase-tab {
    padding: .55rem .8rem;
    border: 0;
    border-radius: 2rem;
    background: transparent;
    color: var(--alternate);
}

.showcase-tab.active,
.showcase-tab:hover {
    background: var(--primary);
    color: var(--light-text);
}

.action-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: .75rem;
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--separator);
    border-radius: .9rem;
    background: var(--foreground);
    color: var(--body);
}

.action-card:last-child {
    margin-bottom: 0;
}

.action-card-primary {
    border-color: var(--primary);
    background: linear-gradient(120deg, var(--primary-darker), var(--primary));
    color: var(--light-text);
}

.action-card strong,
.action-card small,
.integration-alert strong,
.integration-alert small {
    display: block;
}

.action-card small {
    margin-top: .15rem;
    opacity: .74;
}

.action-icon,
.soft-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: .75rem;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
}

.action-card-primary .action-icon {
    background: rgba(255, 255, 255, .14);
    color: inherit;
}

.integration-alert {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid rgba(var(--primary-rgb, var(--bs-primary-rgb)), .25);
    border-radius: .9rem;
    background: var(--primary-soft, rgba(var(--bs-primary-rgb), .10));
}

.integration-alert div {
    min-width: 0;
    flex: 1;
}

.integration-alert small {
    color: var(--alternate, var(--bs-secondary-color));
}

.appointment-assignment-summary {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.appointment-patient-summary {
    align-items: center;
    display: flex;
    gap: .85rem;
    padding: .25rem .1rem;
}

.appointment-patient-avatar {
    align-items: center;
    background: rgba(var(--bs-primary-rgb), .08);
    border-radius: 50%;
    color: var(--bs-primary);
    display: inline-flex;
    flex: 0 0 38px;
    font-size: .82rem;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    letter-spacing: .02em;
    width: 38px;
}

.appointment-patient-text {
    min-width: 0;
}

.appointment-patient-name {
    color: var(--bs-body-color);
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.appointment-patient-subtitle {
    color: var(--bs-secondary-color);
    font-size: .86rem;
    line-height: 1.25;
    word-break: break-word;
}

.appointment-specialty-card {
    background: var(--bs-tertiary-bg, rgba(var(--bs-primary-rgb), .035));
    border-radius: .7rem;
    padding: .75rem .9rem;
}

.appointment-readonly-label {
    color: var(--bs-secondary-color);
    display: block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.appointment-specialty-value {
    align-items: center;
    color: var(--bs-body-color);
    display: flex;
    font-size: 1.05rem;
    font-weight: 700;
    gap: .45rem;
    line-height: 1.25;
    margin-top: .2rem;
    word-break: break-word;
}

.appointment-specialty-value i {
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.appointment-observations-card {
    align-items: flex-start;
}

.appointment-observations-card strong {
    color: var(--bs-body-color);
    font-size: .76rem;
    letter-spacing: .02em;
}

.appointment-observations-card small {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    margin-top: .25rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    border: 1px solid var(--separator);
    border-radius: 50%;
    background: var(--foreground);
    color: var(--primary);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.summary-card {
    position: relative;
    display: flex;
    gap: .8rem;
    min-height: 8.5rem;
    padding: 1rem;
    border: 1px solid var(--separator);
    border-radius: .9rem;
}

.summary-card h3,
.feature-card h3,
.celebration-card h3 {
    margin: .2rem 0;
    font-size: .98rem;
}

.summary-card p,
.feature-card p {
    font-size: .82rem;
}

.status-badge {
    position: absolute;
    top: .7rem;
    right: .7rem;
    padding: .18rem .45rem;
    border: 1px solid rgba(var(--primary-rgb), .25);
    border-radius: 2rem;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .58rem;
    font-weight: 700;
}

.stories-card,
.composer-card,
.celebration-card {
    padding: 1rem;
    border: 1px solid var(--separator);
    border-radius: .9rem;
}

.stories-card {
    display: flex;
    gap: 1rem;
    margin-bottom: .75rem;
    overflow-x: auto;
}

.story {
    min-width: 5rem;
    border: 0;
    background: transparent;
    color: var(--body);
    text-align: center;
    transition: transform .22s ease, filter .22s ease;
}

.story:hover {
    transform: translateY(-.18rem);
}

.story strong,
.story small {
    display: block;
    white-space: nowrap;
}

.story small {
    color: var(--alternate);
    font-size: .7rem;
}

.story-avatar {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto .35rem;
    border: 3px solid var(--foreground);
    outline: 2px solid var(--primary);
    border-radius: 50%;
    background: var(--primary);
    color: white;
}

.story-avatar.alternate {
    background: var(--primary-darker);
}

.story-avatar.add {
    border: 1px dashed var(--primary);
    outline: 0;
    background: transparent;
    color: var(--primary);
}

.dashboard-stories-animate .story:not(.story-add):not(.story-new) {
    animation: dashboard-story-shift .55s cubic-bezier(.2,.8,.2,1);
}

.dashboard-stories-animate .story-new {
    animation: dashboard-story-enter .72s cubic-bezier(.2,.8,.2,1) both;
}

.dashboard-stories-animate .story-new .story-avatar {
    box-shadow: 0 0 0 .35rem rgba(var(--primary-rgb), .14), 0 .75rem 1.75rem rgba(var(--primary-rgb), .25);
}

@keyframes dashboard-story-enter {
    0% {
        opacity: 0;
        transform: translateX(-1.35rem) scale(.72);
        filter: blur(2px);
    }
    60% {
        opacity: 1;
        transform: translateX(.18rem) scale(1.08);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes dashboard-story-shift {
    0% {
        transform: translateX(-.75rem);
    }
    100% {
        transform: translateX(0);
    }
}

.composer-input {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem;
    border-radius: 2rem;
    background: var(--background-light);
}

.composer-input input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
}

.mini-avatar {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: .72rem;
}

.composer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    margin-top: .6rem;
}

.composer-actions > button:not(.btn),
.composer-actions > a {
    padding: .4rem .6rem;
    border: 0;
    background: transparent;
    color: var(--body);
    text-decoration: none;
}

.celebration-card {
    height: 100%;
    text-align: center;
}

.celebration-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto .5rem;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.8rem;
}

.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: .75rem;
    margin: 1rem 0 1.5rem;
}

.process-step {
    min-width: 5rem;
    text-align: center;
}

.process-step span {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto .45rem;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.45rem;
}

.process-step strong {
    font-size: .82rem;
}

.process-arrow {
    margin-top: 1.7rem;
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid var(--separator);
    border-radius: .9rem;
}

@media (max-width: 991.98px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 7rem;
    }
}

@media (max-width: 575.98px) {
    .section-title-row {
        align-items: flex-start;
    }

    .section-title-row > a {
        display: none;
    }

    .showcase-tabs,
    .showcase-tab {
        width: 100%;
    }

    .integration-alert {
        flex-wrap: wrap;
    }

    .process-flow {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .process-arrow {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .composer-actions > button:not(.btn),
    .composer-actions > a {
        font-size: 0;
    }

    .composer-actions > button i,
    .composer-actions > a i {
        font-size: 1rem;
    }
}

/* Tableros por perfil */
.dashboard-page { padding-bottom: 2rem; }
.dashboard-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; }
.dashboard-date-button,
.dashboard-filter-button { display:flex; align-items:center; justify-content:center; gap:.5rem; border-radius:.85rem; }
.dashboard-date-button > i,
.dashboard-filter-button > i { font-size:1.35rem; }
.dashboard-date-button span { display:flex; flex-direction:column; line-height:1.2; }
.dashboard-date-button small { color:var(--bs-secondary-color); font-size:.68rem; }
.dashboard-filter-button { min-width:2.75rem; min-height:2.5rem; padding-inline:.85rem; }
.dashboard-filter-button span { font-weight:600; line-height:1; }
.dashboard-filter-button small,
.dashboard-filter-button strong { display:none; }
.dashboard-filter-button span:has(small)::before { content:"Filtros"; font-size:.875rem; }
.dashboard-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin-bottom:1rem; }
.dashboard-actions .action-card { margin:0; color:inherit; text-decoration:none; }
.dashboard-section { margin-top:0; }
.dashboard-loading { min-height:18rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.75rem; color:var(--bs-secondary-color); }
.dashboard-kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(185px,1fr)); gap:.75rem; }
.dashboard-kpi { display:flex; align-items:flex-start; gap:.8rem; min-height:7.25rem; padding:1rem; border:1px solid var(--separator); border-radius:.9rem; background:var(--surface, #fff); }
.dashboard-kpi > div { display:flex; flex-direction:column; min-width:0; }
.dashboard-kpi strong { font-size:1.75rem; line-height:1.2; color:var(--body); }
.dashboard-kpi small { margin-top:.2rem; font-size:.7rem; color:var(--bs-secondary-color); }
.dashboard-kpi small.positive { color:var(--bs-success); }
.dashboard-kpi small.negative { color:var(--bs-danger); }
.dashboard-kpi-reference-group { min-height:7.25rem; }
.dashboard-kpi-pending { position:relative; overflow:hidden; border-color:rgba(var(--primary-rgb),.25); background:linear-gradient(135deg,var(--primary),rgba(var(--primary-rgb),.78)); box-shadow:0 .85rem 1.75rem rgba(var(--primary-rgb),.22); }
.dashboard-kpi-link { color:inherit; text-decoration:none; cursor:pointer; transition:transform .22s ease, box-shadow .22s ease, filter .22s ease; }
.dashboard-kpi-link:hover,.dashboard-kpi-link:focus-visible { color:inherit; text-decoration:none; transform:translateY(-4px); box-shadow:0 1.15rem 2.25rem rgba(var(--primary-rgb),.34); filter:saturate(1.12) brightness(1.04); }
.dashboard-kpi-link:focus-visible { outline:3px solid rgba(var(--primary-rgb),.24); outline-offset:3px; }
.dashboard-kpi-pending > *:not(img) { position:relative; z-index:1; }
.dashboard-kpi-pending .soft-icon { background:rgba(255,255,255,.18); color:#fff; }
.dashboard-kpi-pending .card-code,
.dashboard-kpi-pending strong,
.dashboard-kpi-pending small { color:#fff; }
.dashboard-kpi-pending img { position:absolute; right:-.8rem; bottom:-1rem; width:6.6rem; opacity:.26; transform:rotate(-14deg); pointer-events:none; filter:brightness(0) invert(1); }
.dashboard-reference-total { display:flex; align-items:stretch; gap:.5rem; margin-top:.45rem; }
.dashboard-reference-total > div { flex:1 1 0; min-width:0; padding:.55rem .65rem; border-radius:.75rem; background:rgba(var(--bs-primary-rgb),.06); }
.dashboard-reference-total .dashboard-reference-main-stat { flex:1.25 1 0; padding-left:0; background:transparent; }
.dashboard-reference-total span { display:block; color:var(--bs-secondary-color); font-size:.68rem; font-weight:700; letter-spacing:.02em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dashboard-reference-total strong { display:block; margin-top:.05rem; font-size:1.25rem; }
.dashboard-reference-main-stat strong { margin-top:0; font-size:2rem; }
.dashboard-reference-main-stat small { margin-top:0; }
.dashboard-table .status-badge { position:static; display:inline-flex; align-items:center; justify-content:center; width:max-content; }
.dashboard-reference-status-inline { margin-left:.5rem; vertical-align:middle; }
.dashboard-bars { display:flex; flex-direction:column; gap:1rem; }
.dashboard-bar-row > div:first-child { display:flex; justify-content:space-between; gap:1rem; margin-bottom:.35rem; font-size:.82rem; }
.dashboard-bar-track { height:.55rem; overflow:hidden; border-radius:1rem; background:rgba(var(--bs-primary-rgb),.09); }
.dashboard-bar-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--bs-primary),rgba(var(--bs-primary-rgb),.58)); transition:width .3s ease; }
.dashboard-bars.compact { margin-top:.25rem; }
.dashboard-devexpress-chart { min-height:260px; }
.dashboard-donut-chart { min-height:300px; overflow:visible; }
.dashboard-people-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:.75rem; }
.dashboard-avatar-strip { margin-bottom:0; }
.dashboard-story { max-width:6.5rem; }
.dashboard-story strong,
.dashboard-story small { overflow:hidden; text-overflow:ellipsis; }
.dashboard-person { display:flex; align-items:center; gap:.7rem; padding:.75rem; border:1px solid var(--separator); border-radius:.85rem; }
.dashboard-person > div { display:flex; flex-direction:column; min-width:0; }
.dashboard-person strong,.dashboard-person small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dashboard-person small { color:var(--bs-secondary-color); font-size:.72rem; }
.dashboard-person .status-badge { margin-left:auto; }
.dashboard-table-wrap { width:100%; overflow-x:auto; }
.dashboard-table { margin:0; min-width:650px; vertical-align:middle; }
.dashboard-table thead th { border-top:0; color:var(--bs-secondary-color); font-size:.7rem; font-weight:700; text-transform:uppercase; }
.dashboard-table tbody td { padding-top:.8rem; padding-bottom:.8rem; }
.dashboard-reference-list-actions { display:flex; align-items:center; justify-content:flex-end; gap:.4rem; }
.dashboard-reference-list-actions .btn { display:inline-flex; align-items:center; justify-content:center; gap:.35rem; min-height:2.1rem; }
.dashboard-refresh-button { border:0 !important; color:var(--bs-primary); text-decoration:none; box-shadow:none !important; }
.dashboard-refresh-button:hover,.dashboard-refresh-button:focus { color:var(--bs-primary); background:rgba(var(--bs-primary-rgb),.08); text-decoration:none; }
.dashboard-modal { z-index:1085 !important; }
.dashboard-modal + .modal-backdrop { z-index:1080 !important; }
.dxbl-dropdown,
.dxbl-popup-cell,
.dxbl-dropdown-dialog,
.dxbl-dropdown-container,
.dxbl-dropdown-root,
.dxbl-popup,
.dxbl-popup-dialog,
.dxbl-popup-wrapper,
.dxbl-popup-root,
.dxbl-date-edit-drop-down,
.dxbl-calendar,
.dxbs-popup,
.dxbs-popup-wrapper,
.dxbs-dropdown-area,
.dxbs-dropdown-popup,
.dxbs-calendar,
.datepicker.dropdown-menu { z-index:2140 !important; }
.dashboard-modal .modal-content { border:0; border-radius:1rem; box-shadow:0 1rem 3rem rgba(0,0,0,.18); }
.dashboard-modal .modal-header,.dashboard-modal .modal-footer { padding:1rem 1.25rem; }
.dashboard-modal .modal-header small { color:var(--bs-secondary-color); }
.dashboard-detail-list { display:flex; flex-direction:column; }
.dashboard-detail-list > div { display:flex; justify-content:space-between; gap:1rem; padding:.75rem 0; border-bottom:1px solid var(--separator); }
.dashboard-detail-list > div:last-child { border-bottom:0; }

@media (max-width:767.98px) {
    .dashboard-heading { align-items:stretch; flex-direction:column; }
    .dashboard-date-button { width:100%; justify-content:center; }
    .dashboard-filter-button { align-self:flex-end; width:2.75rem; padding-inline:0; }
    .dashboard-filter-button span { display:none; }
    .dashboard-actions { grid-template-columns:1fr; }
    .dashboard-reference-total { flex-direction:column; }
    .dashboard-reference-total .dashboard-reference-main-stat { padding:.55rem .65rem; background:rgba(var(--bs-primary-rgb),.06); }
    .dashboard-reference-status-inline { display:flex; margin:.25rem 0 0; }
}
