/*
 * Cenpar Portal 2 - presentation layer
 *
 * This file intentionally contains only visual rules. The legacy PHP,
 * JavaScript, service endpoints and form contracts remain unchanged.
 */

html {
    min-height: 100%;
    background: #eef4fb;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 146px 0 40px;
    color: #17324d;
    background:
        radial-gradient(circle at 8% 5%, rgba(84, 166, 230, 0.15), transparent 30rem),
        linear-gradient(180deg, #f8fbff 0, #eef4fb 100%) fixed;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body * {
    box-sizing: border-box;
}

a {
    color: #2766aa;
}

a:hover,
a:focus {
    color: #174c86;
}

/* Navigation */
.navbar.bg-primary {
    min-height: 124px;
    padding: 8px clamp(18px, 2.5vw, 36px);
    background: rgba(255, 255, 255, 0.98) !important;
    border: 0;
    border-bottom: 1px solid #d8e5f2;
    box-shadow: 0 6px 24px rgba(23, 50, 77, 0.09);
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 18px;
    padding: 0;
}

.navbar-brand img {
    display: block;
    width: min(390px, 36vw);
    height: auto;
    max-height: 96px;
    object-fit: contain;
}

.navbar .navbar-nav {
    align-items: center;
    gap: 5px;
}

.navbar-inverse .navbar-nav .nav-link,
.navbar-inverse .navbar-nav .nav-link:visited {
    min-height: 44px;
    padding: 11px 12px;
    color: #35536e;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    line-height: 22px;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.navbar-inverse .navbar-nav .nav-link:hover,
.navbar-inverse .navbar-nav .nav-link:focus {
    color: #174c86;
    background: #e7f2fc;
}

.navbar-inverse .navbar-nav .active > .nav-link,
.navbar-inverse .navbar-nav .active > .nav-link:hover,
.navbar-inverse .navbar-nav .active > .nav-link:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #2766aa, #54a6e6);
    box-shadow: 0 7px 18px rgba(39, 102, 170, 0.22);
}

.navbar-toggler {
    min-width: 46px;
    min-height: 44px;
    color: #2766aa !important;
    background: #ffffff !important;
    border: 1px solid #b9cee2 !important;
    border-radius: 10px;
}

.navbar-toggler-icon {
    position: relative;
    width: 22px;
    height: 2px;
    background: #2766aa;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    content: "";
    background: #2766aa;
}

.navbar-toggler-icon:before { top: -7px; }
.navbar-toggler-icon:after { top: 7px; }

/* Page shell and cards */
.container {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
}

.cp-main {
    padding-top: 4px;
}

.panel,
.panel.panel-default {
    overflow: hidden;
    margin: 18px 0 !important;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d8e5f2;
    border-radius: 18px;
    box-shadow: 0 14px 42px rgba(23, 50, 77, 0.10);
}

.panel-heading {
    min-height: 0;
    padding: 20px 24px 16px;
    color: #17324d;
    background: linear-gradient(135deg, #f7fbff, #eaf4fd);
    border: 0;
    border-bottom: 1px solid #dce9f5;
}

.panel-heading h1,
.panel-heading h2,
.panel-heading h3 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    color: #17324d;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 720;
    letter-spacing: -0.02em;
}

.panel-heading h3 img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.panel-body {
    padding: 24px;
}

.cp-page-heading {
    padding: 24px;
    background: #ffffff;
}

.cp-page-heading .cp-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #2766aa;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cp-page-heading p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #5a7186;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label,
form label {
    margin-bottom: 7px;
    color: #294b68;
    font-size: 14px;
    font-weight: 650;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control,
.bootstrap-select > .dropdown-toggle {
    min-height: 48px;
    padding: 10px 13px;
    color: #17324d;
    background-color: #ffffff;
    border: 1px solid #b9cee2;
    border-radius: 10px;
    font-size: 16px;
    line-height: 26px;
    box-shadow: inset 0 1px 2px rgba(23, 50, 77, 0.03);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus,
.bootstrap-select.open > .dropdown-toggle {
    border-color: #54a6e6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(84, 166, 230, 0.22);
}

.form-control:disabled,
.form-control[readonly] {
    color: #5a7186;
    background-color: #eef4fb;
    opacity: 1;
}

.checkbox-inline,
.radio-inline {
    min-height: 44px;
    padding-top: 10px;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #2766aa;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.btn-primary,
.btn-info,
button.btn-primary,
button.btn-info {
    padding: 10px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #2766aa, #54a6e6);
    border: 0;
    box-shadow: 0 8px 20px rgba(39, 102, 170, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #1f5794, #3c94d7);
    box-shadow: 0 10px 24px rgba(39, 102, 170, 0.3);
    transform: translateY(-1px);
}

.btn-secondary,
.btn-default {
    color: #2766aa;
    background: #ffffff;
    border: 1px solid #a9c4dc;
}

.btn:disabled,
.btn.disabled,
button:disabled {
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.55;
    transform: none;
}

:focus-visible {
    outline: 3px solid rgba(84, 166, 230, 0.48);
    outline-offset: 2px;
}

/* Home */
.cp-home-card {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.panel.panel-default.cp-home-card {
    margin-left: auto !important;
    margin-right: auto !important;
}

.cp-home-form .row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
}

.cp-home-form .form-group {
    margin-bottom: 0;
}

.cp-home-form .cp-action {
    padding-bottom: 0;
}

.cp-home-form .btn {
    width: 100%;
}

.cp-contact-banner {
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid #dce9f5;
}

.cp-contact-banner img {
    width: min(100%, 500px);
    height: auto;
}

/* Search filters */
.cp-filter-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(420px, 1.65fr);
    gap: 22px;
    align-items: stretch;
}

.cp-filter-side,
.cp-filter-content {
    padding: 22px;
    border: 1px solid #d8e5f2;
    border-radius: 15px;
}

.cp-filter-side {
    background: linear-gradient(145deg, #2766aa, #438ecb);
    color: #ffffff;
}

.cp-filter-content {
    background: #f8fbff;
}

.cp-filter-side__label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cp-filter-side h4,
.cp-filter-content h4 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 720;
}

.cp-filter-side p,
.cp-filter-content p {
    margin: 0 0 18px;
    font-size: 14px;
}

.cp-filter-side p {
    color: rgba(255, 255, 255, 0.82);
}

.cp-filter-side label {
    color: #ffffff;
}

.cp-filter-side .form-control:disabled {
    color: #17324d;
    background: #ffffff;
}

.cp-filter-content .row {
    margin-bottom: 0;
}

.cp-filter-action {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 4px !important;
}

.cp-filter-action .btn {
    min-width: 180px;
}

.cp-field-status {
    display: block;
    min-height: 20px;
    margin-top: 6px;
    color: #5a7186;
    font-size: 13px;
}

.cp-field-status--error {
    color: #9a3030;
    font-weight: 650;
}

/* Basic local captcha */
.cp-captcha {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 8px 0 20px;
    padding: 18px;
    background: #f5faff;
    border: 1px solid #bcd5e9;
    border-radius: 14px;
}

.cp-captcha__icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #2766aa, #54a6e6);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
}

.cp-captcha__content {
    flex: 1 1 auto;
    max-width: 420px;
}

.cp-captcha__title {
    margin-bottom: 7px;
    color: #17324d;
    font-size: 16px;
    font-weight: 750;
}

.cp-captcha .form-control {
    width: 112px;
    margin: 7px 0 5px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.cp-captcha small {
    display: block;
    color: #5a7186;
}

.cp-captcha__error {
    margin-top: 10px;
    padding: 9px 11px;
    color: #8b2c2c;
    background: #fff0f0;
    border-left: 4px solid #c84a4a;
    border-radius: 7px;
    font-size: 14px;
}

.cp-captcha--checkbox {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 4px 11px;
    align-items: center;
    max-width: 330px;
    background: #ffffff;
}

.cp-captcha--checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.cp-captcha--checkbox label {
    margin: 0;
    color: #17324d;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.cp-captcha--checkbox .cp-captcha__error {
    grid-column: 1 / -1;
}

/* Tables and generated result areas */
.table,
table {
    color: #17324d;
}

.table {
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
}

.table thead th,
table thead th {
    color: #294b68;
    background: #eaf4fd;
    border-color: #d8e5f2;
}

.table td,
.table th {
    padding: 12px;
    border-color: #e2ebf4;
}

#load {
    position: fixed;
    z-index: 1200;
    top: 50%;
    left: 50%;
    padding: 18px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(23, 50, 77, 0.2);
    transform: translate(-50%, -50%);
}

#load img {
    display: block;
    max-width: 52px;
    height: auto;
}

/* Agenda */
.cp-page-actions {
    display: flex;
    justify-content: flex-start;
    margin: 10px 0 2px;
}

.cp-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 9px 18px;
    color: #2766aa !important;
    background: #ffffff !important;
    border: 1px solid #a9c4dc !important;
    text-decoration: none !important;
}

.cp-back-button:hover,
.cp-back-button:focus {
    color: #174c86 !important;
    background: #eaf4fd !important;
}

#profesionales {
    display: grid;
    grid-template-columns: minmax(330px, 0.95fr) minmax(380px, 1.25fr);
    gap: 24px;
    align-items: stretch;
    margin: 18px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #d8e5f2;
    border-radius: 18px;
    box-shadow: 0 14px 42px rgba(23, 50, 77, 0.10);
}

