* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f4f9;
    color: #1a2332;
    min-height: 100vh;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 20px;
}

.header-fitness {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf2;
}

.titulo-principal {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1a2332;
}

.text-gradient {
    background: linear-gradient(135deg, #4a6cf7, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reloj-grande {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a2332;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.reloj-grande .segundos {
    font-size: 28px;
    color: #8b9bb5;
}

.comida-actual {
    font-size: 16px;
    color: #4a5a7a;
}

.comida-actual .fw-bold {
    color: #1a2332;
}

.mapa-comidas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 16px 14px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8ecf2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.comida-item {
    flex: 1;
    min-width: 70px;
    max-width: 110px;
    text-align: center;
    padding: 10px 6px;
    border-radius: 14px;
    background: #f8faff;
    border: 2px solid #eef2f7;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #6a7a9a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: default;
}

.comida-item i {
    font-size: 20px;
    color: #8b9bb5;
}

.comida-item span {
    font-weight: 600;
    font-size: 12px;
}

.comida-item small {
    font-size: 9px;
    color: #aabbcc;
}

.comida-item.activa {
    background: #eef3ff;
    border-color: #4a6cf7;
    color: #1a2332;
}

.comida-item.activa i {
    color: #4a6cf7;
}

.comida-item.activa small {
    color: #4a6cf7;
}

.navegacion-meses {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid #e8ecf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-nav {
    background: #f4f7fc;
    color: #4a6cf7;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e8ecf2;
}

.btn-nav:hover {
    background: #4a6cf7;
    color: #fff;
    transform: scale(1.04);
}

.mes-titulo {
    font-size: 22px;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
    letter-spacing: 0.3px;
}

.calendario-grid {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 16px;
    border: 1px solid #e8ecf2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.calendario-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.celda-header {
    padding: 10px 4px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #4a6cf7;
    background: #f4f8ff;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendario-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.celda {
    background: #fafcff;
    border-radius: 14px;
    padding: 12px 6px 6px;
    min-height: 95px;
    border: 2px solid #eef2f7;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.celda:hover {
    border-color: #4a6cf7;
    background: #f4f8ff;
    box-shadow: 0 2px 12px rgba(74,108,247,0.08);
}

.celda .celda-numero {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #1a2332;
}

.celda .celda-dia {
    font-size: 11px;
    color: #6a7a9a;
    margin-top: 2px;
    font-weight: 500;
}

.celda .celda-estado {
    font-size: 14px;
    margin-top: 2px;
    color: #4a6cf7;
}

.celda .celda-nota-indicador {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 13px;
    color: #8b5cf6;
}

.btn-nota-celda {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #eef3ff;
    color: #4a6cf7;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.celda:hover .btn-nota-celda {
    opacity: 1;
}

.btn-nota-celda:hover {
    background: #4a6cf7;
    color: #fff;
    transform: scale(1.1);
}

.celda-pasada {
    background: #f0f3f8;
    border-color: #e4e8ef;
    opacity: 0.75;
}

.celda-pasada .celda-numero {
    color: #6a7a9a;
}

.celda-pasada .celda-estado {
    color: #6a7a9a;
}

.celda-hoy {
    background: #eef3ff;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74,108,247,0.10);
}

.celda-hoy .celda-numero {
    color: #4a6cf7;
}

.celda-hoy .celda-estado {
    color: #4a6cf7;
}

.celda-futuro {
    background: #ffffff;
    border-color: #eef2f7;
}

.celda-futuro .celda-numero {
    color: #4a5a7a;
}

.celda-inactiva {
    background: #f7f9fc;
    border-color: #eef2f7;
    opacity: 0.4;
}

.celda-inactiva .celda-numero {
    color: #aabbcc;
}

.celda-vacia {
    background: transparent;
    border: none;
    min-height: 95px;
}

.btn-nota-rapida {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4a6cf7, #8b5cf6);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 6px 30px rgba(74,108,247,0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.btn-nota-rapida:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 40px rgba(74,108,247,0.5);
}

.btn-config-rapida {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6b7280, #4a5a7a);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.btn-config-rapida:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.modal-fitness {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e8ecf2;
    color: #1a2332;
}

.modal-fitness .modal-header {
    border-bottom: 1px solid #e8ecf2;
    padding: 20px 25px;
}

.modal-fitness .modal-body {
    padding: 20px 25px;
}

.modal-fitness .modal-footer {
    border-top: 1px solid #e8ecf2;
    padding: 15px 25px;
}

.form-control-fitness {
    background: #f8faff;
    border: 1px solid #e8ecf2;
    color: #1a2332;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
}

.form-control-fitness:focus {
    background: #f8faff;
    border-color: #4a6cf7;
    color: #1a2332;
    box-shadow: 0 0 0 3px rgba(74,108,247,0.10);
}

.horario-fila {
    background: #f8faff;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #eef2f7;
}

.footer-fitness {
    margin-top: 30px;
    padding: 15px 20px;
    border-top: 1px solid #e8ecf2;
    color: #6a7a9a;
    font-size: 13px;
}

@media (max-width: 768px) {
    .main-container { padding: 10px; }
    .header-fitness { padding: 18px 20px; }
    .titulo-principal { font-size: 22px; }
    .reloj-grande { font-size: 32px; }
    .reloj-grande .segundos { font-size: 18px; }
    .comida-item { min-width: 50px; font-size: 10px; }
    .comida-item i { font-size: 16px; }
    .celda { min-height: 70px; padding: 8px 4px 4px; }
    .celda .celda-numero { font-size: 20px; }
    .celda .celda-dia { font-size: 9px; }
    .btn-nota-celda { width: 22px; height: 22px; font-size: 10px; }
    .mes-titulo { font-size: 18px; }
    .calendario-grid { padding: 10px; }
    .calendario-header, .calendario-body { gap: 4px; }
    .celda-header { font-size: 10px; padding: 6px 2px; }
    .btn-nota-rapida, .btn-config-rapida { width: 50px; height: 50px; font-size: 18px; }
    .btn-nota-rapida { bottom: 85px; right: 20px; }
    .btn-config-rapida { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .comida-item { min-width: 40px; font-size: 8px; padding: 4px 2px; }
    .comida-item i { font-size: 14px; }
    .comida-item small { display: none; }
    .celda { min-height: 55px; }
    .celda .celda-numero { font-size: 16px; }
}