  :root {
            /* Colores modo claro (default) */
            --primary: #2563eb;
            --primary-light: #10b981;
            --primary-dark: #1d4ed8;
            --secondary: #10b981;
            --accent: #f59e0b;
            --light: #f8fafc;
            --dark: #0f172a;
            --white: #ffffff;
            --gray: #f1f5f9;
            --gray-dark: #e2e8f0;
            --text: #334155;
            --text-light: #64748b;
            --success: #10b981;
            --warning: #f59e0b;
            --error: #ef4444;
            --accent-color: #008371; /* Color de acento */
            --dark-bg-secondary: #f3f3f3; /* Fondo oscuro secundario */
            /* Variables adicionales para modo oscuro */
            --main-bg: #ffffff;
            --header-bg: #ffffff;
            --table-header-bg: rgba(0, 168, 150, 0.1);
            --table-row-hover: rgba(0, 168, 150, 0.05);
            --modal-bg: #ffffff;
            --input-bg: #f8fafc;
            --shadow-color: rgba(0, 0, 0, 0.1);
            --card-bg: #ffffff;
            --multas-bg: #fff3f3;
            --card-info-bg: #f8f9fa;
            --soluciones-container-bg1: #e3f2fd;
            --soluciones-container-bg2: #bbdefb;
            --atencion-urgente-bg: #fff8e1;
        }
        
        /* Modo oscuro */
        body.dark-mode {
            --main-bg: #121212;
            --header-bg: #1e1e1e;
            --table-header-bg: rgba(0, 168, 150, 0.1);
            --table-row-hover: rgba(0, 168, 150, 0.05);
            --modal-bg: #1e1e1e;
            --input-bg: #2d2d2d;
            --shadow-color: rgba(0, 0, 0, 0.3);
            --card-bg: #1e1e1e;
            --dark-bg-secondary: #1e1e1e; /* Fondo oscuro secundario */
            --light: #1e1e1e;
            --white: #1e1e1e;
            --gray: #2d2d2d;
            --gray-dark: #3d3d3d;
            --text: #e0e0e0;
            --text-light: #b0b0b0;
            --dark: #f8fafc;
            --multas-bg: #332727;
            --card-info-bg: #1a1a1a;
            --soluciones-container-bg1: #202427;
            --soluciones-container-bg2: #37444f;
            --atencion-urgente-bg: #25231d;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }
        
        body {
            background-color: var(--main-bg);
            color: var(--text);
            line-height: 1.6;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        
          /* Custom Scrollbar */
            ::-webkit-scrollbar {
                width: 8px;
                height: 8px;
            }

            ::-webkit-scrollbar-track {
                background: var(--dark-bg-secondary);
                border-radius: 10px;
            }

            ::-webkit-scrollbar-thumb {
                background: var(--accent-color);
                border-radius: 10px;
            }

            ::-webkit-scrollbar-thumb:hover {
                background: #00695c;
            }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 6px 1rem;
        }
        /* Estilos para los logos */
        .logo-img {
            height: 100px;
        }

        .dark-logo {
            display: none;
        }

        .light-logo {
            display: block;
        }

        /* Modo oscuro */
        body.dark-mode .dark-logo {
            display: block;
        }

        body.dark-mode .light-logo {
            display: none;
        }
        body.dark-mode .pint-logo {
            display: none;
        }
        .recommendations{
            display: none;
        }

        .print-logo{
            display: none;
        }
        .pint-logo{
            display: none;
        }
        .header {
            background-color: var(--header-bg);
            box-shadow: 0 4px 6px -1px var(--shadow-color);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }
        .header-print{
            display: none;
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .valid{
            display: flex;
            gap: 1rem;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .logoPacient {
            display: flex;
            align-items: center;
            gap: 15px;
            justify-content: center;
        }
        .logo img {
            height: 100px;
        }
        
        .logo h1 {
            color: var(--primary);
            font-size: 24px;
            font-weight: 700;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .step-indicator {
            display: flex;
            justify-content: center;
            position: relative;
        }
        
        .step-line {
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 4px;
            background-color: var(--gray-dark);
            z-index: 1;
        }
        
        .step-line-progress {
            position: absolute;
            top: 20px;
            left: 0;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            z-index: 2;
            transition: width 0.4s ease;
        }
        
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 3;
            padding-left: 3px;
        }
        
        .step-number {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background-color: var(--white);
            color: var(--text-light);
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 600;
            margin-bottom: 10px;
            border: 4px solid var(--gray-dark);
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px -1px var(--shadow-color);
        }
        
        .step.active .step-number {
            background-color: var(--primary);
            color: var(--white);
            border-color: var(--primary);
        }
        
        .step.completed .step-number {
            background-color: var(--secondary);
            color: var(--white);
            border-color: var(--secondary);
        }
        
        .step-title {
            font-size: 14px;
            color: var(--text-light);
            text-align: center;
            font-weight: 500;
            max-width: 120px;
        }
        
        .step.active .step-title {
            color: var(--primary);
            font-weight: 600;
        }
        
        .step.completed .step-title {
            color: var(--secondary);
        }
        .view-more{
            display: flex;
            justify-content: space-between;
        }
        .card {
            background-color: var(--card-bg);
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px var(--shadow-color);
            margin-bottom: -6px;
            transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
            padding: 10px;
        }
        
        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px var(--shadow-color);
        }
        
        .card-title {
            color: var(--primary);
            margin-bottom: 20px;
            font-size: 22px;
            font-weight: 600;
            position: relative;
            padding-bottom: 10px;
        }
        
        .card-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            border-radius: 3px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
                /* Modal de cancelación */
        .cancel-form {
            padding: 20px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: var(--text);
        }
        
        .form-group select, 
        .form-group textarea {
            width: 100%;
            border-radius: 6px;
            /* border: 1px solid var(--border-color); */
            background-color: var(--input-bg);
            color: var(--text);
            padding: 16px;
        }
        
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text);
        }
        
        .form-control {
            width: 100%;
            padding: 14px 34px;
            border: 1px solid var(--gray-dark);
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
            background-color: var(--input-bg);
            color: var(--text);
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1em;
        }

        .form-control:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            background-color: var(--input-bg);
        }
        
        .btn {
            padding: 14px 28px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
                
        .btn-primary {
            position: relative;
            overflow: hidden;
            color: var(--white);
            background: linear-gradient(to right, var(--primary), var(--primary-light));
            box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        /* Pseudo-elemento con el gradiente invertido */
        .btn-primary::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(to right, var(--primary-light), var(--primary));
            opacity: 0;
            transition: opacity 0.6s ease; /* suavidad aquí */
            z-index: -1;
        }

        /* Texto y contenido siempre arriba */
        .btn-primary > * {
            position: relative;
            z-index: 1;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
        }

        .btn-primary:hover::before {
            opacity: 1;
        }

        .btn-secondary {
            background: linear-gradient(to right, var(--secondary), #34d399);
            color: var(--white);
            box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
        }
        
        .btn-secondary:hover {
            background: linear-gradient(to right, #0d9488, var(--secondary));
            transform: translateY(-1px);
            box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
        }
        
        .btn-outline {
            background-color: var(--primary-light);
            border: 2px solid var(--primary);
            color: var(--white);
        }
        
        .btn-outline:hover {
            background-color: rgba(37, 99, 235, 0.05);
            border: 2px solid var(--primary-dark);
            color: var(--primary-dark);

        }
        
        .btn-back {
            background-color: transparent;
            color: var(--primary);
            display: flex;
            align-items: center;
            padding: 0;
            margin-bottom: 20px;
            font-weight: 500;
        }
        
        .btn-back i {
            margin-right: 8px;
            transition: transform 0.3s ease;
        }
        
        .btn-back:hover {
            color: var(--primary-dark);
        }
        
        .btn-back:hover i {
            transform: translateX(-3px);
        }
        
        /* Estilos para las listas desplegables */
        .select-container {
            position: relative;
            margin-bottom: 25px;
        }
        
        .select-container i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
            z-index: 2;
        }
        
        .select-with-icon {
            padding-left: 45px !important;
        }
        
        /* Estilos para la selección de citas */
        .appointments-container {
            display: none;
        }
        
        .appointments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .appointments-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--primary);
        }
        
        .appointments-date {
            font-size: 16px;
            color: var(--text);
            background-color: var(--gray);
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 500;
        }
        
        .appointments-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
            max-height: 300px;  
            padding: 4px;
            overflow-y: auto;
            overflow-x: hidden;
        }

        
        .appointment-card {
            border: 2px solid var(--gray-dark);
            border-radius: 10px;
            padding: 20px;
            transition: all 0.3s ease;
            cursor: pointer;
            background-color: var(--card-bg);
        }
        
        .appointment-card:hover {
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px var(--shadow-color);
        }
        
        .appointment-card.selected {
            border: 2px solid var(--primary);
            background-color: rgba(37, 99, 235, 0.05);
        }
        
        .appointment-time {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .appointment-time i {
            font-size: 16px;
        }
        
        .appointment-doctor {
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--text);
        }
        
        .appointment-room {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-light);
            font-size: 14px;
        }
        
        .calendar-container {
            margin: 30px 0;
        }
        .data-date{
            display: flex;
        }
        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .calendar-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary);
        }
        
        .calendar-nav {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .calendar-nav-btn {
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            padding: 5px 10px;
            color: var(--primary);
            border-radius: 6px;
            transition: all 0.3s ease;
        }
        
        .calendar-nav-btn:hover {
            background-color: rgba(37, 99, 235, 0.1);
        }
        
        .calendar-month {
            margin: 0 15px;
            font-weight: 500;
            min-width: 120px;
            text-align: center;
        }
        
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
        }
        
        .calendar-day-header {
            text-align: center;
            font-weight: 600;
            padding: 10px;
            color: var(--primary);
            font-size: 14px;
        }
        
        .calendar-day {
            border: 1px solid var(--gray-dark);
            border-radius: 8px;
            padding: 10px;
            min-height: 80px;
            cursor: pointer;
            transition: all 0.3s ease;
            background-color: var(--card-bg);
        }
        
        .calendar-day:hover {
            background-color: rgba(37, 99, 235, 0.05);
        }
        
        .calendar-day.disabled {
            background-color: var(--gray);
            color: #ccc;
            cursor: not-allowed;
        }
        
        .calendar-day.has-appointments {
            border: 1px solid var(--secondary);
            background-color: rgba(16, 185, 129, 0.05);
        }
        
        .calendar-day.selected {
            border: 2px solid var(--primary);
            background-color: rgba(37, 99, 235, 0.1);
        }
        
        .day-number {
            font-weight: 600;
            margin-bottom: 5px;
            text-align: right;
        }
        
        .appointment-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: var(--secondary);
            border-radius: 50%;
            margin-right: 3px;
        }
        
        /* Estilos para la vista previa de la cita */
        .appointment-preview {
            max-width: 1117px;
            margin: 0 auto;
        }
        
        .appointment-info {
            margin-bottom: 30px;
            background-color: var(--gray);
            border-radius: 10px;
            padding: 20px;
        }
        
        .appointment-info-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid var(--gray-dark);
        }
        
        .appointment-info-item:last-child {
            border-bottom: none;
        }
        
        .appointment-info-label {
            font-weight: 600;
            color: var(--text-light);
            text-align: left;
        }
        
        /* Estilos para la confirmación de cita */
        .appointment-confirmed {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .confirmation-icon {
            font-size: 80px;
            color: var(--success);
            display: flex;
            align-items: center;
        }
        
        .confirmation-title {
            font-size: 28px;
            color: var(--primary);
            margin-bottom: 5px;
            font-weight: 700;
        }
        
        .confirmation-message {
            margin-bottom: 14px;
            color: var(--text);
            font-size: 16px;
            line-height: 1.7;
        }
        
        .qr-code {
            width: 200px;
            height: 200px;
            margin: 0 auto 30px;
            background-color: var(--white);
            display: flex;
            justify-content: center;
            align-items: center;
            border: 2px dashed var(--gray-dark);
            border-radius: 10px;
            padding: 10px;
        }
        
        .qr-code img {
            max-width: 100%;
            height: auto;
        }
        
        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 30px;
            flex-wrap: wrap;
        }
        
        /* Toggle switch para modo noche/día */
        .theme-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--gray-dark);
            transition: .4s;
            border-radius: 34px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: var(--white);
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: var(--primary);
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        .toggle-icon {
            font-size: 18px;
            color: var(--text);
        }
        
        /* Animaciones */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .logo h1 {
                font-size: 20px;
            }
            
            .logo img {
                height: 80px;
            }
            
            .card {
                padding: 10px;
            }
            
            .appointments-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .step-title {
                font-size: 12px;
                max-width: 80px;
            }
            
            .step-number {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }
            
            .step-line, .step-line-progress {
                top: 18px;
            }
            
            .appointments-grid {
                grid-template-columns: 1fr;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }
            
            .view-all-btn {
                width: 100%;
            }
            
            .calendar-grid {
                gap: 5px;
            }
            
            .calendar-day {
                min-height: 60px;
                padding: 5px;
            }
            
            .header-content {
                flex-direction: column;
                gap: 15px;
                padding: 15px 0;
            }
            
            .logo {
                flex-direction: column;
                text-align: center;
                gap: 5px;
            }
            
            .logo img {
                height: 70px;
            }
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 15px;
            }
            
            .card {
                padding: 5px;
            }
            
            .card-title {
                font-size: 20px;
            }
            
            .form-control {
                padding: 12px 39px;
            }
            
            .btn {
                padding: 12px 20px;
            }
            
            .step-indicator {
                margin-bottom: 30px;
            }
            
            .step-title {
                font-size: 10px;
                max-width: 60px;
            }
            
            .step-number {
                width: 30px;
                height: 30px;
                font-size: 12px;
                border-width: 3px;
            }
            
            .step-line, .step-line-progress {
                top: 15px;
                height: 3px;
            }
        }

