* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Arimo', sans-serif;
}

body {
    background: #f0f2f5;
    padding: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

/* Header responsive */
.header-fecha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-fecha h1 {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .header-fecha {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-fecha h1 {
        font-size: 1.3rem;
    }
}

.subtitulo {
    color: #4b5563;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Controles de fecha */
.fecha-control {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .fecha-control {
        width: 100%;
        justify-content: center;
    }
}

.fecha-control label {
    font-weight: 600;
    color: #1e293b;
}

.fecha-control input {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 40px;
}

/* Indicadores responsivos */
.indicadores {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.card span {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    color: #1e293b;
}

/* Estadísticas responsivas */
.estadisticas {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 16px;
    flex: 1;
    text-align: center;
    min-width: 100px;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Secciones */
.seccion {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.seccion h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

/* Formulario responsive */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.full-width {
    width: 100%;
}

input, select, button {
    padding: 0.75rem 1rem;
    border-radius: 60px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
}

button {
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

button:hover {
    background: #2563eb;
}

button:active {
    transform: scale(0.98);
}

/* Items de bitácora responsive */
.item_bitacora {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.item_bitacora > div:first-child {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 640px) {
    .item_bitacora {
        flex-direction: column;
        align-items: stretch;
    }
    
    .item_bitacora button {
        width: 100%;
    }
}

.btn_disponible {
    background: #10b981;
}

.btn_disponible:hover {
    background: #059669;
}

.btn-completado {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Ajustes para móvil muy pequeño */
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        padding: 1rem;
        border-radius: 24px;
    }
    
    .card span {
        font-size: 1.4rem;
    }
    
    .stat-num {
        font-size: 1.2rem;
    }
    
    .seccion {
        padding: 1rem;
    }
}