.cp-agenda-profile,
.cp-agenda-hours {
    padding: 20px;
    background: #f7fbff;
    border: 1px solid #dce9f5;
    border-radius: 15px;
}

.cp-agenda-profile {
    text-align: center;
}

#profesionales img#image,
#profesionales .cp-agenda-profile > img {
    width: 160px !important;
    height: 160px !important;
    object-fit: cover;
    border: 5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(23, 50, 77, 0.16);
}

.cp-professional-name {
    margin: 16px 0 5px;
    color: #17324d;
    font-size: 21px;
    font-weight: 730;
}

.cp-agenda-instruction,
.cp-agenda-hours__heading p {
    color: #5a7186;
    font-size: 14px;
}

.cp-agenda-hours__heading {
    padding: 2px 0 15px;
    border-bottom: 1px solid #dce9f5;
}

.cp-agenda-hours__heading h2 {
    margin: 2px 0 5px;
    color: #17324d;
    font-size: 24px;
    font-weight: 730;
}

.cp-agenda-hours__heading p {
    margin: 0;
}

#datepicker {
    width: 100%;
    margin: 20px 0 0 !important;
}

.ui-datepicker {
    width: 100% !important;
    max-width: 420px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d8e5f2 !important;
    border-radius: 14px;
    box-shadow: none;
}