.calendar-container {
  margin: 20px 0;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px var(--shadow-color);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  min-height: 40px;
  padding: 5px;
  border-radius: 5px;
}
/* Estilo para el día actual */
.calendar-day.today {
    position: relative;
    border: 2px solid #aaff3a; /* Borde azul */
    border-radius: 4px; /* Bordes ligeramente redondeados */
    background-color: rgba(104, 255, 58, 0.1); /* Fondo azul muy claro */
}

/* Eliminar cualquier estilo de círculo previo */
.calendar-day.today .appointment-dot {
    display: none;
}

.appointment-info-value {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

      
        
        @media (max-width: 600px) {
            .container {
                padding: 20px;
            }
            
            .modal {
                padding: 20px;
            }
        }


         .confirmation-banner {
            text-align: center;
            padding: 1.5rem;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border-radius: 8px;
            margin: 0 auto 2rem;
            max-width: 1200px;
        }

        .confirmation-banner h2 {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .confirmation-banner p {
            font-size: 1.1rem;
            opacity: 0.9;
        }


        .details-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow-color);
            padding: 0rem;
            margin-bottom: 0rem;
        }

        .details-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        @media (max-width: 768px) {
            .details-grid {
                grid-template-columns: 1fr;
            }
        }

        .info-section {
            margin-bottom: 0rem;
            padding: 9px;
        }

        .info-section h3 {
            color: var(--primary-light);
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 0.5rem;
        }

        .info-item {
            display: flex;
            justify-content: space-between;
            padding: 0.60rem 0;
            border-bottom: 1px solid var(--border-color);
        }

        .info-item:last-child {
            border-bottom: none;
        }

        .info-label {
            font-weight: 600;
            color: var(--text);
        }

        .info-value {
            color: var(--text);
            text-align: right;
        }

        .highlight {
            color: var(--primary-light);
            font-weight: 600;
        }

        .date-display {
            background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 150%);
            color: white;
            border-radius: 12px;
            padding: 0.7rem;
            text-align: center;
            margin-bottom: 0rem;
            display: flex;
            justify-content: space-between;
        }

        .date-weekday {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .date-day {
            font-size: 5rem;
            font-weight: 700;
            line-height: 1;
        }

        .date-month {
            font-size: 1.5rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        .date-time {
            font-size: 3.2rem;
            opacity: 0.9;
            font-weight: 700;
        }

        .qr-section {
            text-align: center;
            padding: 0rem;
            background-color: var(--card-bg);
            border-radius: 12px;
            box-shadow: 0 4px 10px var(--shadow-color);
            border: 1px solid var(--border-color);
            display: flex;
            justify-content: center;
        }
        .qrcont{
            display: flex;
            flex-direction: column;
        }
        .qr-image {
            max-width: 200px;
            margin: 0 auto 0rem;
            display: block;
        }

        .qr-section p {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .recommendations {
            background-color: var(--card-bg);
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow-color);
            padding: 0rem;
            margin-bottom: 2rem;
        }

        .recommendations h2 {
            color: var(--primary-light);
            text-align: center;
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
        }

        .recommendation {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .recommendation:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .recommendation h3 {
            color: var(--primary-light);
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .recommendation p {
            color: var(--text);
            line-height: 1.6;
        }

        .actions {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 2rem 0;
            flex-wrap: wrap;
        }

        .action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--text);
            transition: transform 0.2s;
        }

        .action-btn:hover {
            transform: translateY(-5px);
        }

        .action-icon {
            width: 60px;
            height: 60px;
            background-color: var(--primary-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.5rem;
            box-shadow: 0 4px 10px var(--shadow-color);
        }

        .action-icon i {
            color: white;
            font-size: 1.5rem;
        }

        .action-text {
            font-weight: 500;
            text-align: center;
        }

        .loading {
            text-align: center;
            padding: 2rem;
            font-size: 1.2rem;
            color: var(--text-light);
        }

        .error-message {
            text-align: center;
            padding: 2rem;
            background-color: #fee2e2;
            color: #b91c1c;
            border-radius: 8px;
            margin: 2rem 0;
        }

        @media print {
                    * {
            margin: 0;
            padding: 2px;
            box-sizing: border-box;
            font-size: 0.8rem;
        }
        .header{
            display: none;
        }
        .header-print{
            /* display: block; */
            position: sticky;
            top: 0px;
            z-index: 100;
            display: flex;
            align-items: center;
        }
        .recommendations{
            display: block;
        }
        .card {
            box-shadow: 0 4px 10px #ffffff;
            padding: 0px;
        }
                .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px #ffffff;
        }
            .appointment-confirmed {
            max-width: 100%;
            margin: 0 auto;
            padding: 0 0rem;
            }
            .step-indicator {
                display: none;
            }
            .confirmation-icon {
            display: none;
            }
            .action-buttons {
                display: none;
            }
            p.confirmation-message {
                display: none;
            }
                .container {
            max-width: 100%;
            margin: 0 auto;
            padding: 0px 0rem;
        }
            .print-logo{
                display: block;
                color: #10b981;
                font-size: 24px;
                font-weight: 700;
                margin-left: 13px;
            }
            .title-logo{
                display: none;
            }
            .header-content {
                display: flex;
                align-items: center;
                justify-content: flex-start;
                max-width: 1200px;
                margin: 0 auto;
                flex-direction: row;
                position: sticky;
                top: 0px;
            }
            .logo {
                display: flex;
                align-items: center;
                gap: 15px;
            }
            .logo img {
                height: 100px;
            }
            .logo h1 {
                color: #0f172a;

            }

            .light-logo {
                display: none;
            }
            .dark-logo {
                display: none;
            }
            body.dark-mode .dark-logo {
                display: none;
            }

            body.dark-mode .light-logo {
                display: none;
            }
            .pint-logo{
                display: block;
            }
            body.dark-mode .pint-logo {
                display: block;
            }
            .details-grid {
                display: grid!important;
                grid-template-columns: 1fr 1fr!important;
                gap: 2rem!important;
            }
            .info-item {
                border-bottom: 1px solid #e2e8f0;
            }
            .action-btn {
                display: none;
            }
            .theme-toggle {
                display: none;
            }
            .actions {
                display: none;
            }
            .details-card {
                margin-bottom: 0rem;
                border-bottom: 1px solid #e2e8f0;
            }
            .info-section {
                margin-bottom: 0rem;
            }
            .recommendation {
                margin-bottom: 0rem;
                padding-bottom: 0rem;
                border-bottom: 1px solid #e2e8f0;
                
            }
            .recommendation p {
                color: #334155;
                line-height: 1.6;
            }
            .info-label {
                font-weight: 600;
                color: #334155;
            }
            .info-value {
                color: #334155;
                text-align: right;
            }
            .highlight {
                color: #10b981;
                font-weight: 600;
            }
            .info-section h3 {
                color: #10b981;
                margin-bottom: 0.5rem;
                font-size: 1.2rem;
                border-bottom: 2px solid #2563eb;
                padding-bottom: 0.5rem;
            }
            .qr-section {
                border: 1px solid #e2e8f0;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            }
            body, .details-card, .recommendations {
                box-shadow: none !important;
                background-color: white !important;
                color: black !important;
                margin-bottom: 0rem;
                           font-size: 0.8rem;
            }
            .date-display {
                background: #10b981 !important;
                -webkit-print-color-adjust: exact;
                color-adjust: exact;
            }

        }


        .loading {
            text-align: center;
            padding: 2rem;
            font-size: 1.2rem;
            color: var(--text-light);
        }

        .error-message {
            text-align: center;
            padding: 2rem;
            background-color: #fee2e2;
            color: #b91c1c;
            border-radius: 8px;
            margin: 2rem 0;
        }

        /* Estilos adicionales para el modal y lista de citas */
        .view-all-btn {
            background: linear-gradient(135deg, var(--primary-light ) 0%, var(--primary-dark) 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 6px var(--shadow-color);
            transition: transform 0.2s, box-shadow 0.2s;
        }
    

                .view-all-btn {
            position: relative;
            overflow: hidden;
            color: var(--white);
            background: linear-gradient(to right, var(--primary), var(--primary-light));
            background: linear-gradient(135deg, var(--primary-light) -1%, #2f6462 60%, var(--primary-dark) 102%);
            box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }


        /* Pseudo-elemento con el gradiente invertido */
        .view-all-btn::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(195deg, var(--primary-light) -1%, #2f6462 60%, var(--primary-dark) 102%);
            opacity: 0;
            transition: opacity 0.6s ease; /* suavidad aquí */
            z-index: -1;
        }

        /* Texto y contenido siempre arriba */
        .view-all-btn > * {
            position: relative;
            z-index: 1;
        }

        .view-all-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
        }

        .view-all-btn:hover::before {
            opacity: 1;
        }
        
        /* Lista de citas */
        .appointments-list {
            display: grid;
            gap: 15px;
        }
        
        .appointment-card {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 10px var(--shadow-color);
            border-left: 4px solid var(--primary);
        }
        
        .appointment-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
        }
        
        .appointment-id {
            font-weight: 600;
            color: var(--primary);
        }
        
        .appointment-date {
            background-color: var(--primary-light);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .appointment-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .appointment-detail {
            display: flex;
            flex-direction: column;
        }
        
        .detail-label {
            font-size: 0.8rem;
            color: var(--text-light);
            margin-bottom: 4px;
        }
        
        .detail-value {
            font-weight: 500;
            color: var(--text);
        }
        
        .appointment-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }
        
        .btn {
            padding: 8px 16px;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            border: none;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.2s;
        }
        
        .btn-details {
            background-color: var(--primary-light);
            color: white;
            font-size: 0.8rem;
        }
        
        .btn-cancel {
            background-color: var(--error);
            color: white;
            font-size: 0.8rem;
        }
        
        .btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        /* Modal de detalles de cita */
        .appointment-detail-modal {
            max-width: 800px;
        }
        
        .detail-modal-content {
            padding: 20px;
        }
        
        /* Modal de cancelación */
        .cancel-form {
            padding: 20px;
        }
        
        
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .appointment-header {
                flex-direction: column;
                gap: 10px;
            }
            
            .appointment-details {
                grid-template-columns: 1fr;
            }
            
            .appointment-actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
        }

                /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            overflow-y: auto;
            padding: 20px 0;
        }
        
        .modal-content {
            background-color: var(--modal-bg);
            margin: 0px auto;
            border-radius: 12px;
            width: 90%;
            max-width: 1216px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
            font-size: 0.8rem;
        }
        .modal-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            padding: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h2 {
            font-size: 1.5rem;
            margin: 0;
        }
        
        .close-modal {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .modal-body {
            padding: 15px;
            max-height: 72vh;
            overflow-y: auto;
            max-height: 491px;
        }
        /* Estilos específicos para el modal de error */
.modal-icon {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.modal-message {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-color);
}

.modal-message p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.modal-contact {
    background-color: #f8f9fa00;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
}

.modal-contact p {
    margin: 5px 0;
    color: var(--text-color);
}

.modal-actions {
    text-align: center;
}

.close-modal-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

div:where(.swal2-container) div:where(.swal2-popup) {
    display: none;
    position: relative;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 100%);
    width: 75em;
    max-width: 100%;
    padding: var(--swal2-padding);
    border: var(--swal2-border);
    border-radius: var(--swal2-border-radius);
    background: var(--light);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    container-name: swal2-popup;
}

div:where(.swal2-icon).swal2-success .swal2-success-ring {
    position: absolute;
    z-index: 2;
    top: -0.25em;
    left: -0.25em;
    box-sizing: content-box;
    width: 100%;
    height: 100%;
    border: .25em solid rgb(17 211 149 / 30%);
    border-radius: 50%;
}
div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
    display: block;
    position: absolute;
    z-index: 2;
    height: .3125em;
    border-radius: .125em;
    background-color: #01d29f;
}
div:where(.swal2-icon).swal2-warning {
    border-color: #f17b15;
    color: #f17b15;
}

