.turno-page {
    padding: 24px;
}

.turno-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.turno-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #eef0f4;
}

.turno-card__body {
    padding: 24px;
}

.turno-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.turno-subtitle {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
}

.turno-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.turno-btn {
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.turno-btn:hover {
    transform: translateY(-1px);
}

.turno-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.turno-btn--primary {
    background: #f97316;
    color: #ffffff;
}

.turno-btn--ghost {
    background: #f3f4f6;
    color: #111827;
}

.turno-btn--danger {
    background: #dc2626;
    color: #ffffff;
}

.turno-alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
}

.turno-alert--info {
    background: #eff6ff;
    color: #1d4ed8;
}

.turno-alert--success {
    background: #ecfdf5;
    color: #047857;
}

.turno-alert--error {
    background: #fef2f2;
    color: #dc2626;
}

.turno-section {
    margin-top: 18px;
    background: #f9fafb;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 18px;
}

.turno-section h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #111827;
}

.turno-resumen__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.turno-resumen__item {
    background: #ffffff;
    border: 1px solid #eceff4;
    border-radius: 12px;
    padding: 14px;
}

.turno-resumen__item span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.turno-resumen__item strong {
    font-size: 16px;
    color: #111827;
    word-break: break-word;
}

.turno-empty {
    margin-top: 16px;
    padding: 18px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
    font-size: 14px;
}

.turno-empty--warning {
    background: #fff7ed;
    border: 1px dashed #fdba74;
    color: #c2410c;
}

.turno-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.turno-modal.is-open {
    display: block;
}

.turno-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.turno-modal__dialog {
    position: relative;
    width: min(96vw, 560px);
    max-height: 88vh;
    margin: 6vh auto 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1;
}

.turno-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #eef0f4;
    background: #ffffff;
}

.turno-modal__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #374151;
}

.turno-modal__close {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.turno-modal__close:hover {
    color: #111827;
}

.turno-form {
    padding: 20px;
    max-height: calc(88vh - 72px);
    overflow-y: auto;
}

.turno-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .turno-card__header {
        flex-direction: column;
    }

    .turno-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .turno-modal__dialog {
        width: min(96vw, 96vw);
        margin-top: 2vh;
    }
}