/* #282: estilos del wizard de reserva pública, extraídos de
   templates/public/appointment_wizard.html (bloque <style> de ~1299 líneas)
   a un .css cacheable y compatible con CSP. Sin cambios de reglas. */
    /* VERSIÓN 2.0 - ESTILOS MEJORADOS MÉDICOS */
    .wizard-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem 1rem;
        padding-top: calc(var(--header-height, 80px) + 2rem);
    }
    
    @media (max-width: 1023px) {
        .wizard-container {
            padding-top: calc(var(--mobile-header-height, 70px) + 2rem);
        }
    }
    
    /* Barra de progreso */
    .wizard-progress-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 3rem;
        padding: 1.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .progress-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    
    .progress-step .step-number {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: #e2e8f0;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
        z-index: 2;
    }
    
    .progress-step .step-number i {
        font-size: 1.25rem;
    }
    
    .progress-step.active .step-number {
        background: #0891b2;
        color: white;
        box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.2);
        transform: scale(1.1);
    }
    
    .progress-step.completed .step-number {
        background: #10b981;
        color: white;
    }
    
    .progress-step .step-label {
        font-size: 0.875rem;
        color: #64748b;
        font-weight: 500;
        text-align: center;
    }
    
    .progress-step.active .step-label {
        color: #0891b2;
        font-weight: 600;
    }
    
    .progress-step.completed .step-label {
        color: #10b981;
    }
    
    .progress-line {
        height: 3px;
        width: 80px;
        background: #e2e8f0;
        margin: 0 0.5rem;
        margin-bottom: 2rem;
        transition: all 0.3s ease;
    }
    
    .progress-line.completed {
        background: #10b981;
    }
    
    /* Responsive */
    @media (max-width: 640px) {
        .wizard-progress-bar {
            padding: 1rem;
        }
        
        .progress-step .step-number {
            width: 35px;
            height: 35px;
            font-size: 0.875rem;
        }
        
        .progress-step .step-label {
            font-size: 0.75rem;
        }
        
        .progress-line {
            width: 40px;
        }
    }

    /* #452: en pantallas muy chicas el stepper se amontona y el callout del registro
       se pega a los bordes. Dejar solo los numeros del stepper y airear el alert. */
    @media (max-width: 480px) {
        .progress-step .step-label {
            display: none;
        }
        #registration-form .alert {
            padding: 0.85rem;
            font-size: 0.9rem;
        }
    }

    .wizard-step {
        background: white;
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .wizard-step-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
        background: #0891b2;
        color: white;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 1rem;
    }
    
    .wizard-step-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #374151;
    }
    
    .form-group select,
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        font-size: 1rem;
        transition: border-color 0.2s;
    }
    
    .form-group select:focus,
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #0891b2;
        box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    }
    
    .form-error {
        color: #dc2626;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    
    .btn-hero {
        padding: 0.75rem 2rem;
        border: none;
        border-radius: 0.5rem;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        width: 100%;
    }
    
    .btn-hero--primary {
        background: linear-gradient(135deg, var(--primary, #1B4F8A) 0%, var(--accent-dark, #25A876) 100%);
        color: white;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        box-shadow: 0 2px 8px rgba(27, 79, 138, 0.18);
    }

    .btn-hero--primary:hover {
        opacity: 0.92;
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(27, 79, 138, 0.26);
    }

    .btn-hero--secondary {
        background: #fff;
        color: var(--text-main, #0F1B2D);
        border: 1px solid var(--border-color, #e2e8f0);
        text-decoration: none;
        display: inline-block;
        text-align: center;
    }

    .btn-hero--secondary:hover {
        background: var(--primary-light, #E8EEF5);
        border-color: var(--primary, #1B4F8A);
        color: var(--text-main, #0F1B2D);
        text-decoration: none;
    }

    .btn-hero:disabled {
        background: #cbd5e1;
        color: #fff;
        cursor: not-allowed;
        opacity: 0.8;
        box-shadow: none;
        transform: none;
    }

    /* Navegación del paso: botones a cada extremo con tamaño compacto. */
    .wizard-nav-buttons .btn-hero {
        width: auto;
        min-width: 160px;
        padding: 0.7rem 1.5rem;
    }
    @media (max-width: 560px) {
        /* En móvil: apilados y a ancho completo para que sean fáciles de tocar. */
        .wizard-nav-buttons { flex-direction: column-reverse; }
        .wizard-nav-buttons .btn-hero { width: 100%; }
    }

    .wizard-calendar {
        margin: 2rem 0;
    }
    
    .confirmation-box {
        background: #f0fdf4;
        border: 1px solid #86efac;
        border-radius: 0.5rem;
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .confirmation-box h3 {
        color: #166534;
        margin-top: 0;
    }
    
    .confirmation-box ul {
        list-style: none;
        padding: 0;
    }
    
    .confirmation-box li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #d1fae5;
    }
    
    .confirmation-box li:last-child {
        border-bottom: none;
    }
    
    .confirmation-box strong {
        color: #166534;
    }
    
    /* Estilos para el formulario de crispy forms */
    #registration-form .mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    #registration-form .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    #registration-form .col-md-6,
    #registration-form .col-md-4,
    #registration-form .col-md-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #registration-form .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #374151;
        font-size: 0.95rem;
    }
    
    #registration-form .form-control,
    #registration-form .form-select {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        font-size: 1rem;
        transition: border-color 0.2s;
    }
    
    #registration-form .form-control:focus,
    #registration-form .form-select:focus {
        outline: none;
        border-color: #0891b2;
        box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    }
    
    #registration-form h5 {
        color: #0891b2;
        font-size: 1.25rem;
        font-weight: 600;
        margin-top: 2rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    #registration-form h5:first-of-type {
        margin-top: 0;
    }
    
    #registration-form h6 {
        color: #0891b2;
        font-size: 1.1rem;
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    #registration-form .alert {
        padding: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    #registration-form .alert-info {
        background-color: #dbeafe;
        border: 1px solid #93c5fd;
        color: #1e40af;
    }
    
    #registration-form .alert-warning {
        background-color: #fef3c7;
        border: 1px solid #fcd34d;
        color: #92400e;
    }
    
    #registration-form .alert i {
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    #registration-form .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 0.5rem;
        cursor: pointer;
    }
    
    #registration-form .asteriskField {
        color: #dc2626;
        margin-left: 0.25rem;
    }
    
    #registration-form hr {
        border: none;
        border-top: 1px solid #e5e7eb;
        margin: 2rem 0;
    }
    
    /* Responsive para formulario */
    @media (max-width: 768px) {
        #registration-form .col-md-6,
        #registration-form .col-md-4,
        #registration-form .col-md-12 {
            width: 100%;
            margin-bottom: 1rem;
        }
    }
    
    /* Estilos para vista de slots simplificada */
    .slots-day {
        margin-bottom: 2rem;
    }
    
    .slots-day-header {
        background: #f0f9ff;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .slots-day-header h4 {
        margin: 0;
        color: #0891b2;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .slots-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .slot-btn {
        padding: 1rem;
        border: 2px solid #e5e7eb;
        border-radius: 0.5rem;
        background: white;
        cursor: pointer;
        transition: all 0.2s;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .slot-btn:hover {
        border-color: #0891b2;
        background: #f0f9ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .slot-btn.selected {
        border-color: #0891b2;
        background: #0891b2;
        color: white;
    }
    
    .slot-btn .slot-time {
        font-size: 1.125rem;
        font-weight: 600;
        color: #0f172a;
    }
    
    .slot-btn.selected .slot-time {
        color: white;
    }
    
    .slot-btn .slot-duration {
        font-size: 0.875rem;
        color: #64748b;
    }
    
    .slot-btn.selected .slot-duration {
        color: #e0f2fe;
    }
    
    .slot-btn .slot-badge {
        display: inline-block;
        padding: 0.125rem 0.5rem;
        background: #fef3c7;
        color: #92400e;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        font-weight: 600;
        margin-top: 0.25rem;
    }
    
    .slots-urgency {
        padding: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .slots-urgency.alta {
        background: #fef2f2;
        border: 1px solid #fca5a5;
        color: #991b1b;
    }
    
    .slots-urgency.media {
        background: #fef3c7;
        border: 1px solid #fcd34d;
        color: #92400e;
    }
    
    .slots-urgency.baja {
        background: #f0fdf4;
        border: 1px solid #86efac;
        color: #166534;
    }
    
    .slots-empty {
        text-align: center;
        padding: 3rem 1rem;
        color: #64748b;
    }
    
    @media (max-width: 640px) {
        .slots-grid {
            grid-template-columns: 1fr;
        }
    }
    
    /* Tarjetas para centros y especialidades - Grid optimizado */
    .option-cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.25rem;
    }
    
    /* Contenedor de wizard más ancho */
    .wizard-container {
        max-width: 1200px !important;
    }
    
    /* Secciones con altura automática, sin scroll forzado */
    .section-container {
        max-height: none;
        overflow: visible;
    }
    
    /* Si hay muchos items, usar scroll suave */
    .scrollable-section {
        max-height: 600px;
        overflow-y: auto;
        padding-right: 0.5rem;
    }
    
    .scrollable-section::-webkit-scrollbar {
        width: 10px;
    }
    
    .scrollable-section::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 5px;
    }
    
    .scrollable-section::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 5px;
    }
    
    .scrollable-section::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    
    .option-card {
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.25rem;
        cursor: pointer;
        transition: all 0.3s ease;
        background: white;
        display: flex;
        align-items: start;
        gap: 1rem;
    }
    
    .option-card:hover {
        border-color: #0891b2;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
    
    .option-card.selected {
        border-color: #0891b2;
        background: rgba(8, 145, 178, 0.05);
        box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    }
    
    .option-card-icon {
        font-size: 2.5rem;
        flex-shrink: 0;
    }
    
    .option-card-content {
        flex: 1;
    }
    
    .option-card-title {
        font-weight: 600;
        font-size: 1rem;
        color: #0f172a;
        margin: 0 0 0.25rem 0;
    }
    
    .option-card-subtitle {
        font-size: 0.875rem;
        color: #64748b;
        margin: 0;
    }
    
    @media (max-width: 640px) {
        .option-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.25rem;
        }
        
        /* Contenedor de wizard más ancho */
        .wizard-container {
            max-width: 1200px !important;
        text-align: center;
        padding: 2rem 0;
        animation: fadeInDown 0.6s ease-out;
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .success-checkmark {
        width: 80px;
        height: 80px;
        margin: 0 auto 1.5rem;
        border-radius: 50%;
        display: block;
        stroke-width: 2;
        stroke: #10b981;
        stroke-miterlimit: 10;
        box-shadow: inset 0px 0px 0px #10b981;
        animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
        position: relative;
    }
    
    @keyframes scale {
        0%, 100% { transform: none; }
        50% { transform: scale3d(1.1, 1.1, 1); }
    }
    
    @keyframes fill {
        100% { box-shadow: inset 0px 0px 0px 30px #10b981; }
    }
    
    .check-icon {
        width: 80px;
        height: 80px;
        position: relative;
        border-radius: 50%;
        box-sizing: content-box;
        border: 4px solid #10b981;
        background: white;
    }
    
    .icon-line {
        height: 5px;
        background-color: white;
        display: block;
        border-radius: 2px;
        position: absolute;
        z-index: 10;
    }
    
    .icon-line.line-tip {
        top: 43px;
        left: 21px;
        width: 25px;
        transform: rotate(45deg);
        animation: icon-line-tip 0.75s;
    }
    
    .icon-line.line-long {
        top: 38px;
        right: 13px;
        width: 47px;
        transform: rotate(-45deg);
        animation: icon-line-long 0.75s;
    }
    
    @keyframes icon-line-tip {
        0% { width: 0; left: 1px; top: 19px; }
        54% { width: 0; left: 1px; top: 19px; }
        70% { width: 50px; left: -8px; top: 37px; }
        84% { width: 17px; left: 21px; top: 48px; }
        100% { width: 25px; left: 21px; top: 43px; }
    }
    
    @keyframes icon-line-long {
        0% { width: 0; right: 46px; top: 54px; }
        65% { width: 0; right: 46px; top: 54px; }
        84% { width: 55px; right: 0px; top: 35px; }
        100% { width: 47px; right: 13px; top: 38px; }
    }
    
    .success-title {
        color: #10b981;
        font-size: 2rem;
        font-weight: 700;
        margin: 0 0 0.5rem 0;
    }
    
    .success-subtitle {
        color: #64748b;
        font-size: 1.125rem;
        margin: 0;
    }
    
    /* Ticket de confirmación */
    .confirmation-ticket {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
        padding: 2rem;
        margin: 2rem 0;
        border: 2px dashed #e2e8f0;
    }
    
    .ticket-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1.5rem;
        border-bottom: 2px dashed #e2e8f0;
        margin-bottom: 1.5rem;
    }
    
    .ticket-number {
        display: flex;
        flex-direction: column;
    }
    
    .ticket-label {
        font-size: 0.875rem;
        color: #64748b;
        margin-bottom: 0.25rem;
    }
    
    .ticket-id {
        font-size: 1.5rem;
        font-weight: 700;
        color: #0891b2;
    }
    
    .status-badge {
        padding: 0.5rem 1rem;
        border-radius: 9999px;
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .status-confirmed {
        background: #d1fae5;
        color: #065f46;
    }
    
    /* Tarjetas de información */
    .info-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .info-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 1.25rem;
        display: flex;
        gap: 1rem;
        transition: all 0.2s;
    }
    
    .info-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .info-card.card-primary {
        background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
        color: white;
        border: none;
    }
    
    .info-card.card-primary .card-label,
    .info-card.card-primary .card-value,
    .info-card.card-primary .card-subvalue {
        color: white;
    }
    
    .card-icon {
        font-size: 2rem;
        line-height: 1;
    }
    
    .card-content {
        flex: 1;
    }
    
    .card-label {
        font-size: 0.75rem;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
        font-weight: 600;
    }
    
    .card-value {
        font-size: 1.125rem;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 0.25rem;
    }
    
    .card-subvalue {
        font-size: 0.875rem;
        color: #64748b;
    }
    
    /* Timeline */
    .appointment-timeline {
        background: #f8fafc;
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: #1e293b;
        margin: 0 0 1.5rem 0;
    }
    
    .timeline-steps {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .timeline-step {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .step-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .step-content {
        flex: 1;
    }
    
    .step-title {
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 0.25rem;
    }
    
    .step-desc {
        font-size: 0.875rem;
        color: #64748b;
    }
    
    /* Acciones rápidas */
    .quick-actions {
        margin-bottom: 2rem;
    }
    
    .actions-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: #1e293b;
        margin: 0 0 1rem 0;
    }
    
    .actions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .action-btn {
        background: white;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 0.875rem;
        font-weight: 500;
        color: #1e293b;
    }
    
    .action-btn:hover {
        border-color: #0891b2;
        background: #f0f9ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .action-icon {
        font-size: 1.5rem;
    }
    
    /* Botones de confirmación */
    .confirmation-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .confirmation-actions .btn-hero {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Error box */
    .error-box {
        background: #fef2f2;
        border: 2px solid #fca5a5;
        border-radius: 12px;
        padding: 2rem;
        text-align: center;
    }
    
    .error-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
    }
    
    .error-title {
        color: #991b1b;
        font-size: 1.5rem;
        margin: 0 0 1rem 0;
    }
    
    .error-message {
        color: #7f1d1d;
        margin-bottom: 1.5rem;
    }
    
    /* Responsive para confirmación */
    @media (max-width: 640px) {
        .confirmation-ticket {
            padding: 1.5rem;
        }
        
        .ticket-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }
        
        .info-cards {
            grid-template-columns: 1fr;
        }
        
        .timeline-steps {
            gap: 1rem;
        }
        
        .actions-grid {
            grid-template-columns: 1fr;
        }
        
        .confirmation-actions {
            grid-template-columns: 1fr;
        }
    }
    
    /* Estilos para impresión */
    @media print {
        /* Ocultar elementos innecesarios */
        .confirmation-actions,
        .quick-actions,
        .wizard-progress-bar,
        .section-header,
        .success-animation,
        .credentials-box,
        .appointment-timeline {
            display: none !important;
        }

        /* #453: ocultar el chrome del sitio publico (nav + footer de base_public) para que
           el comprobante salga en UNA sola pagina (antes imprimia 3 por incluir todo el DOM). */
        .landing-nav,
        .js-navbar,
        footer {
            display: none !important;
        }

        /* Mantener visible el wizard-step pero sin estilos */
        .wizard-step {
            background: white !important;
            border-radius: 0 !important;
            padding: 0 !important;
            box-shadow: none !important;
        }
        
        /* Mostrar solo el ticket */
        .confirmation-ticket {
            display: block !important;
            border: 2px solid #000;
            page-break-inside: avoid;
            box-shadow: none;
            margin: 0;
            padding: 1.5rem;
            background: white;
        }
        
        /* Ajustar colores para impresión */
        .info-card.card-primary {
            background: #f0f9ff !important;
            color: #000 !important;
            border: 1px solid #000 !important;
        }
        
        .info-card.card-primary .card-label,
        .info-card.card-primary .card-value,
        .info-card.card-primary .card-subvalue {
            color: #000 !important;
        }
        
        .info-card {
            background: #fff !important;
            border: 1px solid #000 !important;
            box-shadow: none !important;
        }
        
        .ticket-header {
            border-bottom: 2px solid #000 !important;
        }
        
        .status-badge {
            border: 1px solid #000 !important;
        }
        
        .card-label,
        .card-value,
        .card-subvalue,
        .ticket-label,
        .ticket-id {
            color: #000 !important;
        }
        
        /* Asegurar que el contenedor principal sea visible */
        body {
            background: white !important;
        }
        
        .wizard-container {
            max-width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
        }
        
        /* Asegurar visibilidad del contenido */
        #step-4 {
            display: block !important;
        }
    }
    
    /* Tarjetas de médicos - Diseño mejorado */
    .medico-card {
        border: 2px solid #e2e8f0;
        border-radius: 16px;
        padding: 1.5rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        display: flex;
        align-items: center;
        gap: 1.25rem;
        margin-bottom: 1.25rem;
        position: relative;
        overflow: hidden;
    }
    
    .medico-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #0891b2 0%, #06b6d4 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .medico-card:hover {
        border-color: #0891b2;
        box-shadow: 0 8px 24px rgba(8, 145, 178, 0.15);
        transform: translateY(-4px);
    }
    
    .medico-card:hover::before {
        opacity: 1;
    }
    
    .medico-card.selected {
        border-color: #0891b2;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15), 0 8px 24px rgba(8, 145, 178, 0.2);
        transform: translateY(-2px);
    }
    
    .medico-card.selected::before {
        opacity: 1;
    }
    
    .medico-foto {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #e2e8f0;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .medico-avatar {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
        border: 4px solid #e2e8f0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
        transition: all 0.3s ease;
    }
    
    .medico-avatar i {
        font-size: 2.75rem;
        color: white;
    }
    
    .medico-card:hover .medico-foto,
    .medico-card:hover .medico-avatar {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(8, 145, 178, 0.3);
    }
    
    .medico-card.selected .medico-foto,
    .medico-card.selected .medico-avatar {
        border-color: #0891b2;
        box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
    }
    
    .medico-info {
        flex: 1;
        min-width: 0;
    }
    
    .medico-nombre {
        font-weight: 700;
        font-size: 1.15rem;
        color: #0f172a;
        margin: 0 0 0.625rem 0;
        line-height: 1.3;
    }
    
    .medico-card.selected .medico-nombre {
        color: #0891b2;
    }
    
    .medico-especialidades {
        color: #0891b2;
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }
    
    .medico-especialidades::before {
        content: '⚕️';
        font-size: 1rem;
    }
    
    .medico-ubicacion {
        color: #64748b;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-weight: 500;
    }
    
    .medico-ubicacion i {
        color: #94a3b8;
    }
    
    /* Grid de médicos responsive */
    #medicos-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    @media (max-width: 1200px) {
        #medicos-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    @media (max-width: 900px) {
        #medicos-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 600px) {
        #medicos-grid {
            grid-template-columns: 1fr;
        }
    }
    
    /* Animación de rotación para el icono de carga */
    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }
    
    .rotating {
        animation: rotate 2s linear infinite;
        display: inline-block;
    }
    
    /* Botón deshabilitado durante envío */
    .btn-hero:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