div:where(.swal2-icon) {
    position: relative;
    box-sizing: content-box;
    justify-content: center;
    width: 5em;
    height: 5em;
    margin: 0.5em auto 0.3em;
    zoom: var(--swal2-icon-zoom);
    border: .25em solid rgba(0, 0, 0, 0);
    border-radius: 50%;
    border-color: #000;
    font-family: inherit;
    line-height: 5em;
    cursor: default;
    user-select: none;
}
div:where(.swal2-container) h2:where(.swal2-title) {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0.5em 1em 0;
    color: inherit;
    font-size: 1.875em;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    overflow-wrap: break-word;
    cursor: initial;
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
    border-radius: var(--swal2-confirm-button-border-radius);
    background: initial;
    background-color: var(--primary-light);
    box-shadow: var(--swal2-confirm-button-box-shadow);
    color: var(--swal2-confirm-button-color);
    font-size: 1em;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover {
    background-color: var(--accent-color);
}

.confirm-card{

}

/* Estilos para la subida de archivos */
.file-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.file-input {
    display: none;
}

.file-upload-btn {
    background: linear-gradient(to right, var(--primary-light), var(--primary));
    color: var(--white)!important;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex!important;
    align-items: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}
.label-ulpoad {
    z-index: 10;
}
.file-upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    transition: left 0.4s ease-in-out;
    z-index: 1;
}