.ui-datepicker .ui-datepicker-header {
    padding: 8px;
    background: #eaf4fd;
    border: 0;
    border-radius: 10px;
}

.ui-datepicker td a,
.ui-datepicker td span {
    min-height: 38px;
    padding: 9px 5px !important;
    text-align: center !important;
    border-radius: 8px;
}

.ui-datepicker .ui-state-active {
    color: #ffffff !important;
    background: #2766aa !important;
    border-color: #2766aa !important;
}

#horas {
    width: 100% !important;
    min-height: 240px;
    margin: 0 !important;
    padding: 14px 0 0;
    background: transparent;
    border: 0;
}

#horas .list-group {
    margin: 0;
}

#horas .list-group-item {
    margin-bottom: 8px;
    padding: 11px 13px;
    background: #ffffff;
    border: 1px solid #d8e5f2;
    border-radius: 10px;
}

#horas a,
#horas button,
#horas input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 5px;
    padding: 9px 14px;
    text-decoration: none;
}

/* Alerts and dialogs */
.alert {
    border: 0;
    border-radius: 12px;
}

.modal-content,
.appriseOuter {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(23, 50, 77, 0.24);
}

@media (max-width: 991px) {
    body {
        padding-top: 112px;
    }

    .navbar.bg-primary {
        min-height: 94px;
        padding: 8px 16px;
    }

    .navbar-brand img {
        width: min(330px, 65vw);
        max-height: 76px;
    }

    .navbar-collapse {
        max-height: calc(100vh - 104px);
        margin: 8px -16px -8px;
        padding: 12px 16px 18px;
        overflow-y: auto;
        background: #ffffff;
        border-top: 1px solid #d8e5f2;
    }

    .navbar .navbar-nav {
        align-items: stretch;
    }

    .navbar-inverse .navbar-nav .nav-link {
        display: block;
        margin: 3px 0;
        padding-left: 18px;
    }

    #profesionales {
        grid-template-columns: 1fr;
    }

    .cp-filter-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    body {
        padding-top: 96px;
        padding-bottom: 24px;
        font-size: 16px;
    }

    .navbar.bg-primary {
        min-height: 82px;
    }

    .navbar-brand img {
        width: min(255px, 66vw);
        max-height: 64px;
    }

    .container {
        width: min(100% - 20px, 1180px);
        padding-right: 0;
        padding-left: 0;
    }

    .panel,
    .panel.panel-default {
        margin: 10px 0 !important;
        border-radius: 14px;
    }

    .panel-heading,
    .panel-body {
        padding: 18px;
    }

    .cp-home-form .row {
        display: block;
    }

    .cp-home-form .form-group {
        margin-bottom: 16px;
    }

    .cp-home-form .cp-action {
        padding-top: 0;
    }

    .cp-filter-side,
    .cp-filter-content {
        padding: 18px;
    }

    .cp-filter-action,
    .cp-filter-action .btn,
    .cp-filter-action .cp-back-button {
        width: 100%;
    }

    .cp-filter-action {
        flex-direction: column-reverse;
    }

    .cp-captcha {
        gap: 12px;
        padding: 15px;
    }

    #profesionales {
        gap: 16px;
        margin-top: 10px;
        padding: 14px;
        border-radius: 14px;
    }

    .cp-agenda-profile,
    .cp-agenda-hours {
        padding: 15px;
    }

    .ui-datepicker {
        max-width: none;
    }

    .swal2-modal {
        max-width: calc(100vw - 24px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Demo Portal 2 - agenda inspirada en la toma web de Icos */
.dp-agenda-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 83% 16%, rgba(84, 166, 230, 0.12), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%);
}

