body {
            font-family: 'Inter', sans-serif;
            font-size: 16px; /* Base font size */
            -webkit-tap-highlight-color: transparent; /* Mejora la experiencia táctil */
        }
        .tab-active {
            border-bottom-color: #3b82f6; /* blue-500 */
            color: #3b82f6;
            font-weight: 600;
        }
        
        /* Toast notification - Mobile first */
        .toast {
            visibility: hidden;
            width: 90%; /* Ancho responsive para móviles */
            max-width: 320px;
            margin: 0 auto; /* Centrado */
            left: 0;
            right: 0;
            background-color: #10B981; /* green-500 */
            color: #fff;
            text-align: center;
            border-radius: 8px;
            padding: 16px;
            position: fixed;
            z-index: 50;
            bottom: 20px;
            font-size: 16px;
            opacity: 0;
            transition: visibility 0s, opacity 0.5s linear;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        .toast.show {
            visibility: visible;
            opacity: 1;
        }
        
        /* Ajustes generales para mejorar mobile first */
        input[type="number"] {
            appearance: textfield; /* Estándar */
            -moz-appearance: textfield; /* Firefox */
            -webkit-appearance: textfield; /* WebKit */
            font-size: 16px; /* Evita zoom en inputs en iOS */
            touch-action: manipulation; /* Mejora el comportamiento táctil */
        }

        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* Mejoras específicas para ejercicios */
        .exercise-card {
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            margin-bottom: 16px;
        }

        .exercise-image {
            width: 100%;
            border-radius: 6px;
            transition: transform 0.2s ease;
        }

        .exercise-image:active {
            transform: scale(0.98);
        }

        /* Mejoras para la tabla de historial en móviles */
        @media screen and (max-width: 768px) {
            table {
                border: 0;
                width: 100%;
            }

            table thead {
                border: none;
                clip: rect(0 0 0 0);
                height: 1px;
                margin: -1px;
                overflow: hidden;
                padding: 0;
                position: absolute;
                width: 1px;
            }

            table tr {
                display: block;
                border-bottom: 2px solid #e5e7eb;
                margin-bottom: 12px;
                padding-bottom: 12px;
            }

            table td {
                display: block;
                font-size: 14px;
                text-align: right;
                padding: 8px 4px;
            }

            table td[data-label="Ejercicio"] {
                text-align: left;
                font-weight: 600;
                font-size: 15px;
                border-bottom: 1px solid #f3f4f6;
                padding-bottom: 12px;
                margin-bottom: 8px;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            table td[data-label="Datos"] {
                text-align: center;
                padding: 0;
            }

            table td[data-label="Datos"] .flex {
                justify-content: space-around;
            }

            /* Botones más grandes para mejor usabilidad táctil */
            .register-btn, #load-routine-btn {
                min-height: 44px; /* Mínimo recomendado para elementos táctiles */
                font-size: 16px;
            }
        }

        /* Media query para tablets y escritorio */
        @media screen and (min-width: 769px) {
            .toast {
                width: auto;
                margin-left: -125px;
                left: 50%;
            }
        }

        /* Mejoras adicionales para el historial en pantallas grandes */
        @media screen and (min-width: 1024px) {
            #history-container {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
                gap: 20px;
            }
            
            #history-container > div {
                margin-bottom: 0;
            }
            
            /* Ajustar espacio vertical para mostrar más contenido */
            #history-container .overflow-x-auto {
                max-height: 400px;
                overflow-y: auto;
            }
            
            /* Scrollbar personalizada para mejor usabilidad */
            #history-container .overflow-x-auto::-webkit-scrollbar {
                width: 6px;
                height: 6px;
            }
            
            #history-container .overflow-x-auto::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 6px;
            }
            
            #history-container .overflow-x-auto::-webkit-scrollbar-thumb {
                background: #c5c5c5;
                border-radius: 6px;
            }
            
            #history-container .overflow-x-auto::-webkit-scrollbar-thumb:hover {
                background: #a0a0a0;
            }
        }

        /* Estilos para las tarjetas de datos en el historial */
        .data-card {
            border-radius: 6px;
            padding: 4px 8px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.2s;
        }

        .data-card:hover {
            transform: translateY(-2px);
        }

        .data-card .label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.7;
        }

        .data-card .value {
            font-weight: 600;
            font-size: 14px;
        }

        /* Mejoras para la visualización de datos en escritorio */
        @media screen and (min-width: 768px) {
            .data-cards-container {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 8px;
            }
            
            .data-card {
                min-width: 60px;
            }
        }

        /* Estilos para el indicador de cardio */
        .cardio-indicator {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 6px;
            border-radius: 12px;
            font-size: 12px;
        }

        .cardio-completed {
            background-color: rgba(16, 185, 129, 0.1);
            color: rgb(6, 95, 70);
        }

        .cardio-pending {
            background-color: rgba(229, 231, 235, 0.5);
            color: rgb(107, 114, 128);
        }
        
        /* Estilos para la sección de cardio personalizado */
        #cardio-section {
            border: 1px solid rgba(251, 146, 60, 0.3);
            box-shadow: 0 2px 4px rgba(251, 146, 60, 0.1);
            transition: all 0.3s ease;
        }
        
        #cardio-section:hover {
            box-shadow: 0 4px 6px rgba(251, 146, 60, 0.2);
        }
        
        #cardio-section.completed {
            background: linear-gradient(to right, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
            border-color: rgba(16, 185, 129, 0.4);
        }
        
        #cardio-section.completed h3 {
            color: rgb(5, 150, 105);
        }
        
        #cardio-recommendation {
            border-top: 1px dashed rgba(251, 146, 60, 0.3);
            padding-top: 8px;
            margin-top: 12px;
        }
        
        #register-cardio-btn.completed {
            background-color: rgb(5, 150, 105);
        }
        
        #register-cardio-btn.completed:hover {
            background-color: rgb(4, 120, 87);
        }