.file-upload-btn:hover::before {
    left: 0;
}

.file-upload-btn span {
    position: relative;
    z-index: 2;
}

.file-name {
    color: var(--primary-color);;
    font-size: 14px;
}

.file-preview {
    display: flex;
    align-items: center;
    background: var(--light);
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: 5px;
}

.file-preview-text {
    flex-grow: 1;
    font-size: 14px;
}

.file-remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
}

.file-remove-btn:hover {
    background: #c0392b;
}

.file-hint {
    color: var(--primary-color);
    font-size: 12px;
    margin-top: 5px;
}

.document-upload-section {
    background: var(--gray);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}
.confirm-card{
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
}

.apoinmendata {
    width: 100%;
}



/* Responsive */
@media (max-width: 768px) {
    .file-upload-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-upload-btn {
        justify-content: center;
    }
}



/* Estilos para el modal de multas */
.multas-popup .swal2-popup {
  border-radius: 12px;
  overflow: hidden;
}

.multas-header {
  background: linear-gradient(135deg, var(--multas-bg), var(--multas-bg));
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid #d9534f;
}

.multas-header h3 {
  color: #d9534f;
  margin: 0 0 10px 0;
  font-size: 18px;
}

.multas-header p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.multa-item {
  border: 1px solid var(--white);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background: var(--light);
}