.dp-agenda-container {
    width: min(100% - 32px, 1320px);
    padding-bottom: 34px;
}

.dp-agenda-actions {
    margin-top: 0;
}

.dp-agenda-header {
    max-width: 720px;
    margin: 4px auto 22px;
    text-align: center;
}

.dp-agenda-kicker {
    display: inline-block;
    margin-bottom: 4px;
    color: #54a6e6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dp-agenda-header h1 {
    margin: 0;
    color: #17324d;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.12;
}

.dp-agenda-header p {
    margin: 8px 0 0;
    color: #60758a;
    font-size: 16px;
}

#profesionales.dp-agenda-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.76fr) minmax(330px, 1.08fr) minmax(360px, 1.32fr);
    gap: 18px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dp-professional-column,
.dp-calendar-card,
.dp-hours-card {
    min-width: 0;
}

.dp-professional-card,
.dp-calendar-card,
.dp-hours-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d8e5f2;
    border-radius: 18px;
    box-shadow: 0 13px 36px rgba(23, 50, 77, 0.09);
}

.dp-professional-card {
    padding: 10px;
    text-align: center;
}

.dp-professional-photo-wrap {
    overflow: hidden;
    height: 220px;
    aspect-ratio: 1 / 1;
    background: #eaf3fa;
    border-radius: 14px;
}

.dp-professional-photo {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.dp-professional-summary {
    padding: 14px 8px 10px;
}

.dp-professional-summary > span {
    display: block;
    margin-bottom: 4px;
    color: #70859a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dp-professional-summary h2 {
    margin: 0;
    color: #17324d;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.28;
}

.dp-professional-summary p {
    margin: 7px 0 0;
    color: #397fc1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dp-calendar-card {
    padding: 20px;
}

.dp-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dp-step-number {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, #2766aa, #54a6e6);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    line-height: 34px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(39, 102, 170, 0.22);
}

.dp-step-heading h2 {
    margin: 1px 0 4px;
    color: #244565;
    font-size: 19px;
    font-weight: 750;
}

.dp-step-heading p {
    margin: 0;
    color: #74879a;
    font-size: 13px;
    line-height: 1.45;
}

.dp-calendar-card #datepicker {
    margin-top: 18px !important;
}

