/*
 * Archivo: turnos.css
 * Modulo: Assets visuales
 *
 * Responsabilidad:
 * - Agregar ajustes propios de Turnos sobre Modernize Pro.
 * - Mantener estilos especificos de la app sin reemplazar el core visual del theme.
 *
 * No debe:
 * - Redefinir tipografias, fondos o tarjetas globales de Modernize.
 * - Reemplazar el comportamiento del sidebar, topbar u offcanvas del theme.
 */

.turnos-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bs-light);
}

.turnos-login__form {
    width: min(100%, 420px);
}

.turnos-publico {
    min-height: 100vh;
    background: var(--bs-light);
}

.turnos-saas {
    min-height: 100vh;
    background: #f4f7fb;
}

.turnos-saas-hero {
    padding: 96px 0 72px;
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.08)),
        #f8fbff;
}

.turnos-saas-panel,
.turnos-saas-feature,
.turnos-saas-metric {
    border: 1px solid #e8eef7;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.turnos-saas-panel {
    padding: 32px;
}

.turnos-saas-feature {
    min-height: 190px;
    padding: 28px;
}

.turnos-saas-metric {
    min-height: 96px;
    padding: 18px;
}

.turnos-saas-metric strong,
.turnos-saas-metric span {
    display: block;
}

.turnos-saas-metric strong {
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

.turnos-saas-metric span {
    color: #5a6a85;
    margin-top: 4px;
}

.turnos-turnos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.turnos-home {
    min-height: 100vh;
    background: #f6f9fc;
}

.turnos-home-hero {
    padding: 112px 0 72px;
    background:
        linear-gradient(135deg, rgba(93, 135, 255, 0.14), rgba(19, 222, 185, 0.08)),
        #f8fbff;
}

.turnos-home-preview,
.turnos-home-feature,
.turnos-home-metric,
.turnos-home-plan {
    border: 1px solid #e8eef7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.turnos-home-preview {
    position: relative;
    padding: 14px;
}

.turnos-home-preview img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 6px;
}

.turnos-home-preview__bar {
    display: flex;
    gap: 6px;
    padding: 0 0 12px;
}

.turnos-home-preview__bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d9e2ef;
}

.turnos-home-floating {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: min(300px, calc(100% - 56px));
    padding: 16px;
    border-radius: 8px;
    background: #fff;
}

.turnos-home-feature {
    min-height: 210px;
    padding: 28px;
}

.turnos-home-metric {
    min-height: 102px;
    padding: 18px;
}

.turnos-home-metric strong,
.turnos-home-metric span {
    display: block;
}

.turnos-home-metric strong {
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

.turnos-home-metric span {
    color: #5a6a85;
    margin-top: 4px;
}

.turnos-home-pricing {
    background: #eef5ff;
}

.turnos-home-plan {
    padding: 32px;
}

.turnos-register-summary {
    width: min(100%, 620px);
}

@media (max-width: 767.98px) {
    .turnos-home-hero {
        padding: 80px 0 48px;
    }

    .turnos-home-floating {
        position: static;
        width: 100%;
        margin-top: 14px;
        box-shadow: none !important;
        border: 1px solid #e8eef7;
    }

    .turnos-home-plan {
        padding: 24px;
    }
}

.turnos-chip {
    min-height: 40px;
}

.turnos-tabla th,
.turnos-tabla td {
    vertical-align: middle;
}

.turnos-resumen-metrica {
    min-height: 132px;
}

.turnos-datatable-top .dt-buttons {
    display: inline-flex;
    border-radius: 5px;
    overflow: hidden;
}

.turnos-datatable-top .dt-buttons .btn {
    width: 47px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    background-color: #2eb8f6;
    color: #061226;
    box-shadow: none;
}

.turnos-datatable-top .dt-buttons .btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.turnos-datatable-top .dt-buttons .btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-right: 0;
}

.turnos-datatable-top .dt-buttons .btn:hover,
.turnos-datatable-top .dt-buttons .btn:focus {
    background-color: #18a8eb;
    color: #061226;
}

.turnos-datatable-top .dt-buttons .btn.disabled,
.turnos-datatable-top .dt-buttons .btn:disabled {
    opacity: 1;
    background-color: #39bdf8;
    color: rgba(6, 18, 38, 0.48);
}

.dataTables_wrapper .dataTables_filter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter input {
    width: 150px;
    height: 28px;
    border: 1px solid #d5e0f2;
    border-radius: 5px;
    margin-left: 0;
}

table.dataTable.turnos-tabla-gestion {
    border: 1px solid #e8eef7;
    border-collapse: collapse !important;
}

table.dataTable.turnos-tabla-gestion thead th,
table.dataTable.turnos-tabla-gestion tbody td {
    border: 1px solid #e8eef7;
    padding: 16px;
}

table.dataTable.turnos-tabla-gestion thead th {
    font-weight: 700;
    color: #0f172a;
    background: #fff;
}

table.dataTable.turnos-tabla-gestion tbody tr.selected > * {
    background-color: #0d6efd !important;
    color: #fff !important;
    box-shadow: none !important;
}

table.dataTable.turnos-tabla-gestion tbody tr.selected .badge {
    background-color: #dffcf4 !important;
    color: #00a887 !important;
}