.multa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.multa-title {
  margin: 0;
  color: #d9534f;
  font-size: 16px;
}

.dias-restantes {
  background: #d9534f;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.multa-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 14px;
}

.multa-info-item {
    color: var(--text);
}

.cita-info {
  margin-top: 10px;
  padding: 10px;
  background: var(--card-info-bg);
  border-radius: 5px;
}

.cita-info-title {
  color: #d9534f;
  margin-bottom: 5px;
}

.info-no-disponible {
  margin-top: 10px;
  padding: 10px;
  background: var(--card-info-bg);
  border-radius: 5px;
  text-align: center;
  color: var(--text);
  font-size: 13px;
}

.soluciones-container {
  background: linear-gradient(135deg, var(--soluciones-container-bg1), var(--soluciones-container-bg2));
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  border-left: 4px solid #2196f3;
}

.soluciones-title {
  color: #1976d2;
  margin: 0 0 15px 0;
  font-size: 16px;
}

.soluciones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  font-size: 14px;
}

.solucion-card {
  background: var(--card-info-bg);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s ease;
}

.solucion-card:hover {
  transform: translateY(-2px);
}

.solucion-presencial {
  border-top: 3px solid #1976d2;
}

.solucion-telefonica {
  border-top: 3px solid #4caf50;
}

.solucion-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.icon-presencial {
  color: #1976d2;
}

.icon-telefonico {
  color: #4caf50;
}

.solucion-card strong {
  display: block;
  margin-bottom: 8px;
}

.atencion-urgente {
  background: var(--atencion-urgente-bg);
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #ffc107;
}

.atencion-urgente strong {
  color: #ff9800;
}

.alerta-final {
  background: var(--multas-bg);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
  color: #d32f2f;
  font-weight: bold;
}

/* Estilos para el texto dentro de las tarjetas */
.multa-content {
  font-family: Arial, sans-serif;
}

.solucion-text {
  margin: 8px 0 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.telefono-destacado {
  font-size: 16px;
  color: #4caf50;
  font-weight: bold;
  margin: 5px 0;
}


