.dp-calendar-card .ui-datepicker {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0 !important;
}

.dp-calendar-card .ui-datepicker .ui-datepicker-header {
    background: #f1f7fc;
}

.dp-hours-card {
    min-height: 430px;
}

.dp-hours-heading {
    padding: 20px 22px;
    background: #f8fbfe;
    border-bottom: 1px solid #dce8f2;
}

.dp-hours-content {
    padding: 18px 22px 22px;
}

.dp-hours-summary {
    display: none;
    margin: 0 0 12px;
    color: #4f6780;
    font-size: 14px;
}

.dp-hours-summary.is-visible {
    display: block;
}

.dp-hours-summary strong {
    color: #17324d;
}

.dp-hours-card #horas {
    min-height: 290px;
    padding: 0;
}

.dp-hours-card #horas .list-group-item {
    display: flex;
    align-items: center;
    min-height: 58px;
    margin: 0;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #dce6ef;
    border-bottom-width: 0;
    border-radius: 0;
}

.dp-hours-card #horas .list-group-item:first-child {
    border-radius: 10px 10px 0 0;
}

.dp-hours-card #horas .list-group-item:last-child {
    border-bottom-width: 1px;
    border-radius: 0 0 10px 10px;
}

.dp-hours-card #horas .list-group-item:only-child {
    border-radius: 10px;
}

.dp-hours-card #horas .list-group-item img {
    width: 25px;
    height: 25px;
    margin-right: 5px;
    object-fit: contain;
}

.dp-hours-card #horas .list-group-item a {
    flex: 1;
    justify-content: flex-start;
    min-height: 46px;
    margin: 0;
    color: #2f80c6;
    font-size: 16px;
    font-weight: 600;
}

.dp-hours-card #horas .list-group-item:hover {
    background: #f2f8fd;
}

.dp-agenda-state {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.dp-agenda-state h3 {
    margin: 8px 0 5px;
    color: #244565;
    font-size: 17px;
}

.dp-agenda-state p {
    margin: 0;
    color: #74879a;
    font-size: 14px;
}

.dp-agenda-state-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: #397fc1;
    background: #eaf4fd;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
}

.dp-agenda-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #d6e8f7;
    border-top-color: #2766aa;
    border-radius: 50%;
    animation: dp-spin 0.8s linear infinite;
}

@keyframes dp-spin {
    to { transform: rotate(360deg); }
}

.dp-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #d8e5f2;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(23, 50, 77, 0.07);
}

.dp-trust-item {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 5px 18px;
    color: #294c70;
    border-left: 1px solid #d9e4ee;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.dp-trust-item:first-child {
    border-left: 0;
}

.dp-trust-item svg {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    fill: none;
    stroke: #2774c7;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1050px) {
    #profesionales.dp-agenda-layout {
        grid-template-columns: minmax(210px, 0.8fr) minmax(300px, 1.2fr);
    }

    .dp-hours-card {
        grid-column: 1 / -1;
    }

    .dp-trust-strip {
        grid-template-columns: 1fr 1fr;
    }

    .dp-trust-item:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 680px) {
    .dp-agenda-container {
        width: min(100% - 20px, 1320px);
    }

    .dp-agenda-header {
        margin-bottom: 18px;
    }

    .dp-agenda-header p {
        font-size: 14px;
    }

    #profesionales.dp-agenda-layout {
        grid-template-columns: 1fr;
    }

    .dp-hours-card {
        grid-column: auto;
    }

    .dp-professional-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        align-items: center;
    }

    .dp-professional-photo-wrap {
        height: 120px;
    }

    .dp-professional-summary {
        padding: 12px;
        text-align: left;
    }

    .dp-calendar-card,
    .dp-hours-heading,
    .dp-hours-content {
        padding: 16px;
    }

    .dp-trust-strip {
        grid-template-columns: 1fr;
        padding: 6px 14px;
    }

    .dp-trust-item {
        justify-content: flex-start;
        border-top: 1px solid #d9e4ee;
        border-left: 0;
    }

    .dp-trust-item:first-child {
        border-top: 0;
    }
}
